﻿/* ==================== Global Reset ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c41230;
    --primary-dark: #a00e27;
    --primary-light: #e8143a;
    --secondary: #1a1a2e;
    --accent: #d4a853;
    --accent-light: #f0d78c;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a2e;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196,18,48,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ==================== Header Navigation ==================== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-list a {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 25px;
    padding: 8px 15px;
    gap: 8px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 150px;
    color: var(--text);
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ==================== Top Bar ==================== */
.top-bar {
    background: var(--secondary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.8);
}

.top-bar-right a:hover {
    color: var(--accent);
}

/* ==================== Hero Banner ==================== */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196,18,48,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,168,83,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    color: #fff;
}

.hero-content .tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(196,18,48,0.2);
    border: 1px solid rgba(196,18,48,0.5);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ==================== Features ==================== */
.features {
    padding: 60px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== Categories ==================== */
.categories-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    padding: 25px 15px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-card .cat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
}

.category-card .cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== Hot Products ==================== */
.hot-products {
    padding: 80px 0;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card .product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    background: var(--primary);
}

.product-card .product-info {
    padding: 18px;
}

.product-card .product-name {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.product-card .current-price {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

.product-card .original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.product-card .product-meta .rating {
    color: var(--accent);
}

/* ==================== About Preview ==================== */
.about-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    color: #fff;
}

.about-preview .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-preview-image {
    flex: 1;
    max-width: 480px;
}

.about-preview-image img {
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.about-preview-content {
    flex: 1;
}

.about-preview-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-preview-content p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.stat-item .label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
}

/* ==================== Partners ==================== */
.partners-section {
    padding: 60px 0;
    background: #fff;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logo {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: var(--transition);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

.partner-logo:hover {
    opacity: 1;
}

/* ==================== CTA Banner ==================== */
.cta-banner {
    padding: 80px 0;
    background: var(--primary);
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ==================== Products Page ==================== */
.page-header {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a {
    color: var(--accent);
}

.products-page {
    padding: 60px 0;
}

.products-page .container {
    display: flex;
    gap: 30px;
}

.filter-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.filter-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.filter-group .filter-list li {
    padding: 8px 0;
}

.filter-group .filter-list a {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.filter-group .filter-list a:hover,
.filter-group .filter-list a.active {
    background: var(--bg-light);
    color: var(--primary);
}

.filter-group .filter-list .count {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.products-main {
    flex: 1;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.products-toolbar .result-count {
    font-size: 14px;
    color: var(--text-light);
}

.products-toolbar .sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-toolbar .sort-options label {
    font-size: 14px;
    color: var(--text-light);
}

.products-toolbar .sort-options select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== Contact Page ==================== */
.contact-section {
    padding: 60px 0;
}

.contact-section .container {
    display: flex;
    gap: 40px;
}

.contact-info {
    width: 380px;
    flex-shrink: 0;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    color: #fff;
    padding: 40px;
    border-radius: var(--radius);
}

.contact-info-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info-card > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item .icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.contact-social {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-social h4 {
    font-size: 15px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.contact-form {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: right;
}

/* ==================== About Page ==================== */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    max-width: 480px;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.values-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.value-card h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.team-section {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card .team-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-card .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .team-info {
    padding: 20px;
    text-align: center;
}

.team-card .team-info h4 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-card .team-info .position {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
}

.team-card .team-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-about p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-column ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-newsletter p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom .payment-icons {
    display: flex;
    gap: 10px;
}

.footer-bottom .payment-icon {
    width: 50px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(196,18,48,0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== Loading Animation ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Toast Notification ==================== */
.toast {
    position: fixed;
    top: 90px;
    right: 30px;
    padding: 15px 25px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid #4caf50;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: var(--primary);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 35px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        max-width: 400px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-preview .container {
        flex-direction: column;
    }
    .about-content {
        flex-direction: column;
    }
    .contact-section .container {
        flex-direction: column;
    }
    .contact-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 0;
    }
    .nav-list.open {
        display: flex;
    }
    .nav-list a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .search-box {
        display: none;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero {
        min-height: 400px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-page .container {
        flex-direction: column;
    }
    .filter-sidebar {
        width: 100%;
    }
    .section-title h2 {
        font-size: 26px;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .detail-main {
        flex-direction: column;
    }
    .detail-gallery {
        max-width: 100%;
    }
    .checkout-layout {
        flex-direction: column;
    }
    .checkout-sidebar {
        width: 100%;
    }
}

/* ==================== Clickable Product Card ==================== */
.product-card {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ==================== Product Detail Page ==================== */
.detail-section {
    padding: 60px 0;
}

.detail-main {
    display: flex;
    gap: 50px;
}

.detail-gallery {
    width: 480px;
    flex-shrink: 0;
}

.detail-gallery .main-img {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 15px;
}

.detail-gallery .main-img img {
    width: 100%;
    display: block;
}

.detail-info {
    flex: 1;
}

.detail-info .breadcrumb-line {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.detail-info .breadcrumb-line a {
    color: var(--primary);
}

.detail-info h1 {
    font-size: 24px;
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-price-box {
    background: var(--bg-light);
    padding: 20px 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.detail-price-box .current {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
}

.detail-price-box .original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}

.detail-price-box .save {
    display: inline-block;
    background: rgba(196,18,48,0.1);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 12px;
}

.detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-meta .stars {
    color: var(--accent);
}

.detail-desc {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}

.detail-desc h3 {
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.detail-desc p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.detail-qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-qty label {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-control button {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--border);
}

.qty-control input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    outline: none;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-actions .btn {
    padding: 14px 40px;
    font-size: 16px;
}

.detail-guarantee {
    display: flex;
    gap: 25px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.detail-guarantee span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Detail Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.spec-table tr {
    border-bottom: 1px solid var(--border);
}

.spec-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.spec-table td:first-child {
    width: 140px;
    color: var(--text-muted);
    background: var(--bg-light);
}

.spec-table td:last-child {
    color: var(--text);
}

/* Related Products */
.related-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* ==================== Checkout Page ==================== */
.checkout-section {
    padding: 60px 0;
}

.checkout-layout {
    display: flex;
    gap: 40px;
}

.checkout-main {
    flex: 1;
}

.checkout-sidebar {
    width: 380px;
    flex-shrink: 0;
}

.checkout-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
}

.checkout-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.order-summary {
    position: sticky;
    top: 90px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.order-item-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 5px;
    font-weight: 500;
}

.order-item-info .qty {
    font-size: 13px;
    color: var(--text-muted);
}

.order-item-info .price {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 5px;
}

.order-total {
    padding: 18px 0;
    border-top: 2px solid var(--secondary);
    margin-top: 10px;
}

.order-total .line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.order-total .total-line {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    color: var(--secondary);
    font-weight: 700;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* PayPal Button */
.paypal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #ffc439;
    color: #003087;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.paypal-btn:hover {
    background: #f0b92e;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,196,57,0.4);
}

.paypal-btn .paypal-logo {
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
}

.paypal-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.paypal-divider::before,
.paypal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.paypal-divider::before { left: 0; }
.paypal-divider::after { right: 0; }

.checkout-notice {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Payment Modal */
.paypal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.paypal-modal.show {
    display: flex;
}

.paypal-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.paypal-modal-content .pp-header {
    margin-bottom: 25px;
}

.paypal-modal-content .pp-header .pp-logo {
    font-size: 36px;
    font-weight: 800;
    font-style: italic;
    color: #003087;
    margin-bottom: 10px;
}

.paypal-modal-content .pp-header p {
    font-size: 14px;
    color: var(--text-light);
}

.paypal-modal-content .pp-form {
    text-align: left;
}

.paypal-modal-content .pp-form .form-group {
    margin-bottom: 15px;
}

.paypal-modal-content .pp-form .form-group label {
    display: block;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 500;
}

.paypal-modal-content .pp-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.paypal-modal-content .pp-form input:focus {
    border-color: #003087;
}

.paypal-modal-content .pp-pay-btn {
    width: 100%;
    padding: 14px;
    background: #0070ba;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.paypal-modal-content .pp-pay-btn:hover {
    background: #005ea6;
}

.paypal-modal-content .pp-close {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
}

.paypal-modal-content .pp-close:hover {
    color: var(--text);
}
