/* 
  Orthodynamic Limited - Modern Dashboard Styles
  Typography: Outfit (Google Fonts)
*/

:root {
    --primary-color: #0073BC;
    --primary-dark: #005A93;
    --primary-light: #4cbbf5;
    --secondary-color: #0bd1d1;
    --bg-color: #f4f7f6;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-primary: #2d3748;
    --text-muted: #718096;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --sidebar-width: 250px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Modern Professional Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 3px solid #f8fafc;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #F0F4F8; /* Light Tint to make particles visible */
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Offset for fixed desktop navbar — desktop only */
@media (min-width: 769px) {
    .store-body {
        padding-top: 86px;
    }
}

/* Lively Medical Background System - Higher Visibility */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(0, 115, 188, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(46, 139, 87, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(0, 115, 188, 0.03) 0%, transparent 65%);
    z-index: -2;
    pointer-events: none;
    animation: backgroundShift 20s infinite alternate linear;
}

@keyframes backgroundShift {
    from { transform: scale(1); }
    to { transform: scale(1.1) translate(20px, 20px); }
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.25; /* Increased from 0.1 */
    animation: floatParticle 18s infinite linear;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.05));
}

@keyframes floatParticle {
    0% { transform: translateY(110vh) translateX(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.3; transform: translateY(80vh) translateX(20px) rotate(45deg); }
    50% { transform: translateY(50vh) translateX(-20px) rotate(180deg); }
    80% { opacity: 0.3; transform: translateY(20vh) translateX(20px) rotate(315deg); }
    100% { transform: translateY(-100px) translateX(0) rotate(360deg); opacity: 0; }
}

/* Ambient Medical Orbs */
.bg-particles::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%; width: 100vw; height: 100vh;
    background: radial-gradient(circle, rgba(11,209,209,0.05) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: orbMotion 15s infinite alternate ease-in-out;
    z-index: -2;
}

@keyframes orbMotion {
    0% { transform: translate(-45%, -45%) scale(1); }
    100% { transform: translate(-55%, -55%) scale(1.2); }
}

@keyframes meshMotion {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typography Extensions */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.highlight { color: var(--secondary-color); font-weight: 700; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }

/* ----------------------------------------------------
   Storefront Global Components
---------------------------------------------------- */
.navbar { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px); 
    padding: 20px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0;
    z-index: 1000; 
    box-shadow: 0 4px 30px rgba(0,0,0,0.03); 
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary-dark); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.nav-items { 
    display: flex; 
    gap: 35px; 
    align-items: center; 
}

.nav-items a { 
    text-decoration: none; 
    color: var(--text-primary); 
    font-weight: 600; 
    transition: var(--transition); 
    letter-spacing: 0.5px; 
    font-size: 0.95rem;
}

.nav-items a:hover, .nav-items a.active-link { 
    color: var(--primary-color); 
}

.cart-btn { 
    position: relative; 
    background: var(--primary-color); 
    color: #fff !important; 
    padding: 12px 25px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    box-shadow: none; 
    transition: var(--transition); 
}

.cart-btn:hover { 
    background: var(--primary-dark);
    transform: translateY(-3px); 
    box-shadow: none; 
}

.cart-btn .badge, .cart-count-badge, #desktopCartCount {
    position: absolute;
    background: #e11d48; /* Premium Rose Red */
    color: #fff;
    min-width: 18px;
    height: 18px;
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
    pointer-events: none;
    z-index: 10;
}
#desktopCartCount {
    top: -8px;
    right: -10px;
}
.cart-count-badge {
    top: -5px;
    right: -5px;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   Auth Page Styles 
---------------------------------------------------- */
body.auth-bg {
    background-image: url('../image/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.glass-login {
    background: rgba(25, 25, 30, 0.85); /* Darker glass for contrast */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    text-align: center;
}

.login-header h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #cbd5e0;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .icon-input {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input::placeholder {
    color: #cbd5e0;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(76, 187, 245, 0.5);
}

.btn-glow {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-glow:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: none;
}

.demo-hints {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #a0aec0;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
}
.demo-hints span {
    color: var(--primary-light);
}

.error-msg {
    background: rgba(231, 76, 60, 0.2);
    color: #ff7675;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin-bottom: 20px;
    font-size: 0.9rem;
}


/* ----------------------------------------------------
   Dashboard Styles (Admin & Client)
---------------------------------------------------- */
.dashboard-body {
    display: flex;
    background: #f8fafc; /* Crisp Background */
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism */
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(13, 138, 188, 0.15);
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 30px 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed rgba(13, 138, 188, 0.15);
}

.sidebar-header i {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 115, 188, 0.2) transparent;
}

.nav-links::-webkit-scrollbar {
    width: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(0, 115, 188, 0.1);
    border-radius: 10px;
}

.nav-links::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 115, 188, 0.3);
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.nav-links li a:hover {
    color: var(--primary-color);
    background: linear-gradient(90deg, rgba(13, 138, 188, 0.05), transparent);
}

.nav-links li a.active {
    color: var(--primary-color);
    background: linear-gradient(90deg, rgba(13, 138, 188, 0.1), transparent);
    border-left-color: var(--primary-color);
    font-weight: 700;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px dashed rgba(13, 138, 188, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logout-btn, .admin-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.logout-btn:hover {
    color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
}

.admin-link:hover {
    color: var(--primary-color);
    background: rgba(13, 138, 188, 0.1);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    overflow-y: auto;
    background: #f8fafc;
}

/* Topbar */
.topbar {
    height: 80px;
    background: rgba(255, 255, 255, 0.85); /* Glass topbar */
    backdrop-filter: blur(20px);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(13, 138, 188, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-bar input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    background: #f8fafc;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 138, 188, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.notifications .dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Dropdown Menu System - Professional Glass */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 130%;
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(13, 138, 188, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.dropdown-item.danger:hover {
    background: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
}

.notif-item {
    border-bottom: 1px solid #f1f5f9;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 12px;
    transition: 0.2s;
}

.profile-trigger:hover {
    background: #f1f5f9;
} 


/* Base Wrapper */
.content-wrapper {
    padding: 40px;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.shake {
    animation: shake 0.5s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* Welcome Banner Admin */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(13, 138, 188, 0.2);
}

.welcome-text h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.welcome-text p {
    opacity: 0.9;
}

.welcome-img i {
    color: rgba(255,255,255,0.2);
    transform: rotate(15deg);
}

/* Admin Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(13, 138, 188, 0.15);
    box-shadow: 0 4px 15px rgba(0,115,188,0.05); /* Neomorphic tint */
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,115,188,0.15);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.stat-icon.primary { background: rgba(13, 138, 188, 0.1); color: var(--primary-color); }
.stat-icon.success { background: rgba(46, 204, 113, 0.1); color: var(--success); }
.stat-icon.warning { background: rgba(243, 156, 18, 0.1); color: var(--warning); }
.stat-icon.danger { background: rgba(231, 76, 60, 0.1); color: var(--danger); }

.stat-details h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-details h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.trend {
    font-size: 0.85rem;
    font-weight: 500;
}
.trend.up { color: var(--success); }
.trend.down { color: var(--danger); }


/* Tables Styles */
.table-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 0.95rem;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.status-success { background: rgba(46, 204, 113, 0.1); color: var(--success); }
.status-warning { background: rgba(243, 156, 18, 0.1); color: var(--warning); }
.status-danger { background: rgba(231, 76, 60, 0.1); color: var(--danger); }
.status-default { background: #edf2f7; color: var(--text-muted); }

.btn-icon {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 5px;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ----------------------------------------------------
   Client Dashboard Styles
---------------------------------------------------- */
.client-theme {
    background: #f4f7fa; 
    /* Adding subtle gradient background for client */
    background-image: radial-gradient(circle at 10% 20%, rgba(13, 138, 188, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(11, 209, 209, 0.05) 0%, transparent 40%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border-radius: 20px;
}

.client-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Summary Card */
.summary-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-header {
    text-align: center;
}

.large-avatar img {
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(13, 138, 188, 0.2);
    border: 4px solid #fff;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.member-status {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-box i {
    font-size: 2rem;
}

.stat-box .stat-text h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stat-box .stat-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Orders Timeline */
.orders-card {
    padding: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #edf2f7;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: -12px;
    top: 0;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-content {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-meta h4 {
    color: var(--text-primary);
}

.timeline-content > p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.order-footer .total {
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state .btn-glow {
    width: auto;
    padding: 12px 30px;
    display: inline-block;
}

/* ----------------------------------------------------
   Responsive Design
---------------------------------------------------- */
@media (max-width: 992px) {
    .client-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/ *   P a g i n a t i o n   S t y l e s   * /   . p a g i n a t i o n   {   d i s p l a y :   f l e x ;   j u s t i f y - c o n t e n t :   c e n t e r ;   a l i g n - i t e m s :   c e n t e r ;   g a p :   1 0 p x ;   m a r g i n - t o p :   4 0 p x ;   p a d d i n g - b o t t o m :   2 0 p x ;   }   . p a g i n a t i o n   a ,   . p a g i n a t i o n   s p a n   {   d i s p l a y :   f l e x ;   j u s t i f y - c o n t e n t :   c e n t e r ;   a l i g n - i t e m s :   c e n t e r ;   w i d t h :   4 0 p x ;   h e i g h t :   4 0 p x ;   b o r d e r - r a d i u s :   8 p x ;   f o n t - w e i g h t :   6 0 0 ;   t e x t - d e c o r a t i o n :   n o n e ;   t r a n s i t i o n :   v a r ( - - t r a n s i t i o n ) ;   b o r d e r :   1 p x   s o l i d   # e d f 2 f 7 ;   b a c k g r o u n d :   # f f f ;   c o l o r :   v a r ( - - t e x t - m u t e d ) ;   }   . p a g i n a t i o n   a : h o v e r   {   b o r d e r - c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;   c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;   b o x - s h a d o w :   0   4 p x   1 0 p x   r g b a ( 1 3 ,   1 3 8 ,   1 8 8 ,   0 . 1 ) ;   }   . p a g i n a t i o n   . a c t i v e   {   b a c k g r o u n d :   v a r ( - - p r i m a r y - c o l o r ) ;   c o l o r :   # f f f ;   b o r d e r - c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;   b o x - s h a d o w :   0   4 p x   1 0 p x   r g b a ( 1 3 ,   1 3 8 ,   1 8 8 ,   0 . 3 ) ;   }   . p a g i n a t i o n   . d i s a b l e d   {   o p a c i t y :   0 . 5 ;   p o i n t e r - e v e n t s :   n o n e ;   }  
 /* Pagination Styles */ .pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; padding-bottom: 20px; } .pagination a, .pagination span { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: var(--transition); border: 1px solid #edf2f7; background: #fff; color: var(--text-muted); } .pagination a:hover { border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 4px 10px rgba(13, 138, 188, 0.1); } .pagination .active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); box-shadow: 0 4px 10px rgba(13, 138, 188, 0.3); } .pagination .disabled { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   RESPONSIVE SYSTEM — 3-TIER
   Mobile (≤768px) | Tablet (769-1024px) | Small Laptop (1025-1280px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET — 769px to 1024px
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hide mobile-only elements */
    .mobile-app-nav, .mobile-app-bar { display: none !important; }

    /* Navbar */
    .navbar { padding: 0 4%; }
    .nav-items a { font-size: 0.85rem; }

    /* Homepage Hero */
    .hero-section { padding: 120px 4% 60px; gap: 40px; }
    .hero-title { font-size: 3rem !important; }
    .hero-visual { height: 450px !important; }
    .glass-card-decor { width: 260px !important; height: 320px !important; }
    .glass-card-decor i { font-size: 7rem !important; }

    /* Features Grid */
    .features-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 25px; }

    /* Shop Layout */
    .shop-container { grid-template-columns: 220px 1fr !important; gap: 25px; }

    /* Product Page */
    .product-layout { grid-template-columns: 1fr 1fr !important; gap: 30px !important; }
    .product-info-panel h1 { font-size: 2rem !important; }

    /* Expert Trust Dock — 2 rows on tablet */
    .expert-trust-dock {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 25px !important;
        align-items: flex-start !important;
    }
    .trust-dock-zone { gap: 20px !important; flex-wrap: wrap; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; }

    /* Stats Cards */
    .achievement-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --------------------------------------------------------------------------
   SMALL LAPTOP — 1025px to 1280px
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1280px) {
    .mobile-app-nav, .mobile-app-bar { display: none !important; }

    .hero-title { font-size: 3.5rem !important; }
    .product-layout { gap: 40px !important; }
    .premium-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .expert-trust-dock { padding: 20px 30px !important; }
    .trust-dock-zone { gap: 25px !important; }
}

/* --------------------------------------------------------------------------
   MOBILE — ≤768px  (App-Native UI)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --app-primary: #0073BC;
        --app-bg: #F8F9FD;
        --app-card: #FFFFFF;
        --app-radius: 24px;
    }

    /* Base */
    body { background-color: var(--app-bg); margin-bottom: 100px !important; overflow-x: hidden; }

    /* Hide desktop navbar; show mobile equivalents */
    .navbar { display: none !important; }
    .mobile-app-bar { display: flex !important; }
    .mobile-app-nav { display: flex !important; }

    /* Mobile App Bar */
    .mobile-app-bar {
        align-items: center;
        justify-content: space-between;
        padding: 12px 5%;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    }
    .app-bar-back, .app-bar-search {
        width: 42px; height: 42px;
        border-radius: 12px;
        border: 1px solid #edf2f7;
        background: #f8fafc;
        display: flex; align-items: center; justify-content: center;
        color: var(--app-primary);
        font-size: 1rem; cursor: pointer; transition: 0.2s;
    }
    .app-bar-title { font-size: 1.05rem; font-weight: 800; color: #1a1a1a; }

    /* Mobile Bottom Nav */
    .mobile-app-nav {
        position: fixed;
        bottom: 18px; left: 4%; right: 4%;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        height: 72px;
        border-radius: 32px;
        box-shadow: 0 10px 40px rgba(0, 115, 188, 0.12);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        border: 1px solid rgba(255,255,255,0.8);
    }
    .mobile-app-nav a {
        display: flex; flex-direction: column; align-items: center;
        text-decoration: none; color: #94a3b8;
        font-size: 0.65rem; font-weight: 700; gap: 3px; transition: 0.2s;
    }
    .mobile-app-nav a i { font-size: 1.25rem; }
    .mobile-app-nav a.active { color: var(--app-primary); }
    .nav-center-blob {
        width: 60px; height: 60px;
        background: var(--app-primary);
        border-radius: 20px;
        margin-top: -40px;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 8px 25px rgba(0,115,188,0.35);
        border: 4px solid var(--app-bg);
        cursor: pointer; transition: 0.2s;
    }
    .nav-center-blob:active { transform: scale(0.92); }
    .blob-inner { position: relative; color: #fff; font-size: 1.4rem; }
    .cart-count-badge {
        position: absolute; top: -8px; right: -8px;
        background: #ef4444; color: #fff;
        font-size: 0.6rem; width: 17px; height: 17px;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        font-weight: 800; border: 2px solid var(--app-primary);
    }

    /* Universal rounding */
    .product-card, .cat-card, .trust-poster, .feature-card, .stat-card-modern {
        border-radius: var(--app-radius) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    }

    /* ---- HOMEPAGE ---- */
    .hero-section {
        flex-direction: column !important; padding: 30px 5% 40px !important;
        min-height: auto !important; text-align: left !important;
    }
    .hero-content { padding-right: 0 !important; }
    .hero-tag { font-size: 0.72rem !important; }
    .hero-title { font-size: 2.2rem !important; margin-bottom: 18px !important; }
    .hero-text { font-size: 0.95rem !important; margin-bottom: 25px !important; }
    .hero-actions { flex-direction: column; gap: 12px !important; }
    .btn-primary-large { width: 100%; justify-content: center; padding: 16px 30px !important; }
    .hero-visual { height: 280px !important; margin-top: 20px; }
    .glass-card-decor { width: 200px !important; height: 250px !important; }
    .glass-card-decor i { font-size: 4rem !important; }

    /* Features */
    .features-section { padding: 40px 5% !important; }
    .features-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    .feature-card { padding: 25px !important; }
    .feature-icon { width: 55px !important; height: 55px !important; font-size: 1.4rem !important; margin-bottom: 18px !important; }
    .feature-card h3 { font-size: 1.2rem !important; }

    /* Trust Bar */
    .trust-container { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .trust-poster { padding: 20px 12px !important; }
    .giffy-icon { width: 55px !important; height: 55px !important; font-size: 1.3rem !important; }
    .poster-title { font-size: 0.85rem !important; }
    .poster-subtitle { font-size: 0.7rem !important; }

    /* Category Carousel */
    .category-carousel-section { padding: 30px 0 !important; }
    .cat-card { min-width: 140px !important; padding: 20px 10px !important; }

    /* Stats */
    .achievement-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .stat-card-modern { padding: 20px 15px !important; }
    .stat-number { font-size: 2rem !important; }

    /* Featured Products */
    .featured-products { padding: 30px 0 40px !important; }
    .featured-swiper { padding: 20px 5% 60px !important; }
    .section-header h2 { font-size: 1.8rem !important; text-align: left !important; padding: 0 5%; }
    .section-header p { font-size: 0.95rem !important; text-align: left !important; padding: 0 5%; }

    /* Brands */
    .brands-section { padding: 30px 0 !important; }

    /* ---- SHOP PAGE ---- */
    .products-section { padding: 20px 4% !important; }
    .page-header { padding: 18px !important; flex-direction: column; align-items: flex-start !important; gap: 15px !important; }
    .page-header h1 { font-size: 1.3rem !important; }
    .filter-controls { flex-direction: column !important; max-width: 100% !important; }
    .search-wrapper { max-width: 100% !important; }
    .shop-container { grid-template-columns: 1fr !important; gap: 0 !important; }
    .category-sidebar {
        position: static !important; margin-bottom: 20px;
        padding: 15px !important; border-radius: 16px !important;
    }
    .category-sidebar h3 { margin-bottom: 12px !important; font-size: 1rem !important; }
    .category-list { display: flex !important; overflow-x: auto !important; gap: 8px !important; padding-bottom: 8px !important; white-space: nowrap !important; }
    .category-list li { margin-bottom: 0 !important; }
    .category-list a { padding: 8px 16px !important; border: 1px solid #edf2f7 !important; border-radius: 25px !important; font-size: 0.8rem !important; }
    .product-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .product-image { height: 140px !important; padding: 15px !important; }
    .product-details { padding: 12px !important; }
    .product-title { font-size: 0.85rem !important; height: auto !important; -webkit-line-clamp: 2 !important; }

    /* ---- PRODUCT PAGE ---- */
    .breadcrumb-bar { padding: 80px 5% 15px !important; }
    .breadcrumb-bar h1 { font-size: 1.6rem !important; }
    .product-layout { grid-template-columns: 1fr !important; gap: 30px !important; padding: 20px 5% 60px !important; }
    .gallery-container { position: static !important; }
    .main-stage { aspect-ratio: 1/1; }
    .thumbnail-track { gap: 10px !important; }
    .gallery-thumb { flex: 0 0 70px !important; height: 70px !important; }
    .product-info-panel h1 { font-size: 1.6rem !important; }
    .price-main { font-size: 1.8rem !important; }
    .action-group { grid-template-columns: 100px 1fr !important; gap: 12px !important; }
    .buy-btns { flex-direction: column !important; gap: 10px !important; }
    .btn-professional { padding: 15px !important; font-size: 0.9rem !important; }

    /* Expert Trust Dock — stacked mobile layout */
    .expert-trust-dock {
        flex-direction: column !important;
        gap: 18px !important;
        padding: 20px !important;
        margin: 20px 4% !important;
        border-radius: 20px !important;
    }
    .trust-dock-zone {
        flex-wrap: wrap !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .trust-dock-zone:last-child {
        justify-content: space-between;
        border-top: 1px solid #f1f5f9;
        padding-top: 15px;
    }
    .dock-pill { gap: 8px !important; font-size: 0.85rem !important; }
    .dock-pill i { width: 38px !important; height: 38px !important; font-size: 0.95rem !important; }
    .btn-share-dock { padding: 10px 18px !important; font-size: 0.75rem !important; }
    .meta-group { text-align: left !important; }

    /* ---- FOOTER ---- */
    .main-footer { padding-top: 40px !important; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 30px !important; padding: 0 5% 40px !important; }
    .brand-col { grid-column: 1 / -1; }
    .footer-bottom { padding: 20px 5% !important; }
    .bottom-container { flex-direction: column !important; gap: 15px !important; text-align: center !important; }
    .payment-methods { margin-right: 0 !important; flex-wrap: wrap; justify-content: center; }

    /* ---- NOTIFICATION TOAST ---- */
    .purchase-toast {
        bottom: 115px !important; top: auto !important;
        left: 4% !important; right: 4% !important;
        width: 92% !important; padding: 12px !important;
        border-radius: 18px !important;
        transform: translateY(150%) !important;
    }
    .purchase-toast.active { transform: translateY(0) !important; }
    .purchase-toast #toast-img { display: none !important; }
    .purchase-toast .toast-body { gap: 0 !important; }
    .purchase-toast .toast-title { font-size: 0.84rem !important; line-height: 1.4 !important; margin-bottom: 6px !important; }
    .purchase-toast .toast-meta,
    .purchase-toast .toast-price { display: none !important; }
    .purchase-toast .toast-link {
        font-size: 0.78rem !important; display: inline-block;
        padding: 4px 14px; background: rgba(0,115,188,0.08);
        border-radius: 8px; border: none !important;
        color: var(--app-primary); font-weight: 700;
    }
    .purchase-toast .toast-close { top: 8px !important; right: 12px !important; }

    /* ---- FLOATING WIDGETS ---- */
    .scroll-top-btn { bottom: 115px !important; right: 20px !important; width: 48px !important; height: 48px !important; }
    .compare-floating-widget { bottom: 115px !important; }

    /* ---- CART / CHECKOUT ---- */
    .cart-layout, .checkout-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
    .checkout-actions { flex-direction: column !important; }

/* --------------------------------------------------------------------------
   GLOBAL LAYOUT FIXES (Zero-Overflow System)
   -------------------------------------------------------------------------- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

/* Ensure all sections and containers stay within viewport */
section, .container, .ecom-container, .main-footer, .newsletter-section {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* ----------------------------------------------------
   RESPONSIVE OVERRIDES
   ---------------------------------------------------- */
@media (max-width: 768px) {
    /* Header Fixes */
    .navbar { 
        padding: 12px 4% !important; 
        height: auto !important;
        flex-wrap: wrap;
    }
    .logo { font-size: 1.4rem !important; }
    .nav-items { display: none !important; } /* Standard behavior for mobile */
    
    /* Footer Fixes - 2 Column Layout */
    .main-footer { padding: 40px 0 !important; }
    .footer-grid { 
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        gap: 30px !important; 
        padding: 0 6% !important;
        text-align: left !important;
    }
    .brand-col { 
        grid-column: 1 / span 2 !important; 
        text-align: left !important; 
        margin-bottom: 20px;
    }
    .footer-col { align-items: flex-start !important; }
    .footer-links { align-items: flex-start !important; }
    .social-links { justify-content: flex-start !important; margin-top: 15px; }
    
    .footer-bottom { 
        padding: 30px 6% !important; 
    }
    .bottom-container { 
        flex-direction: column-reverse !important; 
        gap: 20px !important; 
        text-align: left !important; 
    }
    .payment-icons { justify-content: flex-start !important; }
    
    /* Global Spacing Fix */
    .cart-container { margin: 0 !important; width: 100% !important; max-width: 100% !important; }

    /* Client Dashboard Mobile Rules */
    .client-theme .mobile-toggle { 
        display: flex !important; 
        align-items: center; 
        justify-content: center; 
        width: 45px; 
        height: 45px; 
        background: #fff; 
        border-radius: 12px; 
        border: 1px solid #e2e8f0; 
        cursor: pointer; 
        margin-right: 15px; 
    }
    .client-theme .sidebar { 
        transform: translateX(-100%); 
        width: 280px !important; 
        z-index: 2000; 
        position: fixed;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .client-theme .sidebar.active { 
        transform: translateX(0); 
        box-shadow: 20px 0 50px rgba(0,0,0,0.1); 
    }
    .client-theme .main-content { margin-left: 0 !important; width: 100% !important; }
    .client-theme .topbar { 
        padding: 0 15px !important; 
        height: 70px !important; 
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .client-theme .topbar-left { display: flex; align-items: center; }
    .client-theme .user-info { display: none !important; }
    
    .client-theme .client-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px !important; 
    }
    .client-theme .profile-header { flex-direction: column; text-align: center; gap: 15px; }
    .client-theme .summary-stats { grid-template-columns: 1fr !important; gap: 15px !important; }
    .client-theme .timeline-item { padding: 15px !important; }
}

@media (max-width: 480px) {
    .client-theme .breadcrumb h2 { font-size: 1rem !important; }
    .client-theme .large-avatar { width: 80px !important; height: 80px !important; }
}

