/* ============================================
   COMMON STYLES FOR ALL PAGES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b4a;
    --primary-dark: #e55a3a;
    --secondary-color: #ffb347;
    --accent-color: #8b5a2b;
    --text-dark: #2c1810;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #fff9f0;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #fff5e6 0%, #fff 100%);
    --gold: #d4af37;
    --saffron: #ff9933;
    --lotus-pink: #ff69b4;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 40px rgba(255,107,74,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 10px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --border-radius-xl: 50px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--bg-gradient);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 0.6rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    min-height: 60px;
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

/* Offset body for fixed navbar */
body { padding-top: 62px; }

/* ── Navbar Actions (right side - always visible) ── */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    flex-shrink: 0;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Mobile right side wrapper (kept for backward compat) */
.navbar-right-mobile {
    display: none;
    align-items: center;
    gap: 0.6rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 1001;
    background: none;
    border: none;
    padding: 0.3rem;
    line-height: 1;
}

.mobile-menu-btn:hover { transform: scale(1.1); }

/* Nav drawer close button — hidden on desktop */
.nav-drawer-close {
    display: none;
}

/* Login/Register buttons inside drawer */
.drawer-auth {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.5rem;
}

.drawer-auth .btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::after {
    content: '🪷';
    font-size: 1.5rem;
    background: none;
    -webkit-text-fill-color: var(--primary-color);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* ============================================
   USER MENU
   ============================================ */
.user-menu {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    user-select: none;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 240px;
    display: none;
    z-index: 1002;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.user-dropdown.open {
    display: block;
    animation: slideDown 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,107,74,0.05), rgba(255,180,71,0.05));
    border-bottom: 1px solid #eee;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.user-email {
    color: var(--text-light);
    font-size: 0.9rem;
}

.user-role {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.role-admin {
    background: linear-gradient(135deg, var(--danger), #ff6b4a);
    color: white;
}

.role-user {
    background: linear-gradient(135deg, var(--success), #4caf50);
    color: white;
}

.dropdown-item {
    padding: 1rem 1.5rem;
    transition: var(--transition);
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: #f9f9f9;
    padding-left: 2rem;
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

.logout-item {
    color: #e53935;
}

.logout-item i {
    color: #e53935 !important;
}

/* ============================================
   AUTH BUTTONS
   ============================================ */
.auth-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.auth-buttons .btn {
    flex: 1;
    flex-shrink: 1;
    width: auto !important;
    white-space: nowrap;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.85rem !important;
    min-width: 70px;
    max-width: 110px;
}

.auth-buttons .btn i {
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff5f0;
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    border: 1px solid #ffe0d6;
}

.language-switcher-icon {
    color: var(--primary-color);
    font-size: 1rem;
}

.language-dropdown {
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    max-width: 100px;
}

/* ============================================
   NAV ICON LINKS (cart, wishlist)
   ============================================ */
.nav-icon-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-right: 0.5rem;
}

.nav-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger, #f44336);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,74,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,74,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ff6b4a);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #45a049);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   LOADER
   ============================================ */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9933 0%, #ff6b4a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

.lotus-loader {
    position: relative;
    width: 100px;
    height: 100px;
    animation: float 3s ease-in-out infinite;
}

.petal {
    position: absolute;
    width: 40px;
    height: 60px;
    background: var(--lotus-pink);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.petal:nth-child(1) { transform: rotate(0deg) translateY(-30px); }
.petal:nth-child(2) { transform: rotate(60deg) translateY(-30px); }
.petal:nth-child(3) { transform: rotate(120deg) translateY(-30px); }
.petal:nth-child(4) { transform: rotate(180deg) translateY(-30px); }
.petal:nth-child(5) { transform: rotate(240deg) translateY(-30px); }
.petal:nth-child(6) { transform: rotate(300deg) translateY(-30px); }

.center {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--gold);
    border-radius: 50%;
    top: 35px;
    left: 35px;
    animation: pulse 1.5s ease-in-out infinite;
}

.om {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -40px;
    font-size: 24px;
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    transition: transform 0.4s ease;
    z-index: 9999;
    max-width: 400px;
    border-left: 4px solid var(--primary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.info {
    border-left-color: var(--info);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.toast-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-dark);
}

/* ============================================
   PAGE CONTAINER
   ============================================ */
.page-container {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-lighter);
    text-decoration: line-through;
}

.product-rating {
    color: var(--gold);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,74,0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f9f9f9;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

/* Larger chatbot for laptops and desktops */
@media (min-width: 1024px) {
    .chatbot-container {
        width: 420px;
        height: 600px;
    }
}

/* Even larger for large desktops */
@media (min-width: 1440px) {
    .chatbot-container {
        width: 480px;
        height: 650px;
    }
}

.chatbot-container.open {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-close {
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.chatbot-close:hover {
    transform: scale(1.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
    clear: both;
}

.message.bot {
    float: left;
}

.message.user {
    float: right;
}

.message-content {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.bot .message-content {
    background: white;
    box-shadow: var(--shadow-sm);
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-lighter);
    margin-top: 0.2rem;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: var(--border-radius-xl);
    outline: none;
    transition: var(--transition);
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
}

.chatbot-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 0.5rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-lighter);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   GOOGLE TRANSLATE
   ============================================ */
.google-translate {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 998;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.google-translate:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

#google_translate_element {
    padding: 8px 15px;
}

.goog-te-gadget {
    font-family: inherit !important;
    color: transparent !important;
}

.goog-te-gadget-simple {
    background: white !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: var(--border-radius-xl) !important;
    padding: 5px 15px !important;
}

.goog-te-menu-value {
    color: var(--text-dark) !important;
    text-decoration: none !important;
}

.goog-te-menu-value:hover {
    text-decoration: none !important;
}

.goog-te-menu-value span {
    color: var(--primary-color) !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

/* Hide Google Translate Banner */
body {
    top: 0 !important;
    position: static !important;
}

.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}

.skiptranslate {
    display: none !important;
}

body > .skiptranslate {
    display: none !important;
}

iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-logo-link {
    display: none !important;
}

#goog-gt-tt {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-message {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #eee;
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #2c1810, #3d2b1f);
    color: white;
    padding: 4rem 5% 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-section p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding-left: 0;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    padding-left: 0;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* ── Navbar ── */
    .navbar {
        padding: 0.5rem 4%;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* nav-links becomes a side drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 4rem 1.5rem 2rem;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
        z-index: 1001;
        align-items: flex-start;
        gap: 0;
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        width: 100%;
        padding: 0.85rem 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 1rem;
    }

    .nav-links a::after { display: none; }

    /* Close button inside drawer */
    .nav-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.8rem;
        right: 0.8rem;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: #f5f5f5;
        color: var(--text-dark);
        font-size: 0.9rem;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-drawer-close:hover {
        background: var(--primary-color);
        color: white;
    }

    /* Language switcher full width in drawer */
    .language-switcher {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 0.8rem;
    }

    .language-dropdown { flex: 1; max-width: none; }

    /* Login/Register in drawer - side by side */
    .drawer-auth {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .drawer-auth .btn {
        flex: 1;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* ── user-dropdown: stays as popup on mobile too (attached to avatar in top bar) ── */
    .user-dropdown {
        position: fixed !important;
        top: 62px !important;
        right: 1rem !important;
        left: auto !important;
        width: calc(100vw - 2rem) !important;
        max-width: 300px !important;
        display: none;
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        border-radius: 12px;
        z-index: 1003 !important;
    }

    .user-dropdown.open {
        display: block !important;
        animation: slideDown 0.2s ease;
    }

    /* ── Grid ── */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
    }

    .breadcrumb { justify-content: center; }

    .chatbot-container {
        width: 90%;
        max-width: 350px;
        height: 500px;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .navbar { padding: 0.5rem 3%; }

    .nav-links { width: 88%; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    .product-grid { grid-template-columns: 1fr; }

    .user-dropdown {
        width: calc(100vw - 1.5rem) !important;
        right: 0.75rem !important;
    }
}    .product-image {
        height: 250px;
    }

    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-width: none;
    }

    .chatbot-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .google-translate {
        bottom: 80px;
        right: 15px;
    }

    .toast {
        left: 10px;
        right: 10px;
        max-width: none;
        transform: translateY(400px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .chatbot-container {
        height: 90vh;
    }
    
    .nav-links {
        padding: 3rem 2rem;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .btn {
        min-height: 48px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATION BELL STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.notification-bell {
    position: relative;
    display: inline-block;
}

.notification-bell .nav-icon {
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

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

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.notification-settings {
    color: #666;
    font-size: 1.1rem;
    transition: color 0.3s;
    text-decoration: none;
}

.notification-settings:hover {
    color: #667eea;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* Custom scrollbar for notification list */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

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

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #f0f4ff;
}

.notification-item.unread:hover {
    background: #e5edff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.notification-icon.order {
    background: #dbeafe;
    color: #3b82f6;
}

.notification-icon.price {
    background: #fef3c7;
    color: #f59e0b;
}

.notification-icon.stock {
    background: #d1fae5;
    color: #10b981;
}

.notification-icon.cart {
    background: #fce7f3;
    color: #ec4899;
}

.notification-icon.offer {
    background: #ede9fe;
    color: #8b5cf6;
}

.notification-icon.festival {
    background: #fef3c7;
    color: #f59e0b;
}

.notification-icon.info {
    background: #e0e7ff;
    color: #667eea;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.notification-message {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    color: #999;
    font-size: 0.75rem;
}

.notification-unread-dot {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

.notification-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}

.notification-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #fafafa;
}

.notification-footer a {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.notification-footer a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 20px);
        max-width: 360px;
        right: -10px;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .notification-header {
        padding: 12px 15px;
    }
    
    .notification-footer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        right: -50px;
    }
}
