:root {
    /* Colors - Robot Planet Blue Theme */
    --primary-color: #3b82f6; /* Blue-500 */
    --primary-dark: #2563eb;  /* Blue-600 */
    --secondary-color: #f59e0b; /* Amber-500 */
    --text-main: #1f2937;     /* Gray-800 */
    --text-secondary: #6b7280; /* Gray-500 */
    --border-color: #e5e7eb;  /* Gray-200 */
    --bg-light: #f3f4f6;      /* Gray-100 */
    --white: #ffffff;
    
    /* Layout */
    --header-height: 110px;
    --container-width: 1424px; /* Adjusted: 350(Side) + 12 + 700(Main) + 12 + 350(User) */
    --fs-height: 420px; /* Standardized First Screen Height */
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Ensure no legacy page loader is visible */
#page-loader, .page-loader, .loading-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

/* Reset & Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: var(--container-width);
    max-width: 98%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Top Bar */
.site-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    line-height: 30px;
}

.site-topbar .container {
    display: flex;
    justify-content: space-between;
}

.topbar-left, .topbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar-link:hover {
    color: var(--primary-color);
}

.topbar-divider {
    color: #ccc;
    margin: 0 2px;
}

/* Header */
.main-header {
    background: #fff;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* Subtle shadow for depth */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Header Logo Area */
.logo-area {
    width: 350px; /* Increased to reduce Main Column width */
    margin-right: 12px; /* Match Layout Gap */
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 12px */
    text-decoration: none;
    color: inherit;
    height: 100%;
    justify-content: center; /* Center align with Sidebar */
}

.logo-icon {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-right: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 44px;
    margin-top: 2px;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
    font-style: normal;
    color: #003366;
    font-family: "Microsoft YaHei", sans-serif;
}

.logo-text span {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    line-height: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
}

/* Search Box - JD Style (Atmospheric) */
.search-area {
    flex: 1;
    max-width: 1000px; /* Expanded width */
    margin: 0 8px; /* Reduced margin for more space */
}

.search-main-row {
    display: flex;
    gap: 8px; /* Space between components */
    align-items: center;
    width: 100%; /* Ensure it fills the Search Area */
}

/* Duplicated search styles removed - using definitions below */

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 4px; /* Standard JD style is roughly this or 2px */
    padding: 0 12px; /* Taller */
    background: #fff;
    position: relative;
    height: 34px; /* Fixed height */
    box-sizing: border-box;
    transition: all 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-main-icon {
    color: var(--text-secondary);
    margin-right: 10px;
    font-size: 16px;
}

#search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 13px; /* Larger font */
    color: var(--text-main);
}

.ai-assistant-trigger {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    width: 96px; /* Fixed width for consistency */
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth spring-like */
    border: 1px solid rgba(255,255,255,0.1); /* Subtle inner border */
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    margin-right: auto; 
    height: 34px; 
    letter-spacing: 1px;
}

.ai-assistant-trigger:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: translateY(-2px) scale(1.02); /* Tactile lift & grow */
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    filter: brightness(1.05); /* Subtle glow */
}

.ai-assistant-trigger:active {
    transform: translateY(0) scale(0.98); /* Click press effect */
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.search-button-main {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0;
    width: 96px; /* Fixed width for consistency */
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px; 
    cursor: pointer;
    height: 34px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    letter-spacing: 1px;
}

.search-button-main:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
    filter: brightness(1.05);
}

.search-button-main:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 16px;
    width: 350px; /* Match User Panel width */
    margin-left: 0; /* Removed margin to align AI button with Search button (8px gap) */
    justify-content: flex-end; /* Align icons to right */
    flex-shrink: 0;
}

.action-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    width: 34px; /* Match search height */
    height: 34px; /* Match search height */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

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

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

/* First Screen Layout */
.layout {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

#storefront-view {
    display: block;
}

#default-layout {
    display: flex;
}

/* Sidebar Adjustment */
.sidebar {
    width: 350px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    height: 400px; /* Fixed height to match User Panel (280+108+12=400) */
    position: relative;
    z-index: 100;
    overflow: visible; /* Allow popup to show */
    margin-right: 0; /* Reset margin */
}

/* Main Content Area */
.content {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
    display: flex;
    flex-direction: column;
}

.sidebar-header-title {
    display: none; /* User requested removal */
}

.sidebar-menu {
    padding: 0 0 12px 0; /* Removed top padding to eliminate white space */
    height: 100%;
    overflow: visible; /* User requested no scrollbars and popup needs overflow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top to ensure no gap */
    gap: 8px; /* Adjusted gap to 8px to fit 9 items perfectly in 400px (324+64+12=400) */
}

.category-item {
    padding: 0 20px;
    height: 36px; /* Reduced height (was 38px) */
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    position: static;
    border-radius: 4px; /* Added radius to prevent corner bleed on hover */
}

/* Make sidebar relative to container? No, popup usually relative to sidebar */
.category-item:hover {
    background: #eff6ff;
    color: var(--primary-color);
}

.category-link {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start; /* Left align content */
    font-size: 15px;
    line-height: 1.5;
}

.category-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.category-icon {
    font-size: 18px;
    line-height: 1;
    display: block;
}

.arrow-icon {
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center; /* Center the arrow */
    width: 24px; /* Match icon wrap width for symmetry */
    height: 24px;
    margin-left: 10px; /* Match icon margin for symmetry */
    flex-shrink: 0;
}

.category-label {
    flex: 0 1 auto; /* Allow shrink but don't grow to fill space */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    margin: 0;
    transform: none; /* Remove manual offset to ensure perfect vertical centering */
}

/* Sidebar Popup - Level 2 Menu (Big Factory Style) */
.category-popup {
    display: none;
    position: absolute;
    left: 350px; /* Match sidebar width */
    top: 0;
    width: 800px; /* Mega menu width */
    min-height: 100%; /* Match sidebar height */
    background: #fff;
    box-shadow: 4px 0 16px rgba(0,0,0,0.1);
    z-index: 200;
    padding: 24px 32px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 1px solid var(--border-color);
}

.category-item:hover .category-popup {
    display: block;
}

.popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns for better density */
    gap: 24px;
    align-content: start;
}

.popup-grid > div {
    margin-bottom: 20px;
}

.popup-grid strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
}

.popup-grid strong::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-left: auto;
    opacity: 0.5;
}

.sub-category-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 12px 8px 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.sub-category-tag:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hero Section Layout Optimization */
.home-top-row {
    display: flex;
    gap: 12px;
    align-items: stretch; /* Make all columns equal height */
    height: 400px; /* Increased height for better user panel space */
}

/* Middle Column - Hero + Features */
.home-main-col {
    width: 700px; /* Fixed width: 4 * 166px (panels) + 3 * 12px (gaps) */
    flex: 0 0 700px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between;  Ensure contents fill height */
    gap: 12px;
}

.hero {
    height: 280px; /* Increased height to match row height */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-md);
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 40px; /* Reduced padding */
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=1600&q=90');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: background-image 0.5s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin: 16px 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-bottom-actions {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.primary-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.ghost-button {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* User Panel - Right Side */
/* See .hero-user-panel definition later in file */

/* Button Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.5;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 14px; /* Capsule style */
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.hero-user-header {
    text-align: center;
    padding-bottom: 10px; /* Reduced padding */
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-avatar-wrapper {
    margin-bottom: 6px; /* Reduced margin */
}

.user-avatar {
    width: 48px; /* Reduced size */
    height: 48px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(59,130,246,0.2);
    margin: 0;
}

.hero-user-greet {
    font-size: 13px; /* Slightly smaller */
    margin-top: 4px;
}

.hero-user-auth {
    margin-top: 4px;
    font-size: 12px;
}

.hero-user-auth a {
    color: var(--text-main);
    font-weight: 600;
}

.hero-user-auth a:hover {
    color: var(--primary-color);
}

.hero-user-main-btn {
    background: var(--secondary-color); /* Orange/Yellow for CTA */
    color: white;
    border: none;
    width: 100%;
    padding: 8px; /* Reduced padding */
    border-radius: 20px;
    margin-top: 10px; /* Reduced margin */
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    font-size: 13px;
}

.hero-user-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px; /* Reduced gap */
    margin-top: 12px; /* Reduced margin */
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.hero-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.hero-user-item i {
    font-size: 18px; /* Reduced icon size */
}

.hero-user-notice {
    flex: 1;
    margin-top: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.notice-header span {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
}

.notice-more {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
}

.notice-more:hover {
    color: var(--primary-color);
}

.hero-user-notice-list { /* Renamed from .notice-list to match HTML */
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    /* Hide scrollbar */
    scrollbar-width: none;
}
.hero-user-notice-list::-webkit-scrollbar {
    display: none;
}

.hero-user-notice-list li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
}

.hero-user-notice-list li:hover {
    color: var(--primary-color);
}

/* Notice Detail Modal Styles */
.notice-detail-content {
    padding: 24px;
    background: #fff;
    height: 100%;
    overflow-y: auto;
}

.notice-detail-header {
    background: #f8fafc;
    padding: 20px 24px;
    margin: -24px -24px 24px -24px; /* Bleed to edges of padding */
    border-bottom: 1px solid #e2e8f0;
}

.notice-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.notice-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.notice-detail-body {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
}

/* Enhanced Tag Styles */
.notice-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    font-weight: 600;
    white-space: nowrap;
    background: #f3f4f6;
    color: var(--text-secondary);
}

.tag-business { background: #eff6ff !important; color: #3b82f6 !important; } /* Blue */
.tag-notice { background: #f3e8ff !important; color: #9333ea !important; }   /* Purple */
.tag-activity { background: #ecfdf5 !important; color: #10b981 !important; } /* Green */
.tag-urgent { background: #fef2f2 !important; color: #ef4444 !important; }   /* Red */

.notice-tag {
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 10px;
    background: #fee2e2;
    color: #ef4444;
    white-space: nowrap;
    margin-top: 2px;
}

.notice-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* Channel Navigation (Horizontal List Style) */
.channel-nav-container {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 12px 16px; /* Compact padding */
    margin-top: 12px; /* Space from feature blocks */
    width: 100%;
    box-sizing: border-box;
}

.channel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Wider gap between items */
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 20px 0; /* Vertical padding */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.channel-item {
    display: flex;
    flex-direction: column; /* Vertical Layout: Icon Top, Text Bottom */
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s;
    padding: 4px 8px;
}

.channel-item:hover {
    transform: translateY(-1px);
    background: #f9fafb;
}

.channel-item:hover .channel-name {
    color: var(--primary-color);
}

/* Icons: Large, Clean, No Background */
.channel-icon-lg {
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Use text color for icon to simulate the colorful glyphs */
.icon-blue { color: #3b82f6; }
.icon-red { color: #ef4444; }
.icon-purple { color: #8b5cf6; }
.icon-orange { color: #f59e0b; }
.icon-green { color: #10b981; }
.icon-teal { color: #14b8a6; }
.icon-indigo { color: #6366f1; }
.icon-cyan { color: #06b6d4; }
.icon-sky { color: #0ea5e9; }

.channel-name {
    font-size: 15px; /* Slightly larger text */
    font-weight: 700; /* Bold */
    color: #333;
    line-height: 1.2;
}

/* JD-style Channel Badge - Solid Gradient Background, White Icon */
.channel-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 8px; /* Slightly more rounded */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    margin-right: 2px;
}
.channel-icon-box i {
    font-size: 16px; /* Slightly larger icon */
    color: #fff;
    line-height: 1;
}

/* JD-style Detail Badge - Gradient Text, No Background */
.detail-channel-icon-box {
    width: 28px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}
.detail-channel-icon-box i {
    font-size: 14px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

/* Theme mappings */
/* Homepage Channels: Background Gradient, White Icon */
.channel-icon-box.icon-blue { background: linear-gradient(135deg, #6aa9ff 0%, #3b82f6 100%); }
.channel-icon-box.icon-purple { background: linear-gradient(135deg, #b084f9 0%, #8b5cf6 100%); }
.channel-icon-box.icon-teal { background: linear-gradient(135deg, #3fd1c4 0%, #14b8a6 100%); }
.channel-icon-box.icon-indigo { background: linear-gradient(135deg, #8ea2ff 0%, #6366f1 100%); }
.channel-icon-box.icon-orange { background: linear-gradient(135deg, #ffc76e 0%, #f59e0b 100%); }
.channel-icon-box.icon-green { background: linear-gradient(135deg, #5ee6a8 0%, #10b981 100%); }
.channel-icon-box.icon-red { background: linear-gradient(135deg, #ff9aa5 0%, #ef4444 100%); }
.channel-icon-box.icon-sky { background: linear-gradient(135deg, #65ccff 0%, #0ea5e9 100%); }
.channel-icon-box.icon-cyan { background: linear-gradient(135deg, #74e2e7 0%, #06b6d4 100%); }
.channel-icon-box.icon-slate { background: linear-gradient(135deg, #aeb8c4 0%, #64748b 100%); }

/* Detail Channels: Solid Gradient Background (Logo Style) */
.detail-channel-icon-box.icon-blue { background: linear-gradient(135deg, #6aa9ff 0%, #3b82f6 100%); }
.detail-channel-icon-box.icon-purple { background: linear-gradient(135deg, #b084f9 0%, #8b5cf6 100%); }
.detail-channel-icon-box.icon-teal { background: linear-gradient(135deg, #3fd1c4 0%, #14b8a6 100%); }
.detail-channel-icon-box.icon-indigo { background: linear-gradient(135deg, #8ea2ff 0%, #6366f1 100%); }
.detail-channel-icon-box.icon-orange { background: linear-gradient(135deg, #ffc76e 0%, #f59e0b 100%); }
.detail-channel-icon-box.icon-green { background: linear-gradient(135deg, #5ee6a8 0%, #10b981 100%); }
.detail-channel-icon-box.icon-red { background: linear-gradient(135deg, #ff9aa5 0%, #ef4444 100%); }
.detail-channel-icon-box.icon-sky { background: linear-gradient(135deg, #65ccff 0%, #0ea5e9 100%); }
.detail-channel-icon-box.icon-cyan { background: linear-gradient(135deg, #74e2e7 0%, #06b6d4 100%); }
.detail-channel-icon-box.icon-slate { background: linear-gradient(135deg, #aeb8c4 0%, #64748b 100%); }

.detail-channel-icon-box i {
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: #fff !important;
    background: none !important;
}

/* Feature Blocks (4 zones) */
.feature-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 0; /* Remove margin-top as we use gap in flex column */
    height: 108px; /* Fixed height for the bottom row */
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: row; /* Changed to row for wide, short cards */
    justify-content: space-between; /* Space between image and text */
    align-items: center; /* Horizontal center */
    text-align: left;
    cursor: pointer;
    padding: 0 16px; /* Horizontal padding */
}

/* Ensure consistent text styling */
.feature-info {
    flex: 1; /* Take remaining space */
}

/* If no image, flex-row + space-between with 1 item pushes it to left.
   We handle centering in JS via inline styles for specific cards,
   but we can add a helper class if preferred.
   For now, existing styles are fine. */

/* Detail Channel Entrances - Optimized Horizontal Layout */
.detail-channel-entrances {
    display: flex;
    gap: 16px;
    flex-wrap: wrap; /* Allow wrapping */
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    /* Removed overflow-x: auto and scrollbar-width to show all items */
}

.detail-channel-entrances::-webkit-scrollbar {
    display: none; 
}

.detail-channel-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    width: calc(20% - 13px); /* 5 items per row approx, taking gap into account */
    min-width: 160px; 
    flex-shrink: 0;   
    box-sizing: border-box;
}

.detail-channel-item:hover {
    background: #fff;
    border-color: var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.detail-channel-item:hover .detail-channel-name {
    color: var(--primary-color);
}

.detail-channel-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.detail-channel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s;
}

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

.feature-image-wrapper {
    width: 78px; /* Increased from 60px (+30%) */
    height: 78px;
    flex: 0 0 auto; /* Fixed size */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-bottom: 0;
    order: 2; /* Image second (right) */
}

.feature-image {
    width: 100%; /* Fill wrapper */
    height: 100%;
    object-fit: cover; /* Equivalent to background-size: cover */
    object-position: center; /* Equivalent to background-position: center */
    transition: transform 0.3s;
    border-radius: 4px;
    display: block; /* Remove inline-img gap */
}

.feature-info {
    padding: 0 12px 0 0; /* Right padding for gap */
    width: auto;
    flex: 1; /* Take remaining space */
    order: 1; /* Text first (left) */
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

/* User Panel Adjustment - Later in file */
.hero-user-panel {
    width: 350px;
    background: #fff;
    border-radius: var(--radius-lg); /* Larger radius for modern feel */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Softer, deeper shadow */
    /* Height stretches automatically */
    height: 100%; 
    display: flex;
    flex-direction: column;
    padding: 0; /* Remove padding here, use inner containers */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.5); /* Subtle border */
}

.hero-user-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    z-index: 0;
}

.hero-user-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 16px 20px 8px; /* Reduced padding */
    margin-bottom: 0;
}

.user-avatar-wrapper {
    width: 56px; /* Slightly smaller avatar */
    height: 56px;
    margin: 0 auto 8px;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.user-avatar {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    overflow: hidden;
}

.hero-user-greet {
    margin-bottom: 4px;
}

.hero-user-hello {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-user-auth {
    font-size: 13px;
    color: var(--text-secondary);
    min-height: 24px; /* Prevent layout shift */
}

.auth-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
    padding: 0 10px;
}

.auth-btn {
    flex: 1;
    padding: 6px 0;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.auth-btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff !important;
    border: none;
}

.auth-btn-register {
    background: #fff;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

.hero-user-main-btn {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* Blue Theme */
    color: white;
    border: none;
    width: calc(100% - 40px);
    margin: 0 auto 16px;
    padding: 10px; 
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
    display: block;
}

.hero-user-main-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
}

.hero-user-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 20px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.hero-user-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 0;
    border-radius: 8px;
}

.hero-user-item:hover {
    color: var(--primary-color);
    background: #f9fafb;
}

.hero-user-item i {
    font-size: 24px;
    margin-bottom: 0;
    color: #6b7280;
}
.hero-user-item:hover i {
    color: var(--primary-color);
}

.hero-user-notice {
    flex: 1;
    padding: 0 20px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.notice-header span {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}

.notice-more {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
}

.notice-more:hover {
    color: var(--primary-color);
    background: #eff6ff;
}

.hero-user-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1; /* Take remaining space */
    min-height: 0; /* Important for flex child scrolling */
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hero-user-notice-list::-webkit-scrollbar {
    display: none;
}

.hero-user-notice-list li {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}
.hero-user-notice-list li:hover {
    color: var(--primary-color);
}

.notice-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.tag-blue { background: #eff6ff; color: var(--primary-color); }
.tag-orange { background: #fff7ed; color: #f97316; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f9fafb;
}

.product-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    background: transparent;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    color: var(--text-secondary);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fav-btn:hover {
    background: #fff;
    transform: scale(1.1);
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fav-btn i {
    font-size: 24px !important;
    line-height: 1 !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-btn:active {
    transform: scale(0.95); /* Press effect */
}

.fav-btn.active {
    color: #ef4444;
    background: #fff;
}

.fav-btn.active i {
    animation: heart-pulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.cart-btn {
    background: #eff6ff; /* Light blue background */
    color: var(--primary-color);
}

.cart-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: #e11d48; /* Price Red */
    font-size: 18px;
    font-weight: 700;
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

/* Footer Channels */
.footer-channels {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    background: #fff;
}

.footer-channel-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-channel-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.footer-channel-col a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-channel-col a:hover {
    color: var(--primary-color);
}

/* AI Sidebar */
.ai-backdrop {
    display: none; /* Disable modal backdrop for Copilot-style side-by-side interaction */
}

#ai-sidebar {
    position: fixed;
    top: 0;
    right: -420px; /* Slightly wider hide distance */
    width: 400px; /* Wider for better reading */
    height: 100vh;
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism base */
    backdrop-filter: blur(12px); /* Frosted glass effect */
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    /* transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); */
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
}

#ai-sidebar.active {
    right: 0;
}

/* AI Button Active State */
.ai-assistant-trigger.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

.ai-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.ai-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ai-icon-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    transform: scale(1.05);
}



#close-ai-sidebar:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-main);
    transform: scale(1.05);
}



.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px; /* More padding */
    background: transparent; /* Remove solid background for glass feel */
    display: flex;
    flex-direction: column;
    gap: 20px; /* More space between messages */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide Scrollbar for Chrome/Safari/Opera */
.ai-chat-container::-webkit-scrollbar {
    display: none;
}

.ai-message {
    display: flex;
    gap: 16px; /* More space between avatar and bubble */
    max-width: 95%; /* Use more width */
    /* animation: slideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); */
}

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

.ai-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    flex-shrink: 0;
}

.ai-message-bot .ai-avatar {
    background: var(--primary-color);
    color: white;
}

.ai-bubble {
    background: white;
    padding: 14px 18px;
    border-radius: 16px;
    border-top-left-radius: 4px; /* Distinctive bot bubble */
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 100%;
}

.ai-message-user .ai-bubble {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 16px;
    border-bottom-right-radius: 4px; /* Distinctive user bubble */
    border-top-left-radius: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.ai-input-area {
    padding: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.6); /* Transparent for glass effect */
}

.ai-input-wrapper {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-input-wrapper:focus-within {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

#ai-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-main);
}

#ai-input:focus {
    box-shadow: none;
}

.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-send-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.ai-send-btn:active {
    transform: scale(0.95);
}

.ai-quick-prompts {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ai-quick-prompts::-webkit-scrollbar {
    display: none;
}

.prompt-chip {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.prompt-chip:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Site Navigation (Top Bar Dropdown) - Big Tech Style */
.nav-dropdown-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger:hover .site-nav-dropdown {
    display: block;
    /* Animation removed for instant feedback */
    opacity: 1;
    transform: translateY(0);
}

.site-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    min-width: 640px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 20px 40px -5px rgba(0, 0, 0, 0.1),
        0 10px 20px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 40px 48px;
    border-radius: 16px;
    margin-top: 6px;
    transform-origin: top right;
}

/* Invisible bridge to prevent hover loss due to margin */
.site-nav-dropdown::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

/* Optional arrow tip - Removed for cleaner look */
.site-nav-dropdown::before {
    display: none;
}

.site-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px; /* Very generous spacing between columns */
    padding: 0;
}

.site-nav-column {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced gap from 8px to 4px effectively by removing margin below title */
    text-align: center;
}

.site-nav-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color); /* Updated to primary blue */
    margin: 0; 
    padding-bottom: 4px; /* Reduced padding from 8px to 4px */
    border-bottom: 1px solid rgba(0,0,0,0.04); /* Subtle separator */
    text-align: center;
}

.site-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced gap from 8px to 4px for tighter grouping */
}

.site-nav-list li {
    margin: 0;
    padding: 0;
}

.site-nav-list li a {
    font-size: 14px;
    color: #1e293b; /* Slate-800 - High contrast */
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0;
    line-height: 1.5;
    font-weight: 500; /* Medium weight for modern feel */
    text-align: center;
}

.site-nav-list li a:hover {
    color: var(--primary-color);
    background: #f1f5f9; /* Slate-100 */
    transform: translateY(-1px);
}

.site-nav-list li a:active {
    background: #e5e7eb;
}

/* Auth Page Styles (Big Factory UI) */
.auth-page {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.auth-modal {
    display: flex;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-radius: 16px;
    overflow: hidden;
    min-height: 600px;
}

.auth-left {
    width: 400px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auth-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right-inner {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 8px;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
    border: none;
    color: white;
    width: 100%;
    cursor: pointer;
}

.auth-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.auth-field input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.auth-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-tab {
    position: relative;
    color: #6b7280;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
}

.auth-tab.active {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.social-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.2s;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

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

.auth-breadcrumb {
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--primary-color);
}

.auth-badge {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0.8;
}

.auth-badge span {
    background: rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2);
}

.auth-main-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
}

.auth-main-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 32px;
    line-height: 1.5;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 32px 0 24px;
    color: #9ca3af;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 16px;
}

.auth-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.auth-top-bar {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-top-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
}

.auth-field-half {
    width: 48%;
    margin-bottom: 0;
}

/* User Request: Adjust Layout (Move Channel/Product block down) */
#home-content-block {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

/* Global Breadcrumb */
.zol-breadcrumb-wrapper {
    width: var(--container-width);
    max-width: 98%;
    margin: 12px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    display: none; /* Hidden by default, shown by JS */
}

.zol-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.zol-breadcrumb-item {
    display: flex;
    align-items: center;
}

.zol-breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.zol-breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}

.zol-breadcrumb-current {
    color: var(--text-main);
    font-weight: 500;
}

/* Cart View Styles */
.cart-view {
    padding-top: 20px;
    padding-bottom: 40px;
    min-height: 60vh;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    font-size: 24px;
    margin: 0;
    color: var(--text-main);
}

#cart-back-link {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

#cart-back-link:hover {
    text-decoration: underline;
}

.cart-body {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.cart-list,
.orders-list,
.favorites-list-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cart-empty::before {
    content: "\f2cc"; /* RemixIcon shopping-cart-line - fallback if font not loaded, or use text */
    font-family: "remixicon";
    font-size: 64px;
    color: #cbd5e1;
}

/* Shared List Item Styles (Cart, Orders, Favorites) */
.cart-item,
.order-item,
.favorite-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 24px;
    transition: background-color 0.2s;
    width: 100%;
}

.cart-item:last-child,
.order-item:last-child,
.favorite-item:last-child {
    border-bottom: none;
}

.cart-item:hover,
.order-item:hover,
.favorite-item:hover {
    background-color: #fafafa;
}

.cart-item-image,
.order-item-image,
.favorite-item-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    display: block;
}

.cart-item-main,
.order-main,
.favorite-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 120px;
    min-width: 0;
}

.cart-item-title,
.order-title,
.favorite-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.cart-item-meta,
.order-meta,
.favorite-item-meta {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-light);
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: auto;
}

.cart-item-price,
.order-price,
.favorite-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.cart-item-actions,
.order-actions,
.favorite-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    min-width: 140px;
}

/* Specific Action Buttons */
.order-view-btn,
.favorite-cart-btn {
    padding: 6px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
}

.order-view-btn:hover,
.favorite-cart-btn:hover {
    background: var(--primary-color);
    color: white;
}

.favorite-cart-btn.primary-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.favorite-cart-btn.primary-button:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.favorite-remove-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.favorite-remove-btn:hover {
    background: #ef4444;
    color: white;
}

/* Order Status Styles */
.order-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.order-status-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.order-status-pending { background-color: #f59e0b; }
.order-status-completed { background-color: #10b981; }
.order-status-cancelled { background-color: #ef4444; }

.order-id, .order-time {
    margin-right: 12px;
}


.cart-item-quantity {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cart-remove-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    background: #ef4444;
    color: white;
}

.cart-summary {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-summary-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--text-secondary);
}

.cart-summary-row span:last-child {
    color: var(--text-main);
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

#cart-total-price {
    font-size: 24px;
    color: #ef4444; /* Red for price */
}

.cart-submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 48px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.1s, box-shadow 0.2s;
}

.cart-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.cart-submit-button:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}


/* --- Refactored Order Page Styles (JD/Taobao Style) --- */

.order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.order-card-header {
    background: #f9fafb;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #6b7280;
}

.order-header-left {
    display: flex;
    gap: 20px;
}

.order-date {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.order-store-name {
    color: #374151;
    font-weight: 500;
}

.order-card-body {
    padding: 20px;
    display: flex;
    align-items: flex-start; /* Top align for multiline content */
    gap: 0; /* Using flex basis/width for columns */
}

/* Goods Info Column (Wide) */
.order-goods-info {
    flex: 1; /* Takes remaining space */
    display: flex;
    gap: 16px;
    padding-right: 20px;
}

.order-goods-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
    background: #f9f9f9;
}

.order-goods-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-goods-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    max-width: 320px;
}
.order-goods-name:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.order-goods-sku {
    font-size: 12px;
    color: #999;
}

/* Vertical Divider Columns */
.order-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    min-height: 80px; /* Match image height min */
    border-left: 1px solid #f0f0f0;
}

.order-price-qty {
    width: 120px;
}

.order-price-text {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: #333;
}

.order-qty-text {
    color: #999;
    font-size: 12px;
}

.order-status-section {
    width: 120px;
}

.order-status-text {
    font-size: 13px;
    font-weight: 500;
}
.status-pending { color: #f59e0b; }
.status-completed { color: #10b981; }
.status-cancelled { color: #9ca3af; }

.order-actions-section {
    width: 140px;
    gap: 8px;
    border-right: none;
    padding-right: 0;
}

.order-btn {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}
.btn-primary:hover {
    filter: brightness(1.1);
}

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

.btn-text {
    background: none;
    color: #666;
    padding: 4px;
    border: none;
}
.btn-text:hover {
    color: var(--primary-color);
    background: none;
}

/* Breadcrumb Polish */
.zol-breadcrumb {
    font-size: 12px !important;
}
.zol-breadcrumb-item:last-child {
    font-weight: bold;
    color: #333;
}


/* JD Style Product Detail Page */
.product-detail-view {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    min-height: 800px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Channel Navigation */
.detail-channel-entrances {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.channel-list {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.channel-list::-webkit-scrollbar {
    display: none;
}

.channel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 80px;
    transition: transform 0.2s;
}

.channel-item:hover {
    transform: translateY(-2px);
}

.channel-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.channel-item:hover .channel-icon {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.channel-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.product-intro {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

/* Gallery Section */
.product-detail-gallery {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-detail-main-media {
    width: 400px;
    height: 400px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.product-detail-main-media img,
.product-detail-main-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.detail-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.detail-thumb.active {
    border-color: #e4393c; /* JD Red */
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Info Section */
.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.detail-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 20px;
    align-items: center;
}

.detail-rating {
    color: #e4393c;
    font-weight: 700;
}

/* Specs Table */
.detail-specs-title {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    padding-left: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 180px minmax(280px, 1fr) 180px minmax(280px, 1fr);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 14px;
    background: #fff;
}

.spec-cell {
    box-sizing: border-box;
    padding: 12px 16px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.spec-cell.label {
    background-color: #f7f7f7;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
}

.spec-cell.value {
    background-color: #fff;
    color: #333;
    word-break: normal;
    overflow-wrap: break-word;
}

.spec-cell.value.wide {
    grid-column: span 3;
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 100px 1fr;
    }
    .spec-cell.value.wide {
        grid-column: span 1;
    }
}

.detail-price-box {
    background: #f3f4f6;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
}

.detail-price-label {
    font-size: 13px;
    color: #999;
}

.detail-price-wrapper {
    color: #e4393c;
    font-weight: 700;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.detail-price-wrapper .currency {
    font-size: 18px;
    margin-right: 2px;
}

.detail-price-wrapper .detail-price {
    font-size: 32px;
}

.detail-promo-tag {
    background: #e4393c;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 10px;
    align-self: center;
}

/* Attributes */
.detail-attrs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px dotted #e0e0e0;
    border-bottom: 1px dotted #e0e0e0;
}

.detail-attr-row {
    display: flex;
    align-items: baseline;
    font-size: 14px;
}

.detail-attr-label {
    width: 70px;
    color: #999;
    flex-shrink: 0;
}

.detail-attr-value {
    color: #333;
}

.detail-services-list {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 13px;
}

.detail-services-list span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-services-list i {
    color: #e4393c;
    font-size: 16px;
}

/* Actions */
.detail-actions-area {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.detail-quantity-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #eee;
}

#detail-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 15px;
    color: #333;
    outline: none;
}

.detail-buttons {
    display: flex;
    gap: 16px;
}

/* Button Styles - Specific to Detail Page */
.detail-cart-button {
    background: #ffeded;
    color: #e4393c;
    border: 1px solid #e4393c;
    padding: 0 30px;
    height: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.detail-cart-button:hover {
    background: #ffdcdc;
}

.detail-buy-button {
    background: #e4393c;
    color: white;
    border: none;
    padding: 0 40px;
    height: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    transition: background 0.2s;
}

.detail-buy-button:hover {
    background: #c81623;
}

.detail-buy-button .buy-sub {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.detail-collect-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-left: 10px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.detail-collect-btn:hover {
    color: #e4393c;
    background: #fff0f0;
}

/* Tabs */
.product-detail-tabs-container {
    width: 100%;
    margin-top: 40px;
}

.detail-tabs-nav {
    display: flex;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-bottom: 2px solid #e4393c;
}

.detail-tab-btn {
    padding: 14px 30px;
    font-size: 15px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    font-weight: 600;
    transition: all 0.2s;
}

.detail-tab-btn:hover {
    color: #e4393c;
}

.detail-tab-btn.active {
    background: #e4393c;
    color: white;
}

.detail-tab-content {
    display: none;
    padding: 30px;
    border: 1px solid #eee;
    border-top: none;
    min-height: 400px;
    background: #fff;
}

.detail-tab-content.active {
    display: block;
}

.detail-desc-text {
    line-height: 1.8;
    color: #666;
    font-size: 15px;
}

.detail-specs-container {
    display: block;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    font-size: 14px;
}

.spec-label {
    color: #999;
    width: 90px;
    flex-shrink: 0;
}

.spec-value {
    color: #333;
    font-weight: 500;
}
