/* ============================================
   VivoShop - Main Style v4.0
   Professional E-Commerce Design
   ============================================ */

@font-face {
    font-family: 'Lalezar';
    src: url('../font/Lalezar-Regular.otf') format('opentype'),
         url('../font/Lalezar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary: #e94560;
    --primary-dark: #c23152;
    --primary-light: #ff6b81;
    --secondary: #0f3460;
    --dark: #1a1a2e;
    --medium-dark: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #8892b0;
    --success: #4caf50;
    --danger: #ff6b6b;
    --warning: #f39c12;
    --info: #17a2b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    --font-lalezar: 'Lalezar', Tahoma, sans-serif;
    --font-main: Tahoma, Arial, sans-serif;
    --header-height: 65px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--dark) 0%, var(--medium-dark) 50%, var(--secondary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: var(--header-height);
    overflow-x: hidden;
}

/* Fixed Header Professional */
.header {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: var(--header-height);
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(233, 69, 96, 0.25);
}

.logo {
    font-family: var(--font-lalezar);
    font-size: 26px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-light);
    transform: scale(1.03);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Navigation */
.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: #ccd6f6;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: var(--glass-hover);
    color: white;
}

.nav-link .icon { font-size: 18px; }

/* Wallet Display */
.wallet-display {
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.3);
    padding: 6px 14px;
    border-radius: 25px;
    color: var(--primary);
    font-family: var(--font-lalezar);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.wallet-display:hover {
    background: rgba(233, 69, 96, 0.25);
}

/* User Dropdown */
.user-menu { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-hover);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: rgba(20, 20, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.user-menu:hover .user-dropdown { display: block; }

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ccd6f6;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: rgba(233, 69, 96, 0.15);
    color: white;
}

.user-dropdown .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

/* Cart Badge */
.cart-btn { position: relative; }

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-lalezar);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-lalezar);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover { color: var(--primary-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-lalezar);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, var(--success), #45a049);
    color: white;
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning), #e67e22);
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 40px; font-size: 20px; }
.btn-block { width: 100%; display: flex; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 18px; }

/* Forms */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-family: var(--font-lalezar);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: white;
    font-size: 15px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--glass-hover);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.3); }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

select.form-control option { background: var(--dark); color: white; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: right;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.alert-error { background: rgba(220, 53, 69, 0.2); color: var(--danger); border: 1px solid rgba(220, 53, 69, 0.3); }
.alert-success { background: rgba(40, 167, 69, 0.2); color: var(--success); border: 1px solid rgba(40, 167, 69, 0.3); }
.alert-warning { background: rgba(243, 156, 18, 0.2); color: var(--warning); border: 1px solid rgba(243, 156, 18, 0.3); }
.alert-info { background: rgba(23, 162, 184, 0.2); color: var(--info); border: 1px solid rgba(23, 162, 184, 0.3); }

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
}

.card-header {
    font-family: var(--font-lalezar);
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

/* Glass Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--font-lalezar);
    display: inline-block;
}

.badge-primary { background: rgba(233, 69, 96, 0.2); color: var(--primary); }
.badge-success { background: rgba(40, 167, 69, 0.3); color: var(--success); }
.badge-warning { background: rgba(243, 156, 18, 0.3); color: var(--warning); }
.badge-info { background: rgba(23, 162, 184, 0.3); color: var(--info); }
.badge-danger { background: rgba(220, 53, 69, 0.3); color: var(--danger); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    display: inline-block;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #555;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    right: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider:before { transform: translateX(-24px); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-slideIn { animation: slideIn 0.4s ease; }
.animate-slideUp { animation: slideUp 0.5s ease; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* Responsive */
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { 
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .header { padding: 0 20px; }
    .logo { font-size: 22px; }
    .mobile-menu-btn { display: block; }
    .nav-buttons {
        display: none;
        position: absolute;
        top: 65px; left: 0; right: 0;
        background: rgba(15, 15, 30, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-buttons.open { display: flex; }
    .user-dropdown { position: static; margin-top: 0; }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .glass-container { padding: 20px; }
    .btn { padding: 8px 14px; font-size: 13px; }
}
/* ============================================
   Floating Support Button
   ============================================ */
.floating-support {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.support-btn-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #c23152);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.support-btn-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.6);
}

/* Online/Offline Indicator */
.support-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.support-indicator.online {
    background: #4caf50;
    animation: pulse-green 2s infinite;
}

.support-indicator.offline {
    background: #888;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

/* Support Popup */
.support-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: rgba(20, 20, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 16px;
    padding: 0;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.support-popup.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.support-popup-header {
    background: linear-gradient(135deg, #e94560, #c23152);
    padding: 20px;
    color: white;
}

.support-popup-header h3 {
    font-family: 'Lalezar', Tahoma, sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
}

.support-popup-header p {
    font-size: 12px;
    opacity: 0.9;
}

.support-popup-body {
    padding: 20px;
}

.support-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.support-agent-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f3460, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
}

.support-agent .online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    border: 2px solid white;
}

.support-agent-name {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.support-agent-role {
    color: #a8b2d1;
    font-size: 11px;
}

.support-btn-chat {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Lalezar', Tahoma, sans-serif;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.support-btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.support-btn-ticket {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #a8b2d1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.support-btn-ticket:hover {
    border-color: #e94560;
    color: white;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}