/* Bangladesh Tech Home - Main Styles */

/* Reset and Base Styles */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
}

:root {
            /* 主色调 - 专业深蓝系 (60%) - 符合家电行业权威感 */
            --primary-color: #1E3A8A;
            --primary-dark: #1E40AF;
            --primary-light: #3B82F6;
            --primary-lighter: #60A5FA;

            /* 副色调 - 深灰色系 (30%) - 提升专业感 */
            --secondary-color: #374151;
            --secondary-dark: #1F2937;
            --secondary-light: #6B7280;

            /* 强调色 - 橙色系 (10%) - 家电行业活力色 */
            --accent-color: #F59E0B;
            --accent-dark: #D97706;
            --accent-light: #FBBF24;

            /* 文字颜色 - 符合WCAG 2.1 AA标准 */
            --text-dark: #111827;
            --text-light: #6B7280;
            --text-muted: #9CA3AF;
            --text-on-primary: #FFFFFF;
            --text-on-dark: #F9FAFB;

            /* 背景颜色 - 专业简洁 */
            --bg-light: #F9FAFB;
            --bg-white: #FFFFFF;
            --bg-primary: #F8FAFC;
            --bg-secondary: #1F2937;
            --bg-accent: #FEF3C7;

            /* 边框和分割线 - 专业简洁 */
            --border-color: #E5E7EB;
            --border-primary: #D1D5DB;
            --border-secondary: #9CA3AF;
            --border-light: #F3F4F6;
            --border-accent: #FDE68A;

            /* 状态颜色 - 符合WCAG 2.1 AA标准 */
            --success-color: #10B981;
            --error-color: #EF4444;
            --warning-color: #F59E0B;
            --info-color: #3B82F6;

            /* 阴影效果 - 专业简洁 */
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
            --shadow-primary: 0 2px 8px rgba(0, 0, 0, 0.1);

            /* 其他 */
            --border-radius: 12px;
            --border-radius-sm: 8px;
            --border-radius-lg: 16px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background: #f8f9fa;
            min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-dark);
}

h1 {
            font-size: 2.5rem;
}

h2 {
            font-size: 2rem;
}

h3 {
            font-size: 1.5rem;
}

h4 {
            font-size: 1.25rem;
}

h5 {
            font-size: 1.1rem;
}

h6 {
            font-size: 1rem;
}

p {
            margin-bottom: 1rem;
            color: var(--text-dark);
}

a {
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
}

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

/* Container */
.container {
            max-width: 1200px;
            margin: 0.5rem auto;
}

.container-fluid {
            width: 100%;
            padding: 0 1rem;
}

/* Grid System */
.row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -0.375rem;
}

.col {
            flex: 1;
            padding: 0 0.375rem;
}

.col-1 {
            flex: 0 0 8.333333%;
}

.col-2 {
            flex: 0 0 16.666667%;
}

.col-3 {
            flex: 0 0 25%;
}

.col-4 {
            flex: 0 0 33.333333%;
}

.col-6 {
            flex: 0 0 50%;
}

.col-8 {
            flex: 0 0 66.666667%;
}

.col-9 {
            flex: 0 0 75%;
}

.col-12 {
            flex: 0 0 100%;
}

/* Header */
.header {
            background: var(--bg-white);
            box-shadow: 0 2px 12px rgba(74, 144, 226, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(74, 144, 226, 0.15);
}

/* Top Bar */
.top-bar {
            background: var(--secondary-color);
            color: white;
            padding: 0.5rem 0;
            font-size: 0.9rem;
}

.top-bar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
}

.contact-info {
            display: flex;
            gap: 2rem;
}

.contact-info span {
            display: flex;
            align-items: center;
            gap: 0.5rem;
}

.top-bar-links {
            display: flex;
            gap: 1rem;
}

.top-bar-links a {
            color: white;
            text-decoration: none;
            transition: var(--transition);
}

.top-bar-links a:hover {
            opacity: 0.8;
}

/* Main Header */
.main-header {
            padding: 0.75rem 0;
}

.header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
}

.logo img {
            width: 120px;
            height: 40px;
            object-fit: contain;
}

.search-bar {
            flex: 1;
            max-width: 500px;
            margin: 0 1.5rem;
            position: relative;
}

.search-bar form {
            display: flex;
            position: relative;
}

.search-bar input {
            width: 100%;
            padding: 0.625rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 1rem;
            transition: var(--transition);
            background: rgba(255, 255, 255, 0.9);
}

.search-bar input:focus {
            outline: none;
            border-color: var(--primary-color);
}

.search-bar button {
            position: absolute;
            right: 0.375rem;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            border: none;
            padding: 0.375rem 0.875rem;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.search-bar button:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
            transform: translateY(-50%) translateY(-1px);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.user-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
}

.auth-link,
.wishlist-link,
.cart-link {
            position: relative;
            display: flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.5rem 0.75rem;
            border-radius: 10px;
            transition: var(--transition);
            cursor: pointer;
            text-decoration: none;
            color: var(--text-dark);
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid transparent;
}

.auth-link:hover,
.wishlist-link:hover,
.cart-link:hover {
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
            color: var(--primary-color);
            border-color: rgba(74, 144, 226, 0.2);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.user-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--bg-white);
            box-shadow: var(--shadow);
            border-radius: var(--border-radius);
            min-width: 150px;
            z-index: 1000;
}

.user-menu a {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition);
}

.user-menu a:hover {
            background: var(--bg-light);
}

.cart-count,
.wishlist-count {
            position: absolute;
            top: -0.25rem;
            right: -0.25rem;
            background: var(--error-color);
            color: white;
            border-radius: 50%;
            width: 1.25rem;
            height: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: bold;
}

.cart-dropdown {
            position: relative;
}

.cart-dropdown-content {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--bg-white);
            box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
            border: 1px solid var(--border-light);
            border-radius: var(--border-radius);
            min-width: 320px;
            max-width: 420px;
            z-index: 1000;
            display: none;
            backdrop-filter: blur(10px);
}

.cart-items {
            max-height: 300px;
            overflow-y: auto;
}

.cart-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-light);
            transition: var(--transition);
}

.cart-item:hover {
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
}

.cart-item img {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: var(--border-radius-sm);
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.item-details h4 {
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
}

.item-details p {
            font-size: 0.8rem;
            color: var(--text-light);
            margin: 0;
}

.remove-item {
            background: none;
            border: none;
            color: var(--error-color);
            cursor: pointer;
            padding: 0.375rem;
            border-radius: 50%;
            transition: var(--transition);
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.remove-item:hover {
            background: linear-gradient(135deg, var(--error-color), #C0392B);
            color: white;
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.cart-footer {
            padding: 1.25rem;
            border-top: 1px solid var(--border-light);
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
}

.cart-total {
            margin-bottom: 1rem;
            font-weight: bold;
            text-align: center;
}

.empty-cart {
            padding: 2rem;
            text-align: center;
            color: var(--text-muted);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            flex-direction: column;
            gap: 0.25rem;
}

.mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--text-dark);
            transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.main-nav {
            background: var(--primary-color);
            border-top: 1px solid var(--border-primary);
            box-shadow: var(--shadow);
            border-radius: 0 0 12px 12px;
}

.nav-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
}

.nav-menu li {
            position: relative;
}

.nav-menu a {
            display: block;
            padding: 1rem 1.25rem;
            color: var(--text-on-primary);
            font-weight: 500;
            transition: var(--transition);
            text-decoration: none;
            border-radius: var(--border-radius-sm);
            margin: 0.375rem;
            position: relative;
            overflow: hidden;
}

.nav-menu a:hover {
            background: var(--secondary-color);
            color: white;
            transform: translateY(-1px);
            box-shadow: var(--shadow-hover);
}

.nav-menu a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
}

.nav-menu a:hover::before {
            left: 100%;
}

/* Dropdown Menu */
.has-dropdown {
            position: relative;
}

.dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--bg-white);
            box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
            border: 1px solid var(--border-light);
            border-radius: var(--border-radius);
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            list-style: none;
            margin: 0;
            padding: 0.75rem 0;
            backdrop-filter: blur(10px);
}

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

.dropdown-menu li {
            margin: 0;
}

.dropdown-menu a {
            padding: 0.75rem 1.25rem;
            color: var(--text-dark);
            font-weight: 500;
            border-radius: 0;
            transition: var(--transition);
            position: relative;
            display: flex;
            align-items: center;
            gap: 0.5rem;
}

.dropdown-menu a:hover {
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
            color: var(--primary-color);
            transform: translateX(4px);
}

.dropdown-menu a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--primary-color);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

.dropdown-menu a:hover::before {
            transform: scaleY(1);
}

/* Dropdown */
.dropdown {
            position: relative;
}

.dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--bg-white);
            box-shadow: var(--shadow);
            border-radius: var(--border-radius);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
            z-index: 1000;
}

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

.dropdown-item {
            display: block;
            padding: 0.75rem 1rem;
            color: var(--text-dark);
            transition: var(--transition);
}

.dropdown-item:hover {
            background: var(--bg-light);
}

/* Buttons */
.btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.625rem 1.25rem;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            min-height: 40px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
}

.btn-primary {
            background: var(--primary-color);
            color: white;
            border: none;
            box-shadow: var(--shadow);
}

.btn-primary:hover {
            background: var(--primary-dark);
            box-shadow: var(--shadow-hover);
            transform: translateY(-1px);
            color: white;
}

.btn-primary:active {
            transform: translateY(0);
            box-shadow: var(--shadow);
}

.btn-secondary {
            background: var(--secondary-color);
            color: white;
            border: none;
            box-shadow: var(--shadow);
}

.btn-secondary:hover {
            background: var(--secondary-dark);
            color: white;
            box-shadow: var(--shadow-hover);
            transform: translateY(-1px);
}

.btn-secondary:active {
            transform: translateY(0);
            box-shadow: var(--shadow);
}

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

.btn-outline:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            box-shadow: var(--shadow-hover);
            transform: translateY(-1px);
}

.btn-outline:active {
            transform: translateY(0);
            box-shadow: var(--shadow);
}

.btn-sm {
            padding: 0.5rem 0.875rem;
            font-size: 0.875rem;
            min-height: 32px;
            border-radius: 8px;
}

.btn-lg {
            padding: 0.875rem 1.75rem;
            font-size: 1.05rem;
            min-height: 48px;
            border-radius: 12px;
}

/* Cards */
.card {
            background: var(--bg-white);
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(74, 144, 226, 0.08);
            border: 1px solid rgba(74, 144, 226, 0.1);
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
}

.card:hover {
            box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
            transform: translateY(-4px);
            border-color: rgba(74, 144, 226, 0.2);
}

.card-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-light);
            color: var(--text-dark);
            border-radius: 12px 12px 0 0;
}

.card-body {
            padding: 1.25rem;
}

.card-footer {
            padding: 1rem 1.25rem;
            border-top: 1px solid var(--border-color);
            background: var(--bg-light);
            color: var(--text-dark);
            border-radius: 0 0 12px 12px;
}

/* Products Grid */
.products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
}

/* Wishlist Items */
.wishlist-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
}

/* Product Card */
.product-card {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(74, 144, 226, 0.08);
            border: 1px solid rgba(74, 144, 226, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: var(--bg-white);
}

.product-image {
            width: 100%;
            object-fit: cover;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 12px 12px 0 0;
}

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

.product-badge {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            background: linear-gradient(135deg, var(--error-color), #C0392B);
            color: white;
            padding: 0.375rem 0.75rem;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
            z-index: 2;
}

.product-info {
            padding: 1.25rem;
}

.product-name {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
}

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

.current-price {
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--secondary-color);
}

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

.discount {
            background: var(--accent-color);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: var(--border-radius);
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: var(--shadow);
}

/* Off/Sale labels */
.product-badge,
.off-label,
.sale-label {
            background: var(--accent-color);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: var(--border-radius);
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: var(--shadow);
}

.product-rating {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin-bottom: 0.5rem;
}

.star {
            color: #FFD700;
            font-size: 0.9rem;
}

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

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

.product-actions .btn {
            flex: 1;
            padding: 0.5rem;
            font-size: 0.9rem;
}

/* Hero Banner Section - 响应式Banner优化 */
.hero-banner {
            position: relative;
            width: 100%;
            overflow: hidden;
            margin-bottom: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            min-height: 400px;
}

.banner-container {
            position: relative;
            width: 1200px;
            max-width: 100%;
            padding: 4rem 2rem;
            text-align: center;
            color: white;
}

.banner-content h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 唯一核心CTA按钮 - 固定宽高比设计 */
.main-cta {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 1rem 2.5rem;
            font-size: 1.2rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            min-width: 200px;
            aspect-ratio: 3/1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
}

.main-cta:hover {
            background: var(--accent-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.main-cta:active {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* 移动端响应式优化 */
@media (max-width: 1200px) {
            .banner-container {
                        width: 100%;
                        padding: 3rem 1.5rem;
            }
}

@media (max-width: 768px) {
            .banner-container {
                        width: 100%;
                        padding: 2.5rem 1rem;
            }

            .banner-content h1 {
                        font-size: 2.5rem;
            }

            .banner-content p {
                        font-size: 1.2rem;
            }

            .main-cta {
                        padding: 1rem 2.5rem;
                        font-size: 1.1rem;
                        min-width: 200px;
                        aspect-ratio: 2.8/1;
                        font-weight: 700;
            }
}

@media (max-width: 480px) {
            .banner-container {
                        width: 100%;
                        padding: 2rem 1rem;
            }

            .banner-content h1 {
                        font-size: 2rem;
            }

            .banner-content p {
                        font-size: 1rem;
            }

            .main-cta {
                        padding: 0.9rem 1rem;
                        font-size: 1rem;
                        min-width: 3rem;
                        aspect-ratio: 2.5/1;
                        font-weight: 700;
            }
}

/* Hero Section - 保留原有样式用于其他页面 */
.hero {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            padding: 4rem 0;
            text-align: center;
            box-shadow: var(--shadow-primary);
}

.hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: white;
}

.hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
}

/* Section - 优化后的section样式，移除不必要的边框 */
.section {
            padding: 2.5rem 0;
            margin: 0.75rem 0;
}

.section-header {
            text-align: center;
            margin-bottom: 3rem;
            padding: 0;
        }

.section-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--text-dark);
            font-weight: 700;
            line-height: 1.2;
        }

.section-subtitle {
            font-size: 1.2rem;
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

/* Features */
.features {
            background: var(--bg-white);
            border-radius: var(--border-radius);
            margin: 1rem 0;
            box-shadow: var(--shadow);
}

.feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
}

.feature-card {
            text-align: center;
            padding: 2rem;
            background: var(--bg-white);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
}

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

.feature-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
}

.feature-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
}

.feature-description {
            color: var(--text-light);
}

/* Footer */
.footer {
            background: var(--text-dark);
            color: white;
            padding: 3rem 0 1rem;
}

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

.footer-section h3 {
            color: white;
            margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.5rem;
}

.footer-section a:hover {
            color: white;
}

.footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 1rem;
            text-align: center;
            color: rgba(255, 255, 255, 0.6);
}

/* Forms */
.form-group {
            margin-bottom: 1rem;
}

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

.form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-sm);
            font-size: 1rem;
            transition: var(--transition);
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.05);
}

.form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
            background: white;
}

.form-textarea {
            resize: vertical;
            min-height: 100px;
            border-radius: var(--border-radius-sm);
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.05);
            border: 1px solid var(--border-color);
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: var(--transition);
}

.form-textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
            background: white;
}

.form-select {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 0.75rem center;
            background-repeat: no-repeat;
            background-size: 1.5em 1.5em;
            padding-right: 2.75rem;
            border-radius: var(--border-radius-sm);
            background-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.05);
            border: 1px solid var(--border-color);
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: var(--transition);
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
}

.form-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
            background-color: white;
}

/* Toast Notifications */
.toast-container {
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 9999;
}

.toast {
            background: var(--bg-white);
            border-radius: var(--border-radius);
            box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
            border: 1px solid var(--border-light);
            margin-bottom: 0.75rem;
            min-width: 320px;
            animation: slideIn 0.3s ease;
            backdrop-filter: blur(10px);
}

.toast-success {
            border-left: 4px solid var(--success-color);
            background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.02));
}

.toast-error {
            border-left: 4px solid var(--error-color);
            background: linear-gradient(135deg, rgba(244, 67, 54, 0.05), rgba(244, 67, 54, 0.02));
}

.toast-warning {
            border-left: 4px solid var(--warning-color);
            background: linear-gradient(135deg, rgba(255, 152, 0, 0.05), rgba(255, 152, 0, 0.02));
}

.toast-info {
            border-left: 4px solid var(--primary-color);
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
}

.toast-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
}

.toast-message {
            flex: 1;
            margin-right: 1rem;
}

.toast-close {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: var(--text-muted);
}

@keyframes slideIn {
            from {
                        transform: translateX(100%);
                        opacity: 0;
            }

            to {
                        transform: translateX(0);
                        opacity: 1;
            }
}

/* Modern Breadcrumb - 简洁扁平化设计 */
.breadcrumb {
            background: transparent;
            padding: 1.5rem 0;
            margin-bottom: 0;
            border: none;
            border-radius: 0;
}

.breadcrumb-nav {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1rem;
            font-weight: 500;
}

.breadcrumb-nav a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 500;
            font-size: 1rem;
}

.breadcrumb-nav a:hover {
            color: var(--primary-dark);
            text-decoration: none;
        }

.breadcrumb-nav .separator {
            color: var(--text-muted);
            font-weight: 400;
            margin: 0 0.5rem;
            font-size: 1rem;
}

.breadcrumb-nav span:last-child {
            color: var(--text-dark);
            font-weight: 600;
            font-size: 1rem;
}

/* Main Content */
.main-content {
            min-height: calc(100vh - 200px);
}

/* Social Links */
.social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
}

.social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            text-decoration: none;
            transition: var(--transition);
}

.social-links a:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
            .container {
                        padding: 0 0.5rem;
            }

            /* Top Bar */
            .top-bar {
                        display: none;
            }

            /* Header */
            .header-content {
                        flex-wrap: wrap;
                        gap: 1rem;
            }

            .search-bar {
                        order: 3;
                        flex: 1 1 100%;
                        margin: 0;
            }

            .mobile-menu-toggle {
                        display: flex;
            }

            .user-actions {
                        gap: 0.5rem;
            }

            .auth-link span,
            .wishlist-link span,
            .cart-link span {
                        display: none;
            }

            /* Navigation */
            .main-nav {
                        display: none;
            }

            .main-nav.active {
                        display: block;
            }

            .nav-menu {
                        flex-direction: column;
            }

            .nav-menu li {
                        border-bottom: 1px solid var(--border-color);
            }

            .nav-menu a {
                        padding: 1rem;
            }

            .dropdown-menu {
                        position: static;
                        opacity: 1;
                        visibility: visible;
                        transform: none;
                        box-shadow: none;
                        background: var(--bg-light);
                        border-radius: 0;
            }

            .has-dropdown:hover .dropdown-menu {
                        transform: none;
            }

            /* Cart Dropdown */
            .cart-dropdown-content {
                        right: -1rem;
                        min-width: 280px;
            }

            /* Hero */
            .hero h1 {
                        font-size: 2rem;
            }

            .hero p {
                        font-size: 1rem;
            }

            .hero-actions {
                        flex-direction: column;
                        align-items: center;
            }

            /* Sections */
            .section {
                        padding: 2rem 0;
            }

            .section-title {
                        font-size: 1.5rem;
            }

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

            /* Footer */
            .footer-content {
                        grid-template-columns: 1fr;
                        text-align: center;
            }

            /* Grid */
            .col-6,
            .col-4,
            .col-3 {
                        flex: 0 0 100%;
            }

            /* Products Grid - Mobile 2 columns */
            .products-grid {
                        grid-template-columns: repeat(2, 1fr);
                        gap: 1rem;
                        padding: 0 0.5rem;
            }

            /* Enhanced product cards mobile optimization */
            .enhanced-product-card {
                        width: 100%;
                        margin-bottom: 1rem;
            }

            /* Mobile product card styling */
            .enhanced-product-card .product-card {
                        height: auto;
                        min-height: 320px;
            }

            .enhanced-product-card .image {
                        height: 180px;
                        object-fit: cover;
                        width: 100%;
            }

            .enhanced-product-card .actions {
                        flex-direction: column;
                        gap: 0.5rem;
            }

            .enhanced-product-card .btn {
                        padding: 0.6rem 1rem;
                        font-size: 0.85rem;
                        width: 100%;
            }

            /* Featured products grid - show more products */
            .features .products-grid {
                        grid-template-columns: repeat(2, 1fr);
                        gap: 1rem;
            }

            /* Home page featured products mobile optimization */
            #featured .products-grid {
                        grid-template-columns: repeat(2, 1fr) !important;
                        gap: 1rem !important;
                        padding: 0 0.5rem !important;
            }

            #featured .enhanced-product-card {
                        width: 100% !important;
                        margin-bottom: 1rem !important;
            }

            /* Unified products page mobile optimization */
            .products-unified .products-grid {
                        grid-template-columns: repeat(2, 1fr);
                        gap: 1rem;
                        padding: 1rem;
            }

            /* Enhanced product cards mobile optimization */
            .enhanced-product-card {
                        margin-bottom: 1rem;
            }

            .enhanced-product-card .product-card {
                        height: auto;
                        min-height: 280px;
            }

            .enhanced-product-card .image {
                        height: 160px;
            }

            .enhanced-product-card .actions {
                        flex-direction: column;
                        gap: 0.5rem;
            }

            .enhanced-product-card .btn {
                        padding: 0.5rem 0.75rem;
                        font-size: 0.8rem;
            }

            /* Action icons always visible on mobile */
            .enhanced-product-card .action-icons {
                        opacity: 1;
            }

            .enhanced-product-card .icon-btn {
                        width: 32px;
                        height: 32px;
                        font-size: 12px;
            }

            /* View all button mobile optimization */
            .view-all-btn {
                        padding: 0.875rem 2rem;
                        font-size: 1rem;
                        min-width: 200px;
            }

            .section-footer {
                        margin:1.5rem 0;
                        padding-top: 1.5rem;
            }

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

            /* Enhanced product cards mobile optimization */
            .enhanced-product-card {
                        margin-bottom: 1rem;
            }

            .enhanced-product-card .product-card {
                        height: auto;
                        min-height: 300px;
            }

            .enhanced-product-card .image {
                        height: 180px;
            }

            .enhanced-product-card .actions {
                        flex-direction: column;
                        gap: 0.5rem;
            }

            .enhanced-product-card .btn {
                        padding: 0.5rem 0.75rem;
                        font-size: 0.8rem;
            }

            .product-actions {
                        flex-direction: column;
            }

            /* Toast */
            .toast {
                        min-width: auto;
                        width: calc(100vw - 2rem);
            }

            /* Typography */
            h1 {
                        font-size: 2rem;
            }

            h2 {
                        font-size: 1.5rem;
            }

            h3 {
                        font-size: 1.25rem;
            }
}

@media (max-width: 480px) {
            .container {
                        padding: 0 0.75rem;
            }

            /* Header */
            .header-content {
                        gap: 0.5rem;
            }

            .logo img {
                        height: 40px;
            }

            .search-bar {
                        margin: 0;
            }

            .user-actions {
                        gap: 0.25rem;
            }

            .auth-link,
            .wishlist-link,
            .cart-link {
                        padding: 0.25rem;
            }

            /* Hero */
            .hero {
                        padding: 2rem 0;
            }

            .hero h1 {
                        font-size: 1.5rem;
            }

            .hero p {
                        font-size: 0.9rem;
            }

            /* Sections */
            .section {
                        padding: 1.5rem 0;
            }

            .section-title {
                        font-size: 1.25rem;
            }

            /* Cards */
            .card-body {
                        padding: 0.75rem;
            }

            /* Buttons */
            .btn {
                        padding: 0.5rem 1rem;
                        font-size: 0.9rem;
            }

            .btn-lg {
                        padding: 0.75rem 1.5rem;
                        font-size: 1rem;
            }

            /* Product Cards */
            .product-card {
                        margin-bottom: 1rem;
            }

            .product-image {
            }

            .product-info {
                        padding: 0.75rem;
            }

            .product-name {
                        font-size: 0.9rem;
            }

            .current-price {
                        font-size: 1rem;
            }

            /* Products Grid - Small mobile 1 column */
            .products-grid {
                        grid-template-columns: 1fr;
                        gap: 1rem;
            }

            .wishlist-items {
                        grid-template-columns: 1fr;
                        gap: 1rem;
            }

            /* Forms */
            .form-input,
            .form-select,
            .form-textarea {
                        padding: 0.5rem;
                        font-size: 0.9rem;
            }

            /* Footer */
            .footer {
                        padding: 2rem 0 1rem;
            }

            .footer-content {
                        gap: 1.5rem;
            }

            .social-links {
                        justify-content: center;
            }

            /* View all button small mobile optimization */
            .view-all-btn {
                        padding: 0.75rem 1.5rem;
                        font-size: 0.95rem;
                        min-width: 180px;
            }

            .section-footer {
                        margin: 1rem 0;
                        padding-top: 1rem;
            }

            /* Typography */
            h1 {
                        font-size: 1.5rem;
            }

            h2 {
                        font-size: 1.25rem;
            }

            h3 {
                        font-size: 1.1rem;
            }

            h4 {
                        font-size: 1rem;
            }

            /* Spacing */
            .mb-4 {
                        margin-bottom: 1.5rem;
            }

            .mt-4 {
                        margin-top: 1.5rem;
            }

            .p-4 {
                        padding: 1.5rem;
            }
}

/* Loading Spinner */
.loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(59, 130, 246, 0.3);
            border-radius: 50%;
            border-top-color: #3B82F6;
            animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-center {
            text-align: center;
}

.text-left {
            text-align: left;
}

.text-right {
            text-align: right;
}

.mb-1 {
            margin-bottom: 0.5rem;
}

.mb-2 {
            margin-bottom: 1rem;
}

.mb-3 {
            margin-bottom: 1.5rem;
}

.mb-4 {
            margin-bottom: 2rem;
}

.mt-1 {
            margin-top: 0.5rem;
}

.mt-2 {
            margin-top: 1rem;
}

.mt-3 {
            margin-top: 1.5rem;
}

.mt-4 {
            margin-top: 2rem;
}

.p-1 {
            padding: 0.5rem;
}

.p-2 {
            padding: 1rem;
}

.p-3 {
            padding: 1.5rem;
}

.p-4 {
            padding: 2rem;
}

.d-none {
            display: none;
}

.d-block {
            display: block;
}

.d-flex {
            display: flex;
}

/* Products Grid */
.products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
}

/* Featured products grid - show more products on desktop */
.features .products-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.2rem;
}

/* Section footer for view all button */
.section-footer {
            text-align: center;
            margin: 2rem 0;
            padding-top: 2rem;
            border-top: 1px solid var(--border-light);
}

/* View all button styling */
.view-all-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
            position: relative;
            overflow: hidden;
}

.view-all-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
            color: white;
            text-decoration: none;
}

.view-all-btn:active {
            transform: translateY(0);
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.view-all-btn i {
            transition: transform 0.3s ease;
            font-size: 1rem;
        }

.view-all-btn:hover i {
            transform: translateX(4px);
        }

.d-grid {
            display: grid;
}

/* Browser compatibility fixes */
@supports not (display: grid) {
            .products-grid {
                        display: flex;
                        flex-wrap: wrap;
                        margin: -0.75rem;
            }

            .products-grid>* {
                        flex: 0 0 calc(25% - 1.5rem);
                        margin: 0.75rem;
            }

            @media (max-width: 768px) {
                        .products-grid>* {
                                    flex: 0 0 calc(50% - 1rem);
                        }
            }
}

/* Fallback for older browsers */
.no-cssgrid .products-grid {
            display: flex;
            flex-wrap: wrap;
            margin: -0.75rem;
}

.no-cssgrid .products-grid>* {
            flex: 0 0 calc(25% - 1.5rem);
            margin: 0.75rem;
}

.no-cssgrid .products-grid .enhanced-product-card {
            width: 100%;
}

/* CSS Custom Properties fallback */
:root {
            --primary-color: #1E3A8A;
            --primary-dark: #1E40AF;
            --secondary-color: #374151;
            --secondary-dark: #1F2937;
            --accent-color: #F59E0B;
            --success-color: #10B981;
            --warning-color: #F59E0B;
            --error-color: #EF4444;
            --text-dark: #111827;
            --text-light: #6B7280;
            --text-muted: #9CA3AF;
            --bg-white: #FFFFFF;
            --bg-light: #F9FAFB;
            --border-color: #E5E7EB;
            --border-radius: 12px;
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* IE11 compatibility */
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
            .products-grid {
                        display: -ms-flexbox;
                        -ms-flex-wrap: wrap;
            }

            .enhanced-product-card {
                        -ms-flex: 0 0 25%;
                        width: 25%;
            }
}

.justify-center {
            justify-content: center;
}

.justify-between {
            justify-content: space-between;
}

.align-center {
            align-items: center;
}

.w-100 {
            width: 100%;
}

.h-100 {
            height: 100%;
}

.rounded {
            border-radius: var(--border-radius);
}

.shadow {
            box-shadow: var(--shadow);
}

/* ========================================
   MOBILE RESPONSIVE DESIGN OPTIMIZATION
   ======================================== */

/* Extra Small Devices (320px and up) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* Typography adjustments for extra small screens */
    h1 { font-size: 1.5rem; line-height: 1.2; }
    h2 { font-size: 1.3rem; line-height: 1.3; }
    h3 { font-size: 1.1rem; line-height: 1.4; }
    h4 { font-size: 1rem; line-height: 1.4; }
    h5 { font-size: 0.9rem; line-height: 1.5; }
    h6 { font-size: 0.8rem; line-height: 1.5; }
    
    p, .text { font-size: 0.85rem; line-height: 1.5; }
    .small-text { font-size: 0.75rem; line-height: 1.4; }
    .large-text { font-size: 0.95rem; line-height: 1.5; }
    
    /* Button touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        touch-action: manipulation;
    }
    
    /* Product grid - single column on very small screens */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid > * {
        flex: 0 0 100%;
        margin: 0.5rem 0;
    }
    
    /* Category navigation */
    .category-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .category-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Feature cards */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
        text-align: center;
    }
}

/* Small Devices (480px and up) */
@media (min-width: 321px) and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Typography adjustments for small screens */
    h1 { font-size: 1.8rem; line-height: 1.2; }
    h2 { font-size: 1.6rem; line-height: 1.3; }
    h3 { font-size: 1.4rem; line-height: 1.4; }
    h4 { font-size: 1.2rem; line-height: 1.4; }
    h5 { font-size: 1.1rem; line-height: 1.5; }
    h6 { font-size: 1rem; line-height: 1.5; }
    
    p, .text { font-size: 0.9rem; line-height: 1.5; }
    .small-text { font-size: 0.8rem; line-height: 1.4; }
    .large-text { font-size: 1rem; line-height: 1.5; }
    
    /* Product grid - 2 columns */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .products-grid > * {
        flex: 0 0 calc(50% - 0.5rem);
        margin: 0.5rem 0;
    }
    
    /* Category navigation */
    .category-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    /* Feature cards */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Medium Devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Product grid - 3 columns */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .products-grid > * {
        flex: 0 0 calc(33.333% - 0.83rem);
        margin: 0.5rem 0;
    }
    
    /* Category navigation */
    .category-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    /* Feature cards */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Global Image Responsive Styles */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Ensure all images are responsive */
.image, .product-image, .category-image, .feature-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Touch Target Optimization for All Mobile Devices */
@media (max-width: 768px) {
    /* Ensure all interactive elements meet 48px minimum */
    .btn, .auth-link, .wishlist-link, .cart-link, 
    .category-item, .product-card, .feature-card,
    .mobile-menu-toggle, .search-bar button {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }
    
    /* Improve text readability and typography */
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Responsive typography scale */
    h1 { font-size: 1.75rem; line-height: 1.2; }
    h2 { font-size: 1.5rem; line-height: 1.3; }
    h3 { font-size: 1.25rem; line-height: 1.4; }
    h4 { font-size: 1.1rem; line-height: 1.4; }
    h5 { font-size: 1rem; line-height: 1.5; }
    h6 { font-size: 0.9rem; line-height: 1.5; }
    
    p, .text { font-size: 0.95rem; line-height: 1.6; }
    .small-text { font-size: 0.85rem; line-height: 1.5; }
    .large-text { font-size: 1.1rem; line-height: 1.6; }
    
    /* Optimize form inputs */
    input, select, textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem;
        touch-action: manipulation;
    }
    
    /* Section spacing optimization */
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Mobile Optimization for Cart and Wishlist Pages */
@media (max-width: 768px) {
    .cart-container {
        padding: 0.5rem;
    }

    .cart-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-items-section {
        order: 1;
    }

    .cart-summary {
        order: 2;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        margin: 0 -0.5rem -0.5rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        align-self: center;
    }

    .cart-item-info {
        text-align: center;
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .quantity-input {
        width: 50px;
        text-align: center;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 0.25rem;
    }

    .cart-summary {
        padding: 0.75rem;
        margin: 0 -0.25rem -0.25rem;
    }

    .cart-item {
        padding: 0.5rem;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-info h4 {
        font-size: 0.9rem;
    }

    .cart-item-info p {
        font-size: 0.8rem;
    }

    .summary-card h3 {
        font-size: 1.1rem;
    }

    .summary-row {
        font-size: 0.9rem;
    }

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

@media (max-width: 360px) {
    .cart-container {
        padding: 0.125rem;
    }

    .cart-summary {
        padding: 0.5rem;
        margin: 0 -0.125rem -0.125rem;
    }

    .cart-item {
        padding: 0.4rem;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-item-info h4 {
        font-size: 0.85rem;
    }

    .cart-item-info p {
        font-size: 0.75rem;
    }

    .summary-card h3 {
        font-size: 1rem;
    }

    .summary-row {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Tooltips Component Styles */
.tooltips-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.tooltip {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #e74c3c;
}

.tooltip-info {
    border-left-color: #3498db;
}

.tooltip-success {
    border-left-color: #27ae60;
}

.tooltip-warning {
    border-left-color: #f39c12;
}

.tooltip-content {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 8px;
}

.tooltip-message {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.tooltip-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tooltip-close:hover {
    background: #f5f5f5;
    color: #666;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsive tooltips */
@media (max-width: 768px) {
    .tooltips-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .tooltip {
        max-width: none;
        margin-bottom: 8px;
    }
    
    .tooltip-content {
        padding: 10px 12px;
    }
    
    .tooltip-message {
        font-size: 13px;
    }
}

/* ========================================
   PRODUCT ACTIONS COMPONENT STYLES
   ======================================== */

product-actions {
    display: block;
    width: 100%;
}

.product-actions {
    margin: 2rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

/* ========================================
   RELATED PRODUCTS STYLES
   ======================================== */

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-product-card {
    background: var(--bg-white, #FFFFFF);
    border-radius: var(--border-radius, 12px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.2);
}

.related-product-card .image-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9fa;
}

.related-product-card .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: var(--border-radius, 12px) var(--border-radius, 12px) 0 0;
}

.related-product-card:hover .image {
    transform: scale(1.05);
}

.related-product-card .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--error-color, #e74c3c);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.related-product-card .badge.discount {
    background: var(--success-color, #28a745);
}

.related-product-card .action-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.related-product-card:hover .action-icons {
    opacity: 1;
}

.related-product-card .icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark, #333);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-product-card .icon-btn:hover {
    background: var(--accent-color, #9D86FF);
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 134, 255, 0.4);
}

.related-product-card .icon-btn.wishlist {
    color: var(--text-muted, #999);
}

.related-product-card .icon-btn.wishlist:hover {
    background: linear-gradient(135deg, var(--error-color, #e74c3c) 0%, #c0392b 100%);
    color: var(--text-on-primary, white);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.related-product-card .icon-btn.view:hover {
    background: linear-gradient(135deg, #50E3C2 0%, #2ECC71 100%);
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 227, 194, 0.4);
}

.related-product-card .icon-btn.wishlist.active {
    background: linear-gradient(135deg, var(--error-color, #e74c3c) 0%, #c0392b 100%);
    color: var(--text-on-primary, white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.related-product-card .icon-btn.wishlist.active:hover {
    background: linear-gradient(135deg, var(--error-color, #e74c3c) 0%, #c0392b 100%);
    color: var(--text-on-primary, white);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.related-product-card .info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-product-card .name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #333);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.3s ease;
}

.related-product-card .name:hover {
    color: var(--primary-color, #4A90E2);
}

.related-product-card .price {
    margin-bottom: 0.5rem;
}

.related-product-card .price .current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #4A90E2);
}

.related-product-card .price .original {
    font-size: 0.9rem;
    color: var(--text-muted, #999);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.related-product-card .rating {
    font-size: 0.9rem;
    color: var(--text-light, #666);
    margin-bottom: 1rem;
}

.related-product-card .rating .muted {
    color: var(--text-muted, #999);
}

.related-product-card .actions {
    margin-top: auto;
}

.related-product-card .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-product-card .btn-primary {
    background: var(--primary-color, #4A90E2);
    color: white;
}

.related-product-card .btn-primary:hover:not(:disabled) {
    background: var(--primary-dark, #357ABD);
    transform: translateY(-1px);
}

.related-product-card .btn:disabled {
    background: var(--text-muted, #999);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .related-product-card .image-wrap {
        height: 160px;
    }
    
    .related-product-card .action-icons {
        opacity: 1;
    }
    
    .related-product-card .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .related-product-card .name {
        font-size: 0.9rem;
    }
    
    .related-product-card .price .current {
        font-size: 1rem;
    }
    
    .related-product-card .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .related-product-card .image-wrap {
        height: 140px;
    }
    
    .related-product-card .info {
        padding: 0.75rem;
    }
    
    .related-product-card .name {
        font-size: 0.8rem;
    }
    
    .related-product-card .price .current {
        font-size: 0.9rem;
    }
    
    .related-product-card .btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Phone Input Container Styles */
.phone-input-container {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.phone-input-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.phone-country-code {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border-color);
  font-weight: 500;
  font-size: 0.9rem;
  user-select: none;
  min-width: 60px;
  text-align: center;
}

.phone-number-input {
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  flex: 1;
  font-size: 0.9rem;
  background-color: transparent;
}

.phone-number-input::placeholder {
  color: var(--text-muted);
}

.phone-number-input:focus {
  box-shadow: none;
}

/* Phone input validation states */
.phone-input-container.error {
  border-color: var(--error-color);
}

.phone-input-container.success {
  border-color: var(--success-color);
}

/* Mobile responsive for phone input */
@media (max-width: 768px) {
  .phone-country-code {
    min-width: 50px;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .phone-number-input {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}