/* ============================================================
   VQTool — Industrial Tools E-Commerce Stylesheet
   Design: Professional Industrial / B2B (deep navy + safety amber)
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
    --primary: #0f2237;
    --primary-2: #162d47;
    --primary-3: #1e3a5c;
    --primary-ink: #0a1826;

    --accent: #f5a623;
    --accent-hover: #e0921a;
    --accent-dark: #c77f0e;
    --accent-soft: rgba(245, 166, 35, 0.12);

    --danger: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;

    --text: #10263a;
    --text-muted: #4b5a6a;
    --text-light: #8a99aa;

    --bg: #ffffff;
    --bg-soft: #f4f6f9;
    --bg-dark: #0f2237;

    --border: #e3e8ee;
    --border-soft: #eef2f6;

    --shadow-sm: 0 1px 2px rgba(15, 34, 55, 0.06);
    --shadow: 0 4px 12px -2px rgba(15, 34, 55, 0.10);
    --shadow-lg: 0 14px 30px -6px rgba(15, 34, 55, 0.16);
    --shadow-xl: 0 24px 48px -12px rgba(15, 34, 55, 0.22);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;

    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font-head: 'Space Grotesk', 'DM Sans', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--primary); line-height: 1.25; }

html, body { overflow-x: hidden; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ---------- 3. Layout helpers ---------- */
.section { padding: 88px 0; }
.section-gray { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .section-title,
.section-dark .section-desc { color: #fff; }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-desc { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--accent);
    color: var(--primary-ink);
    box-shadow: 0 2px 0 var(--accent-dark);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--primary-ink);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(245, 166, 35, 0.55);
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--primary-3);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-soft);
}

/* outline button on dark background (hero) */
.hero .btn-outline {
    color: var(--primary);
    border-color: var(--border);
    background: #fff;
}
.hero .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-soft);
}

/* ---------- 5. Header / Navigation ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 72px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; color: var(--primary-ink); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    padding: 9px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #c9d4df;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-link.active { color: var(--accent); }

.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after { content: none; }
@media (min-width: 769px) {
    .nav-dropdown > .nav-link::after {
        content: '';
        display: inline-block;
        margin-left: 6px;
        vertical-align: middle;
        border: 4px solid transparent;
        border-top-color: currentColor;
    }
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 1000;
    border-top: 3px solid var(--accent);
}
@media (min-width: 769px) {
    .nav-dropdown:hover > .nav-dropdown-menu { display: block; }
}
.nav-dropdown.active > .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.92rem;
}
.nav-dropdown-item:hover { background: var(--bg-soft); color: var(--accent-dark); padding-left: 24px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: #c9d4df;
    transition: var(--transition);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}
.header-icon:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.header-icon svg { width: 22px; height: 22px; }

.cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--accent);
    color: var(--primary-ink);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-family: var(--font-body);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* ---------- 6. Breadcrumb ---------- */
.breadcrumb {
    padding: 18px 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span { color: var(--text); font-weight: 600; }
.breadcrumb svg { width: 15px; height: 15px; color: var(--text-light); flex-shrink: 0; }

/* ---------- 7. Hero (Home) ---------- */
.hero {
    position: relative;
    background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
    color: var(--text);
    padding: 96px 0 88px;
    overflow: hidden;
}

.hero-grid { display: none; }

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
}

.hero-content { z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 166, 35, 0.28);
}
.hero-badge svg { width: 15px; height: 15px; }

.hero h1 {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero h1 span { color: var(--accent-dark); }

.hero-desc {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-stat-value {
    font-family: var(--font-head);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.hero-stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; }

.hero-visual { position: relative; }
.hero-visual img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -16px rgba(15, 34, 55, 0.18);
    border: 1px solid var(--border);
}

/* ---------- 7b. Trust bar ---------- */
.trustbar { border-bottom: 1px solid var(--border); background: #fff; }
.trustbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 28px 0;
}
.trustbar-item { display: flex; align-items: center; gap: 14px; }
.trustbar-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trustbar-icon svg { width: 22px; height: 22px; color: var(--primary); }
.trustbar-text { display: flex; flex-direction: column; }
.trustbar-text strong { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.trustbar-text span { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .trustbar-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ---------- 8. Categories grid (Home) ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 24px;
    transition: var(--transition);
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card:hover .category-icon { background: var(--accent-soft); }
.category-card:hover .category-icon svg { color: var(--accent-dark); }

.category-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--transition);
}
.category-icon svg { width: 28px; height: 28px; color: var(--primary); }

.category-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.category-count { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- 9. Product grid & cards ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* image block — home uses .product-image */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-soft);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: #fff;
    padding: 4px 11px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 1;
}

/* hover quick actions */
.product-image .product-actions,
.product-card-image .product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(16px);
    transition: var(--transition);
    z-index: 1;
}
.product-card:hover .product-image .product-actions,
.product-card:hover .product-card-image .product-actions { opacity: 1; transform: translateX(0); }

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(15, 34, 55, 0.14);
}
.product-action-btn:hover {
    background: #fff;
    border-color: #fca5a5;
    color: #ef4444;
    transform: scale(1.08);
}
.product-action-btn svg { width: 19px; height: 19px; transition: var(--transition); }

/* card info block — home uses .product-info */
.product-card .product-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }

.product-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.product-title { font-size: 0.98rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--accent-dark); }

.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.product-rating .stars { display: flex; gap: 2px; }
.product-rating svg { width: 15px; height: 15px; color: var(--accent); fill: currentColor; }
.rating-count { font-size: 0.82rem; color: var(--text-light); }

/* card price block — home */
.product-card .product-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.product-card .price-current {
    font-family: var(--font-head);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--primary);
}
.product-card .price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ---------- 10. Category / Search card variant ---------- */
.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-soft);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.badge {
    padding: 5px 11px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    color: #fff;
}
.badge-new { background: var(--success); }
.badge-sale { background: var(--danger); }

.product-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title a { color: var(--text); }
.product-card-title a:hover { color: var(--accent-dark); }

.product-card-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.product-card-price .price-current {
    font-family: var(--font-head);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--primary);
}
.product-card-price .price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-purchase { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.product-card-purchase .product-add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; padding: 10px 18px; font-size: 0.84rem; }
.product-card-purchase .product-add-btn .cart-icon { display: none; width: 18px; height: 18px; }

/* 移动端：价格与按钮同一行，按钮为圆形图标按钮 */
@media (max-width: 575px) {
    .product-card-purchase { flex-direction: row; align-items: center; gap: 8px; }
    .product-card-purchase .product-card-price { min-width: 0; flex: 1 1 auto; flex-wrap: wrap; }
    .product-card-purchase .product-card-price .price-current { font-size: 1.05rem; }
    .product-card-purchase .product-card-price .price-original { font-size: 0.8rem; }
    .product-card-purchase .product-add-btn {
        width: 36px; height: 36px; padding: 0; border-radius: 50%;
        flex: 0 0 auto;
    }
    .product-card-purchase .product-add-btn .add-btn-text { display: none; }
    .product-card-purchase .product-add-btn .cart-icon { display: inline-flex; }
}

/* ---------- 11. Applications / Advantages / Reviews / Blog (Home) ---------- */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.application-card {
    background: var(--primary-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 38px 28px;
    text-align: center;
    color: #fff;
    transition: var(--transition);
}
.application-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.application-card:hover .application-icon { background: var(--accent); }
.application-card:hover .application-icon svg { color: #fff; }
.application-icon {
    width: 76px;
    height: 76px;
    background: rgba(245, 166, 35, 0.14);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.application-icon svg { width: 38px; height: 38px; color: var(--accent); }
.application-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.application-desc { color: #b8c6d4; font-size: 0.92rem; line-height: 1.6; }

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.advantage-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 26px;
    text-align: center;
    transition: var(--transition);
}
.advantage-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.advantage-card:hover .advantage-icon { background: var(--accent); }
.advantage-card:hover .advantage-icon svg { color: #fff; }
.advantage-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.advantage-icon svg { width: 34px; height: 34px; color: var(--accent-dark); }
.advantage-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.advantage-desc { color: var(--text-muted); font-size: 0.92rem; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}
.review-card::before {
    content: '\201C';
    position: absolute;
    top: 2px;
    right: 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-soft);
    opacity: 0.55;
    pointer-events: none;
}
.review-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-head);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.review-author { font-weight: 600; }
.review-country { font-size: 0.85rem; color: var(--text-muted); }
.review-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.review-stars svg { width: 17px; height: 17px; color: var(--accent); fill: currentColor; }
.review-text { color: var(--text-muted); line-height: 1.7; font-style: italic; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.blog-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.blog-card:hover .blog-image img { transform: scale(1.06); }
.blog-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: var(--primary-ink);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
}
.blog-category--text {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}
.blog-info { padding: 22px; }
.blog-date { font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px; }
.blog-title { font-size: 1.08rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--accent-dark); }
.blog-excerpt { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- 12. Newsletter ---------- */
.newsletter {
    background: linear-gradient(140deg, var(--primary-ink) 0%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    padding: 58px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -6%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.newsletter-content h2 { color: #fff; font-size: 1.9rem; margin-bottom: 12px; }
.newsletter-content p { color: #b8c6d4; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.98rem;
}
.newsletter-input::placeholder { color: #8fa0b2; }
.newsletter-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.22); }

/* ---------- 13. Category page ---------- */
.category-hero {
    padding: 48px 0;
    background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.category-hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.category-hero h1 { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0; letter-spacing: -0.02em; }
.category-hero p { font-size: 1.1rem; color: var(--text-muted); }

/* 移动端：分类标题进一步缩小 */
@media (max-width: 575px) {
    .category-hero h1 { font-size: 1.7rem; }
}

.category-grid-section { padding: 64px 0 32px; }
/* 分类区紧邻产品区时，缩小两者间距（避免约 150px 的过大留白） */
.category-grid-section + .section { padding-top: 32px; }
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 52px;
}
.subcategory-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.subcategory-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.subcategory-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; transition: var(--transition); }
.subcategory-card:hover h3 { color: var(--accent-dark); }
.subcategory-card p { font-size: 0.9rem; color: var(--text-muted); }
.subcategory-card .count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0;
    background: none;
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 0;
}
.subcategory-card .count::after {
    content: '→';
    transition: var(--transition);
}
.subcategory-card:hover .count::after { transform: translateX(4px); }

/* 移动端：子分类卡片改为两列并收紧，避免卡片被拉得过大 */
@media (max-width: 575px) {
    .category-grid-section { padding: 40px 0 24px; }
    .subcategory-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
    .subcategory-card { padding: 16px; }
    .subcategory-card h3 { font-size: 1rem; margin-bottom: 6px; }
    .subcategory-card p { font-size: 0.82rem; }
    .subcategory-card .count { margin-top: 10px; font-size: 0.8rem; }
}

.seo-content { padding: 64px 0; background: var(--bg-soft); }
.seo-content-inner { max-width: 100%; }
.seo-content h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 20px; }
.seo-content p { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.seo-content h3 { font-size: 1.3rem; margin: 28px 0 12px; }
.seo-content ul, .seo-content ol { margin: 14px 0; padding-left: 22px; list-style: disc; color: var(--text-muted); }
.seo-content ol { list-style: decimal; }
.seo-content li { margin-bottom: 8px; line-height: 1.7; }

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.no-products svg { width: 80px; height: 80px; margin-bottom: 22px; color: var(--border); }
.no-products h3 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.no-products p { margin-bottom: 24px; }
.no-products .btn { display: inline-flex; }

/* ---------- 14. Product detail page ---------- */
.product-section { padding: 56px 0 72px; }
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.product-gallery { position: sticky; top: 96px; }
.product-main-image {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
    margin-bottom: 14px;
    border: 1px solid var(--border);
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.product-thumbnails::-webkit-scrollbar { display: none; }
.product-thumbnail {
    flex: 0 0 calc((100% - 36px) / 4);
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    background: var(--bg-soft);
    transition: var(--transition);
}
.product-thumbnail.active, .product-thumbnail:hover { border-color: var(--accent); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* detail info column (note: .product-info reused from card, scoped by .product-grid) */
.product-grid > .product-info {
    display: flex;
    flex-direction: column;
    padding: 0;
}
.product-info h1 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; line-height: 1.25; }

.product-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.product-sku { font-size: 0.88rem; color: var(--text-muted); }
.product-sku strong { color: var(--text); font-family: var(--font-head); }
.product-stock { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--success); }
.stock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.stock-dot.stock-out { background: var(--danger); }

.product-grid .product-price { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.product-grid .price-current { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--primary); }
.product-grid .price-original { font-size: 1.2rem; color: var(--text-light); text-decoration: line-through; }
.price-discount {
    padding: 5px 12px;
    background: var(--danger);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.product-short-desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }

.product-options { margin-bottom: 24px; }
.option-label { font-weight: 600; font-size: 0.9rem; color: var(--text); display: block; margin-bottom: 10px; }
.option-values { display: flex; gap: 10px; flex-wrap: wrap; }
.option-value {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.option-value:hover, .option-value.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.quantity-selector { display: flex; align-items: center; gap: 16px; }
.quantity-controls { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.quantity-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    transition: var(--transition);
}
.quantity-btn:hover { background: var(--accent); color: var(--primary-ink); }
.quantity-input {
    width: 56px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-head);
    -moz-appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* detail CTA row (scoped: .product-grid .product-info .product-actions) */
.product-grid .product-actions {
    display: flex;
    gap: 12px;
    margin: 28px 0 24px;
    max-width: 460px;
}
.product-grid .product-actions .btn { flex: 1; padding: 15px 22px; font-size: 0.95rem; }
.product-grid .product-actions .product-add-to-cart { flex: 2; }
.product-grid .product-actions .product-wishlist { flex: 1; }

/* Wishlist active state (heart filled) */
.product-action-btn.active { opacity: 1; background: #fef2f2; border-color: #fca5a5; color: #ef4444; }
.product-action-btn.active svg { fill: #ef4444; stroke: #ef4444; }

/* Wishlist button on product page */
.product-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}
.product-wishlist svg { transition: transform .2s ease, fill .2s ease, stroke .2s ease; }
.product-wishlist:hover { background: #fff; border-color: var(--accent); color: var(--accent-dark); }
.product-wishlist:hover svg { stroke: var(--accent); }
.product-wishlist.active {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.45);
    color: #e23b3b;
}
.product-wishlist.active svg { fill: #e23b3b; stroke: #e23b3b; transform: scale(1.06); }

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.feature-icon svg { width: 20px; height: 20px; color: var(--accent-dark); }
.feature-text { font-size: 0.84rem; color: var(--text-muted); font-weight: 500; }

.product-tabs { margin-top: 56px; }
.tabs-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 14px 22px;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 18px; }
.tab-content p { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.tab-content h3 { font-size: 1.25rem; margin: 24px 0 12px; }
.tab-content ul, .tab-content ol { margin: 14px 0; padding-left: 22px; list-style: disc; color: var(--text-muted); }
.tab-content li { margin-bottom: 8px; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table th, .specs-table td { padding: 15px 16px; text-align: left; }
.specs-table th { font-weight: 600; color: var(--primary); width: 40%; background: var(--bg-soft); }
.specs-table td { color: var(--text-muted); }

.related-section { padding: 72px 0; background: var(--bg-soft); }

/* ---------- 15. Article page ---------- */
.article-section { padding: 56px 0 72px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-main { min-width: 0; }
.article-header { margin-bottom: 36px; }

.article-category {
    display: inline-block;
    padding: 5px 13px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 20px;
    margin-bottom: 16px;
}
.article-title { font-size: 2.4rem; font-weight: 700; color: var(--primary); line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.02em; }
.article-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.88rem; }
.article-meta-item { display: flex; align-items: center; gap: 8px; }
.article-meta-item svg { width: 17px; height: 17px; color: var(--text-light); }

.article-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; background: var(--bg-soft); border: 1px solid var(--border); }
.article-featured-image img { width: 100%; }

.article-content { font-size: 1.05rem; color: var(--text); line-height: 1.85; }
.article-content h2 { font-size: 1.7rem; margin: 36px 0 18px; }
.article-content h3 { font-size: 1.35rem; margin: 28px 0 14px; }
.article-content p { margin-bottom: 20px; color: #3a4a5c; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 24px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 10px; color: #3a4a5c; }
.article-content ul li::marker, .article-content ol li::marker { color: var(--accent-dark); }
.article-content a { color: var(--accent-dark); text-decoration: underline; }
.article-content a:hover { color: var(--primary); }
.article-content blockquote {
    margin: 28px 0;
    padding: 22px 28px;
    background: var(--bg-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}
.article-content img { border-radius: var(--radius); margin: 28px 0; }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    align-items: center;
}
.article-tags strong { color: var(--text); font-size: 0.9rem; }
.article-tag {
    padding: 7px 14px;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.84rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.article-tag:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }

.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 22px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}
.share-label { font-weight: 600; color: var(--primary); }
.share-buttons { display: flex; gap: 10px; }
.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    transition: var(--transition);
}
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); }
.share-btn svg { width: 18px; height: 18px; }

.sidebar { position: sticky; top: 96px; height: fit-content; }
.sidebar-widget {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.recent-posts { display: flex; flex-direction: column; gap: 16px; }
.recent-post { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; }
.recent-post-index {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 2px;
}
.recent-post-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-post-title:hover { color: var(--accent-dark); }
.recent-post-date { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

.categories-list { display: flex; flex-direction: column; gap: 4px; }
.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.category-link:last-child { border-bottom: none; }
.category-link:hover { color: var(--accent-dark); }
.category-link.active { color: var(--accent-dark); font-weight: 700; }
.category-link .category-count { font-size: 0.8rem; color: var(--text-light); }

.newsletter-box {
    background: linear-gradient(140deg, var(--primary-ink) 0%, var(--primary) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}
.newsletter-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.newsletter-box p { font-size: 0.86rem; color: #b8c6d4; margin-bottom: 18px; }
.newsletter-box .newsletter-form { flex-direction: column; gap: 10px; }
.newsletter-btn {
    padding: 13px 24px;
    background: var(--accent);
    color: var(--primary-ink);
    border: none;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-head);
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* articles list page */
.articles-list { display: flex; flex-direction: column; gap: 20px; }
.article-list-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.article-list-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-list-content { max-width: 100%; }
.article-list-category {
    display: inline-block;
    padding: 4px 11px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    margin-bottom: 12px;
}
.article-list-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-list-title a { color: var(--primary); }
.article-list-title a:hover { color: var(--accent-dark); }
.article-list-excerpt { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.article-list-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-read-more { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; }
.article-read-more:hover { text-decoration: underline; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.article-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-image { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-card-content { padding: 22px; }
.article-card-category {
    display: inline-block;
    padding: 4px 11px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    margin-bottom: 12px;
}
.article-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-title:hover { color: var(--accent-dark); }
.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta { display: flex; align-items: center; gap: 16px; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Blog list page (articles.php) ---------- */
.blog-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--primary-ink) 0%, var(--primary) 55%, var(--primary-3) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    margin-bottom: 40px;
    color: #fff;
}
.blog-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.28), transparent 70%);
}
.blog-hero-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.blog-hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; color: #fff; }
.blog-hero p { font-size: 1.08rem; line-height: 1.65; color: rgba(255, 255, 255, 0.82); max-width: 600px; }
.blog-hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 28px; }
.blog-hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.blog-hero-stat span { font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); }

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.blog-featured {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    transition: var(--transition);
}
.blog-featured:hover { box-shadow: var(--shadow-lg); }
.blog-featured-media { position: relative; min-height: 300px; background: var(--bg-soft); overflow: hidden; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-media .article-card-category { position: absolute; top: 16px; left: 16px; z-index: 2; }
.blog-featured-body { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body .article-card-category { align-self: flex-start; margin-bottom: 14px; }
.blog-featured-title { font-size: 1.7rem; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.blog-featured-title a { color: var(--primary); }
.blog-featured-title a:hover { color: var(--accent-dark); }
.blog-featured-excerpt { color: var(--text-muted); line-height: 1.75; font-size: 0.98rem; margin-bottom: 22px; }
.blog-featured-meta { display: flex; align-items: center; gap: 18px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.blog-featured-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--accent);
    color: var(--primary-ink);
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
}
.blog-featured-link:hover { background: var(--accent-dark); color: #fff; }

.blog-featured--text { grid-template-columns: 1fr; }

.blog-empty { text-align: center; padding: 80px 0; color: var(--text-muted); }
.blog-empty h2 { font-size: 1.4rem; color: var(--primary); margin: 18px 0 8px; }

.blog-sidebar { position: sticky; top: 24px; }

@media (max-width: 960px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}
@media (max-width: 720px) {
    .blog-hero { padding: 40px 26px; }
    .blog-hero h1 { font-size: 2rem; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-media { min-height: 200px; }
    .blog-featured-body { padding: 26px; }
}

/* ---------- 16. Cart / Checkout / Success ---------- */
.cart-page, .checkout-page { padding: 56px 0 80px; min-height: 70vh; }
.page-header { text-align: center; margin-bottom: 44px; }
.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.page-header p { color: var(--text-muted); font-size: 1rem; }

.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.cart-items-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    padding: 15px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.cart-table th:last-child { text-align: right; width: 56px; }
.cart-table td { padding: 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }

.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-product-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-info h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.cart-product-info h3 a { color: var(--text); }
.cart-product-info h3 a:hover { color: var(--accent-dark); }
.cart-product-info .sku { font-size: 0.8rem; color: var(--text-light); }

.cart-price { font-size: 0.98rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cart-subtotal { font-size: 0.98rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }

.cart-table tbody tr { transition: background 0.15s ease; }
.cart-table tbody tr:hover { background: var(--bg-soft); }

.cart-summary .btn { display: flex; width: 100%; justify-content: center; margin-top: 12px; }

.cart-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-quantity button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.cart-quantity button:hover { background: var(--bg-soft); color: var(--accent-dark); }
.cart-quantity span { min-width: 40px; text-align: center; font-weight: 600; font-family: var(--font-head); }

.cart-remove { text-align: right; }
.cart-remove button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-remove button:hover { background: #fef2f2; color: var(--danger); }

.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart svg { width: 76px; height: 76px; color: var(--text-light); margin-bottom: 22px; }
.empty-cart h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

.cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: sticky;
    top: 96px;
}
.cart-summary h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 0.95rem;
    color: var(--text);
    flex-wrap: wrap;
    gap: 8px;
}
.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 10px;
    padding-top: 18px;
    font-size: 1.05rem;
    font-weight: 600;
}
.summary-row.total .amount { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.summary-row .free { color: var(--success); font-weight: 600; }
.discount-row { color: var(--success); }
.discount-row .amount { font-weight: 600; }

.coupon-section { margin: 20px 0; padding: 18px; background: var(--bg-soft); border-radius: var(--radius); }
.coupon-section label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.06em;
}
.coupon-form { display: flex; gap: 10px; }
.coupon-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
}
.coupon-form input:focus { outline: none; border-color: var(--accent); }
.coupon-form button {
    padding: 11px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-head);
    transition: var(--transition);
    white-space: nowrap;
}
.coupon-form button:hover { background: var(--primary-3); }

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: #ecfdf5;
    border: 1px solid var(--success);
    border-radius: var(--radius);
}
.coupon-applied .code { font-weight: 600; color: var(--success); }
.coupon-applied button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.84rem; }
.coupon-message { margin-top: 10px; font-size: 0.84rem; }
.coupon-message.success { color: var(--success); }
.coupon-message.error { color: var(--danger); }

/* checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}
.checkout-form { min-width: 0; }
.checkout-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
}
.checkout-form-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}
.form-group label .required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: #fff;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}
.payment-option:hover { border-color: var(--accent); }
.payment-option input { margin-right: 12px; accent-color: var(--accent); }
.payment-label { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.payment-label svg { width: 26px; height: 26px; color: var(--primary-3); }
.payment-terms { margin-top: 14px; font-size: 0.84rem; color: var(--text-muted); }

.checkout-items { margin-bottom: 20px; }
.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-image {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    overflow: visible;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.checkout-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.checkout-item-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 21px;
    height: 21px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-info h4 {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
}
.checkout-item-price { font-weight: 700; color: var(--primary); font-size: 0.92rem; }

.chk-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}
.chk-secure svg { flex-shrink: 0; color: var(--success); }

/* success */
.success-page { padding: 80px 0; min-height: 60vh; display: flex; align-items: center; }
.success-content { max-width: 560px; margin: 0 auto; text-align: center; }
.success-icon {
    width: 96px;
    height: 96px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}
.success-icon svg { width: 46px; height: 46px; color: var(--success); }
.success-content h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 14px; }
.success-message { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 36px; }
.success-order {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 36px;
}
.success-order h5 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.order-number { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 6px; }
.order-email { font-size: 0.88rem; color: var(--text-light); }
.success-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 17. Search page ---------- */
.search-page { padding: 56px 0 80px; min-height: 60vh; }
.search-header { text-align: center; margin-bottom: 44px; }
.search-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.search-query { font-size: 1.02rem; color: var(--text-muted); }
.search-query strong { color: var(--accent-dark); }

/* ---------- 18. Pagination ---------- */
.pagination { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.pagination-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}
.pagination-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.pagination-btn svg { width: 16px; height: 16px; }
.pagination-numbers { display: flex; align-items: center; gap: 8px; }
.pagination-number {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}
.pagination-number:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination-number.active { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); font-weight: 700; }
.pagination-ellipsis { color: var(--text-light); padding: 0 4px; }
.pagination-info { text-align: center; margin-top: 16px; color: var(--text-light); font-size: 0.86rem; }

.pagination-nav .pagination { margin-top: 0; border-top: none; padding-top: 0; }
.pagination-nav .pagination-link {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88rem;
    transition: var(--transition);
}
.pagination-nav .pagination-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination-nav .pagination-link.active { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); }

/* ---------- 19. Static pages (FAQ / Shipping / Contact / Policy) ---------- */
.page-content { padding: 56px 0 80px; min-height: 60vh; background: var(--bg-soft); }
.page-body {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    padding: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.page-content .page-header { text-align: center; margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.page-content .page-header h1 { font-size: 2.3rem; }
.page-content .page-header p { max-width: 620px; margin: 0 auto; }

.policy-section, .shipping-section, .returns-section, .faq-section, .contact-section { margin-bottom: 34px; }
.policy-section:last-child, .shipping-section:last-child, .returns-section:last-child, .faq-section:last-child, .contact-section:last-child { margin-bottom: 0; }

.policy-section h2, .shipping-section h2, .returns-section h2, .faq-section h2, .contact-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.policy-section h3, .shipping-section h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.policy-section p, .shipping-section p, .returns-section p, .contact-section p {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.policy-section ul, .policy-section ol, .shipping-section ul, .returns-section ul, .returns-section ol {
    margin: 14px 0;
    padding-left: 24px;
}
.policy-section ul, .shipping-section ul, .returns-section ul { list-style: disc; }
.policy-section ol, .returns-section ol { list-style: decimal; }
.policy-section li, .shipping-section li, .returns-section li { line-height: 1.7; color: var(--text-muted); margin-bottom: 8px; }
.policy-section strong { color: var(--primary); }

.shipping-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 22px; }
.shipping-option {
    background: var(--bg-soft);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.shipping-option:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.shipping-option h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.shipping-option h3 i { color: var(--accent-dark); }
.shipping-time { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.shipping-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.shipping-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.returns-process { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.returns-step { flex: 1; min-width: 190px; text-align: center; padding: 20px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.returns-step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--primary-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-head);
    margin: 0 auto 12px;
}
.returns-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.returns-step p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.refund-timeline { background: var(--bg-soft); padding: 22px; border-radius: var(--radius); margin-top: 20px; border: 1px solid var(--border); }
.refund-timeline h3 { font-size: 1.15rem; margin-bottom: 14px; }

.faq-item { margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-question {
    padding: 17px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-soft);
    transition: var(--transition);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    border: none;
    width: 100%;
    text-align: left;
}
.faq-question:hover { background: var(--border-soft); }
.faq-question i { transition: transform 0.3s ease; color: var(--text-muted); font-style: normal; }
.faq-question.active { background: var(--accent); color: var(--primary-ink); }
.faq-question.active i { color: var(--primary-ink); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.show { max-height: 500px; }
.faq-answer p { padding: 18px 20px; margin: 0; line-height: 1.7; color: var(--text-muted); border-top: 1px solid var(--border); }

.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 22px; }
.contact-method {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.contact-method:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.contact-method-icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--primary-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
}
.contact-method h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-method p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

.contact-form { background: var(--bg-soft); padding: 28px; border-radius: var(--radius); margin-top: 28px; border: 1px solid var(--border); }
.contact-form h3 { font-size: 1.25rem; margin-bottom: 18px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.92rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.map-container { margin-top: 28px; border-radius: var(--radius); overflow: hidden; height: 300px; background: var(--border-soft); }
.map-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1rem; }

.business-hours { background: var(--bg-soft); padding: 22px; border-radius: var(--radius); margin-top: 20px; border: 1px solid var(--border); }
.business-hours h3 { font-size: 1.15rem; margin-bottom: 14px; }
.business-hours li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.business-hours li:last-child { border-bottom: none; }
.business-hours .day { font-weight: 600; color: var(--primary); }
.business-hours .hours { color: var(--text-muted); }

/* ---------- 20. Footer ---------- */
.footer {
    background: var(--primary-ink);
    color: #c9d4df;
    padding: 72px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { max-width: 320px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 18px;
}
.footer-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-icon svg { width: 22px; height: 22px; color: var(--primary-ink); }
.footer-desc { font-size: 0.9rem; color: #8fa0b2; line-height: 1.7; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9d4df;
    transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: var(--primary-ink); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }

.footer-column h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link { font-size: 0.9rem; color: #8fa0b2; transition: var(--transition); }
.footer-link:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.86rem; color: #7a8da0; }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-link { font-size: 0.86rem; color: #8fa0b2; }
.footer-bottom-link:hover { color: var(--accent); }

/* ---------- 21. Modals ---------- */
.quick-add-modal, .search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.quick-add-modal.active, .search-modal.active { display: flex; }
.qam-overlay, .sm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 38, 0.6);
    backdrop-filter: blur(4px);
}

.qam-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.28s ease;
}
.sm-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 0;
    max-width: 560px;
    width: 92%;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 30px 70px -20px rgba(10, 24, 38, 0.45);
    animation: searchIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes searchIn {
    from { opacity: 0; transform: translateY(-28px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.qam-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    background: var(--bg-soft);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qam-close:hover { background: var(--border); }
.qam-close svg { width: 18px; height: 18px; color: var(--text-muted); }

.sm-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}
.sm-close:hover { background: rgba(255, 255, 255, 0.24); }
.sm-close svg { width: 18px; height: 18px; color: #fff; }

.qam-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.qam-icon {
    width: 64px;
    height: 64px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.qam-icon svg { width: 32px; height: 32px; color: var(--success); }
.qam-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0; }

.qam-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 22px;
    text-align: left;
}
.qam-product-info img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); flex-shrink: 0; }
.qam-details { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.qam-name { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qam-meta { display: flex; align-items: baseline; gap: 10px; }
.qam-price { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.qam-qty { font-size: 0.85rem; color: var(--text-muted); }
.qam-actions { display: flex; flex-direction: column; gap: 10px; }
.qam-actions .btn { width: 100%; }

.sm-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 60px 24px 28px;
    background: linear-gradient(140deg, var(--primary-ink) 0%, var(--primary) 100%);
    color: #fff;
}
.sm-brand {
    width: 46px;
    height: 46px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sm-brand svg { width: 24px; height: 24px; color: var(--primary-ink); }
.sm-head-text { flex: 1; min-width: 0; }
.sm-head h3 { font-size: 1.28rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.sm-sub { font-size: 0.86rem; color: #9fb0c0; margin: 0; }

.sm-body { padding: 26px 28px 22px; }

.search-form { display: flex; gap: 10px; margin-bottom: 24px; }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}
.search-form input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-soft);
    color: var(--text);
    transition: var(--transition);
}
.search-form input::placeholder { color: var(--text-light); }
.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-input-wrap:focus-within .search-form-icon { color: var(--accent-dark); }
.search-submit { padding: 14px 22px; flex-shrink: 0; }

.search-suggestions { text-align: left; }
.suggestions-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.suggestions-list { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}
.suggestion-chip svg { width: 15px; height: 15px; color: var(--accent-dark); transition: var(--transition); }
.suggestion-chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-ink);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px -4px rgba(245, 166, 35, 0.5);
}
.suggestion-chip:hover svg { color: var(--primary-ink); }

.sm-hint {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}
.sm-hint kbd {
    display: inline-block;
    padding: 1px 7px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 0.74rem;
    color: var(--text-muted);
    box-shadow: 0 1px 0 var(--border);
}

/* ---------- 22. Loading ---------- */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-container { display: flex; align-items: center; justify-content: center; padding: 60px; }

/* ============================================================
   23. Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { max-width: 720px; margin: 0 auto; }
    .hero h1 { font-size: 2.7rem; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-visual { max-width: 520px; margin: 0 auto; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .applications-grid, .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }

    .product-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }

    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .cart-container, .checkout-container { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }

    .header-inner { height: 64px; }

    /* hamburger button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.06);
        transition: var(--transition);
    }
    .mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.12); }
    .mobile-menu-btn.active { background: rgba(255, 255, 255, 0.12); }
    .mobile-menu-btn span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* slide-down mobile menu */
    .nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        position: absolute;
        top: 100%;
        left: 5px;
        right: 5px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 3px solid var(--accent);
        border-radius: var(--radius);
        padding: 8px;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }
    .nav.active { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
    .nav-link {
        color: #e6edf3;
        padding: 14px 16px;
        border-bottom: none;
        border-radius: var(--radius-sm);
        font-size: 1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: var(--transition);
    }
    .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); transform: translateX(4px); }
    .nav-link.active { color: var(--accent); }

    /* categories dropdown on mobile */
    .nav-dropdown > .nav-link::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s ease;
        margin-left: 6px;
        flex-shrink: 0;
    }
    .nav-dropdown.active > .nav-link { color: var(--accent); }
    .nav-dropdown.active > .nav-link::after { transform: rotate(-135deg); }
    .nav-dropdown-menu { position: static; box-shadow: none; background: transparent; border-top: none; padding: 2px 0 6px; }
    .nav-dropdown-item {
        color: #9fb0c0;
        padding: 11px 16px 11px 36px;
        border-radius: var(--radius-sm);
        font-size: 0.92rem;
        transition: var(--transition);
    }
    .nav-dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--accent); padding-left: 40px; }

    .hero { padding: 88px 0 48px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .hero-stat-value { font-size: 1.6rem; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .applications-grid, .advantages-grid { grid-template-columns: 1fr; }
    .reviews-grid, .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .newsletter { padding: 44px 24px; }
    .newsletter-form { flex-direction: column; }

    .product-features { grid-template-columns: 1fr; }
    .product-grid .product-actions { flex-direction: column; }

    .page-body { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }

    .sidebar { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }

    /* Cart → 移动端卡片美化 */
    .cart-items-card {
        background: transparent;
        border: none;
        overflow: visible;
        padding: 4px;
    }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table thead { display: none; }
    .cart-table tr {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "p p"
            "pr pr"
            "q s";
        align-items: center;
        column-gap: 14px;
        row-gap: 10px;
        padding: 14px 16px;
        margin-bottom: 12px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: none;
    }
    .cart-table tr:last-child { margin-bottom: 0; }
    .cart-table td { border: none; padding: 0; width: auto; }
    .cart-table td:nth-child(1) { grid-area: p; padding-right: 44px; }
    .cart-product { gap: 12px; }
    .cart-product-image { width: 64px; height: 64px; border-radius: 12px; }
    .cart-product-info { min-width: 0; }
    .cart-product-info h3 { font-size: 0.9rem; margin-bottom: 3px; }
    .cart-product-info h3 a {
        color: var(--primary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: break-word;
    }
    .cart-product-info .sku { font-size: 0.74rem; }
    .cart-table td:nth-child(2) {
        grid-area: pr;
        display: flex;
        align-items: baseline;
        gap: 6px;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text);
        font-variant-numeric: tabular-nums;
    }
    .cart-table td:nth-child(2)::before {
        content: "Price";
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--text-light);
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    .cart-table td:nth-child(3) { grid-area: q; justify-self: start; }
    .cart-quantity {
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg-soft);
        overflow: hidden;
    }
    .cart-quantity button { width: 34px; height: 34px; color: var(--primary); }
    .cart-quantity button:hover { background: #fff; color: var(--accent-hover); }
    .cart-quantity span { min-width: 34px; font-size: 0.92rem; }
    .cart-table td:nth-child(4) {
        grid-area: s;
        justify-self: end;
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--accent);
        font-variant-numeric: tabular-nums;
    }
    .cart-table td:nth-child(4)::before {
        content: "Subtotal";
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--text-light);
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    .cart-table td:nth-child(5) { position: absolute; top: 12px; right: 12px; }
    .cart-remove { text-align: right; }
    .cart-remove button {
        width: 32px;
        height: 32px;
        background: var(--bg-soft);
        color: var(--text-light);
        border-radius: 50%;
    }
    .cart-remove button:hover { background: #fee2e2; color: #dc2626; }

    /* 移动端防横向溢出 */
    html, body { overflow-x: hidden; }
    .checkout-page { overflow-x: hidden; }
    .checkout-container, .checkout-form, .cart-summary { min-width: 0; }
    .form-group select, .form-group input, .form-group textarea { min-width: 0; }
    .checkout-form-card { padding: 24px 18px; }
    .cart-summary { padding: 22px 18px; }

    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.9rem; }
    .hero-stat-value { font-size: 1.4rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }

    .product-info h1 { font-size: 1.6rem; }
    .product-grid .price-current { font-size: 2rem; }
    .product-grid .product-actions { flex-direction: column; }

    .article-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }

    .qam-content { padding: 30px 20px; }
    .sm-head { padding: 22px 54px 20px 20px; }
    .sm-body { padding: 20px 18px 18px; }
    .search-form { flex-direction: column; }
    .search-submit { width: 100%; }

    .page-header h1 { font-size: 1.8rem; }
    .success-content h1 { font-size: 1.8rem; }
    .success-actions { flex-direction: column; }
    .success-actions .btn { width: 100%; }
}
