/*
Theme Name: Flavor Starter
Theme URI: https://example.com/flavor-starter
Author: Developer
Author URI: https://example.com
Description: 专业商务电商主题，支持 WooCommerce 和 LY Shop，现代简约设计风格。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-starter
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, responsive-layout
*/

/* ========================================
   CSS Variables - 专业商务配色
   ======================================== */
:root {
    /* 主色调 - 深蓝商务色 */
    --fs-primary: #1e3a5f;
    --fs-primary-light: #2d5a8a;
    --fs-primary-dark: #0f2540;
    
    /* 强调色 - 金色 */
    --fs-accent: #c9a227;
    --fs-accent-light: #e5c04d;
    --fs-accent-dark: #a68520;
    
    /* 中性色 */
    --fs-dark: #1a1a2e;
    --fs-gray-900: #212529;
    --fs-gray-800: #343a40;
    --fs-gray-700: #495057;
    --fs-gray-600: #6c757d;
    --fs-gray-500: #adb5bd;
    --fs-gray-400: #ced4da;
    --fs-gray-300: #dee2e6;
    --fs-gray-200: #e9ecef;
    --fs-gray-100: #f8f9fa;
    --fs-white: #ffffff;
    
    /* 功能色 */
    --fs-success: #28a745;
    --fs-warning: #ffc107;
    --fs-danger: #dc3545;
    --fs-info: #17a2b8;
    
    /* 字体 */
    --fs-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
    --fs-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    /* 尺寸 */
    --fs-container: 1200px;
    --fs-container-wide: 1400px;
    --fs-header-height: 80px;
    --fs-header-height-mobile: 60px;
    
    /* 圆角 */
    --fs-radius-sm: 4px;
    --fs-radius: 8px;
    --fs-radius-lg: 12px;
    --fs-radius-xl: 16px;
    
    /* 阴影 */
    --fs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --fs-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --fs-shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --fs-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --fs-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* 过渡 */
    --fs-transition: 0.3s ease;
    --fs-transition-fast: 0.15s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fs-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fs-gray-800);
    background-color: var(--fs-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--fs-primary);
    text-decoration: none;
    transition: color var(--fs-transition-fast);
}

a:hover {
    color: var(--fs-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--fs-gray-900);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ========================================
   Layout
   ======================================== */
.fs-container {
    width: 100%;
    max-width: var(--fs-container);
    margin: 0 auto;
    padding: 0 20px;
}

.fs-container-wide {
    max-width: var(--fs-container-wide);
}

.fs-section {
    padding: 60px 0;
}

.fs-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--fs-gray-900);
}

.fs-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--fs-accent);
    margin: 15px auto 0;
}

/* ========================================
   Buttons
   ======================================== */
.fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: var(--fs-radius);
    cursor: pointer;
    transition: all var(--fs-transition);
    text-decoration: none;
}

.fs-btn-primary {
    background: var(--fs-primary);
    color: var(--fs-white);
    border-color: var(--fs-primary);
}

.fs-btn-primary:hover {
    background: var(--fs-primary-light);
    border-color: var(--fs-primary-light);
    color: var(--fs-white);
}

.fs-btn-accent {
    background: var(--fs-accent);
    color: var(--fs-dark);
    border-color: var(--fs-accent);
}

.fs-btn-accent:hover {
    background: var(--fs-accent-light);
    border-color: var(--fs-accent-light);
    color: var(--fs-dark);
}

.fs-btn-outline {
    background: transparent;
    color: var(--fs-primary);
    border-color: var(--fs-primary);
}

.fs-btn-outline:hover {
    background: var(--fs-primary);
    color: var(--fs-white);
}

.fs-btn-white {
    background: var(--fs-white);
    color: var(--fs-primary);
    border-color: var(--fs-white);
}

.fs-btn-white:hover {
    background: var(--fs-gray-100);
    border-color: var(--fs-gray-100);
}

.fs-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.fs-btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.fs-btn-block {
    width: 100%;
}

/* ========================================
   Header
   ======================================== */
.fs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--fs-header-height);
    background: var(--fs-white);
    box-shadow: var(--fs-shadow-sm);
    z-index: 1000;
    transition: all var(--fs-transition);
}

.admin-bar .fs-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .fs-header {
        top: 46px;
    }
}

.fs-header.scrolled {
    box-shadow: var(--fs-shadow-md);
}

.fs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--fs-container-wide);
    margin: 0 auto;
    padding: 0 30px;
}

.fs-logo {
    flex-shrink: 0;
}

.fs-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fs-primary);
}

.fs-logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.fs-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.fs-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-nav-menu li {
    position: relative;
}

.fs-nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fs-gray-700);
    border-radius: var(--fs-radius);
    transition: all var(--fs-transition-fast);
}

.fs-nav-menu > li > a:hover,
.fs-nav-menu > li.current-menu-item > a {
    color: var(--fs-primary);
    background: var(--fs-gray-100);
}

/* Dropdown */
.fs-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--fs-white);
    border-radius: var(--fs-radius);
    box-shadow: var(--fs-shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--fs-transition);
}

.fs-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fs-nav-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
    color: var(--fs-gray-700);
}

.fs-nav-menu .sub-menu a:hover {
    background: var(--fs-gray-100);
    color: var(--fs-primary);
}

/* Header Actions */
.fs-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fs-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--fs-gray-700);
    transition: all var(--fs-transition-fast);
    position: relative;
}

.fs-header-action:hover {
    background: var(--fs-gray-100);
    color: var(--fs-primary);
}

.fs-header-action svg {
    width: 22px;
    height: 22px;
}

.fs-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--fs-accent);
    color: var(--fs-dark);
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Mobile Menu Toggle */
.fs-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.fs-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fs-gray-800);
    transition: all var(--fs-transition);
}

/* ========================================
   Homepage - Banner
   ======================================== */
.home-banner {
    position: relative;
    height: 500px;
    margin-top: var(--fs-header-height);
    overflow: hidden;
}

.admin-bar .home-banner {
    margin-top: calc(var(--fs-header-height) + 32px);
}

.home-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-banner-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.home-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.home-banner-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.home-banner-text {
    max-width: 600px;
    color: #fff;
}

.home-banner-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.3;
}

.home-banner-text p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-shop-now {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #333;
}

/* ========================================
   Homepage - Services Bar
   ======================================== */
.home-services {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.services-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon {
    font-size: 1.5rem;
}

.service-text {
    display: flex;
    flex-direction: column;
}

.service-text strong {
    font-size: 0.9rem;
    color: #333;
}

.service-text span {
    font-size: 0.8rem;
    color: #666;
}

/* ========================================
   Homepage - Categories
   ======================================== */
.home-categories {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.view-all-link {
    font-size: 0.9rem;
    color: var(--fs-primary);
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--fs-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #999;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.category-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.8rem;
    color: #888;
}

/* ========================================
   Homepage - Products
   ======================================== */
.home-products {
    padding: 50px 0;
    background: #fff;
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.product-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-link {
    display: block;
    color: inherit;
}

.product-thumb {
    position: relative;
    aspect-ratio: 1;
    background: #f8f8f8;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-thumb img {
    transform: scale(1.05);
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.product-details {
    padding: 16px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-now {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
}

.price-was {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

/* ========================================
   Homepage - Promo
   ======================================== */
.home-promo {
    padding: 50px 0;
    background: #f8f9fa;
}

.promo-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    background: linear-gradient(135deg, var(--fs-primary) 0%, var(--fs-primary-dark) 100%);
    border-radius: 16px;
    color: #fff;
}

.promo-content h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: #fff;
}

.promo-content p {
    margin: 0;
    opacity: 0.9;
}

.promo-btn {
    padding: 12px 32px;
    background: #fff;
    color: var(--fs-primary);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s;
}

.promo-btn:hover {
    transform: scale(1.05);
    color: var(--fs-primary);
}

/* ========================================
   Homepage - Blog
   ======================================== */
.home-blog {
    padding: 50px 0;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.blog-thumb {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-info {
    padding: 16px;
}

.blog-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.blog-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.blog-info h3 a {
    color: #333;
}

.blog-info h3 a:hover {
    color: var(--fs-primary);
}

/* ========================================
   Homepage Responsive
   ======================================== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-slider {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-banner {
        height: 400px;
    }
    
    .home-banner-text h1 {
        font-size: 1.75rem;
    }
    
    .services-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
    }
    
    .products-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .promo-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .blog-list {
        grid-template-columns: 1fr;
    }
    
    .admin-bar .home-banner {
        margin-top: calc(var(--fs-header-height) + 46px);
    }
}

/* ========================================
   Features Section
   ======================================== */
.fs-features {
    background: var(--fs-gray-100);
}

.fs-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.fs-feature-card {
    background: var(--fs-white);
    padding: 30px;
    border-radius: var(--fs-radius-lg);
    text-align: center;
    box-shadow: var(--fs-shadow);
    transition: all var(--fs-transition);
}

.fs-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fs-shadow-lg);
}

.fs-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--fs-primary) 0%, var(--fs-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--fs-white);
}

.fs-feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.fs-feature-desc {
    font-size: 0.9375rem;
    color: var(--fs-gray-600);
    margin: 0;
}

/* ========================================
   Products Grid
   ======================================== */
.fs-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.fs-product-card {
    background: var(--fs-white);
    border-radius: var(--fs-radius-lg);
    overflow: hidden;
    box-shadow: var(--fs-shadow);
    transition: all var(--fs-transition);
}

.fs-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fs-shadow-lg);
}

.fs-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--fs-gray-100);
}

.fs-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fs-transition);
}

.fs-product-card:hover .fs-product-image img {
    transform: scale(1.05);
}

.fs-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--fs-danger);
    color: var(--fs-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--fs-radius-sm);
}

.fs-product-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--fs-transition);
}

.fs-product-card:hover .fs-product-actions {
    opacity: 1;
    transform: translateY(0);
}

.fs-product-info {
    padding: 20px;
}

.fs-product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-product-title a {
    color: var(--fs-gray-900);
}

.fs-product-title a:hover {
    color: var(--fs-primary);
}

.fs-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fs-product-price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fs-primary);
}

.fs-product-price .original {
    font-size: 0.9375rem;
    color: var(--fs-gray-500);
    text-decoration: line-through;
}

/* ========================================
   Footer
   ======================================== */
.fs-footer {
    background: var(--fs-dark);
    color: var(--fs-gray-400);
    padding: 60px 0 0;
}

.fs-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fs-footer-brand {
    max-width: 300px;
}

.fs-footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fs-white);
    margin-bottom: 16px;
    display: block;
}

.fs-footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.fs-footer-social {
    display: flex;
    gap: 12px;
}

.fs-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--fs-gray-400);
    transition: all var(--fs-transition);
}

.fs-footer-social a:hover {
    background: var(--fs-accent);
    color: var(--fs-dark);
}

.fs-footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fs-white);
    margin-bottom: 20px;
}

.fs-footer-links li {
    margin-bottom: 10px;
}

.fs-footer-links a {
    color: var(--fs-gray-400);
    font-size: 0.9375rem;
    transition: color var(--fs-transition-fast);
}

.fs-footer-links a:hover {
    color: var(--fs-white);
}

.fs-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   Breadcrumb
   ======================================== */
.fs-breadcrumb {
    padding: calc(var(--fs-header-height) + 20px) 0 20px;
    background: var(--fs-gray-100);
}

.fs-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.fs-breadcrumb a {
    color: var(--fs-gray-600);
}

.fs-breadcrumb a:hover {
    color: var(--fs-primary);
}

.fs-breadcrumb .separator {
    color: var(--fs-gray-400);
}

.fs-breadcrumb .current {
    color: var(--fs-gray-800);
    font-weight: 500;
}

/* ========================================
   Forms
   ======================================== */
.fs-form-group {
    margin-bottom: 20px;
}

.fs-form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fs-gray-700);
    margin-bottom: 8px;
}

.fs-form-label .required {
    color: var(--fs-danger);
}

.fs-form-input,
.fs-form-select,
.fs-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--fs-gray-300);
    border-radius: var(--fs-radius);
    background: var(--fs-white);
    transition: all var(--fs-transition-fast);
}

.fs-form-input:focus,
.fs-form-select:focus,
.fs-form-textarea:focus {
    outline: none;
    border-color: var(--fs-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.fs-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Cart & Checkout
   ======================================== */
.fs-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.fs-cart-table th,
.fs-cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--fs-gray-200);
}

.fs-cart-table th {
    font-weight: 600;
    color: var(--fs-gray-700);
    background: var(--fs-gray-100);
}

.fs-cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fs-cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--fs-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.fs-cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-cart-summary {
    background: var(--fs-gray-100);
    padding: 30px;
    border-radius: var(--fs-radius-lg);
}

.fs-cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--fs-gray-300);
}

.fs-cart-summary-row:last-child {
    border-bottom: none;
}

.fs-cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fs-gray-900);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .fs-features-grid,
    .fs-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fs-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fs-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .fs-hero-actions {
        justify-content: center;
    }
    
    .fs-hero-image {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-header-height: var(--fs-header-height-mobile);
    }
    
    .fs-nav {
        display: none;
    }
    
    .fs-menu-toggle {
        display: flex;
    }
    
    .fs-hero {
        min-height: auto;
        padding: calc(var(--fs-header-height) + 40px) 0 60px;
    }
    
    .fs-hero-title {
        font-size: 2rem;
    }
    
    .fs-section {
        padding: 40px 0;
    }
    
    .fs-section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .fs-features-grid,
    .fs-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fs-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fs-footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .fs-footer-social {
        justify-content: center;
    }
}

/* ========================================
   Mobile Navigation
   ======================================== */
.fs-mobile-nav {
    position: fixed;
    top: var(--fs-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fs-white);
    z-index: 999;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform var(--fs-transition);
    overflow-y: auto;
}

.admin-bar .fs-mobile-nav {
    top: calc(var(--fs-header-height) + 32px);
}

@media (max-width: 782px) {
    .admin-bar .fs-mobile-nav {
        top: calc(var(--fs-header-height) + 46px);
    }
}

.fs-mobile-nav.active {
    transform: translateX(0);
}

.fs-mobile-nav-menu li {
    border-bottom: 1px solid var(--fs-gray-200);
}

.fs-mobile-nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    color: var(--fs-gray-800);
}

.fs-mobile-nav-menu a:hover {
    color: var(--fs-primary);
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

@media (max-width: 768px) {
    .hidden-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hidden-desktop { display: none !important; }
}

/* ========================================
   Shop Page - New Design
   ======================================== */
.shop-page {
    padding-top: var(--fs-header-height);
}

.admin-bar .shop-page {
    padding-top: calc(var(--fs-header-height) + 32px);
}

.shop-breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.admin-bar .shop-breadcrumb[style*="margin-top"] {
    margin-top: calc(var(--fs-header-height) + 32px) !important;
}

@media (max-width: 782px) {
    .admin-bar .shop-breadcrumb[style*="margin-top"] {
        margin-top: calc(var(--fs-header-height) + 46px) !important;
    }
}

.breadcrumb-nav {
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb-nav a {
    color: #666;
}

.breadcrumb-nav a:hover {
    color: var(--fs-primary);
}

.breadcrumb-nav .sep {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-nav .current {
    color: #333;
    font-weight: 500;
}

.shop-header {
    background: linear-gradient(135deg, var(--fs-primary) 0%, var(--fs-primary-dark) 100%);
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

.shop-page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.shop-page-desc {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.shop-cats-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: var(--fs-header-height);
    z-index: 100;
}

.admin-bar .shop-cats-bar {
    top: calc(var(--fs-header-height) + 32px);
}

.shop-cats-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.shop-cats-scroll::-webkit-scrollbar {
    height: 3px;
}

.shop-cats-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.shop-cat-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #555;
    border-radius: 50px;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.shop-cat-tag:hover {
    background: #e8e8e8;
    color: #333;
}

.shop-cat-tag.active {
    background: var(--fs-primary);
    color: #fff;
}

.shop-main {
    padding: 15px 0 60px;
    background: #f8f9fa;
    min-height: 50vh;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.shop-result-info {
    font-size: 0.9rem;
    color: #666;
}

.shop-result-info strong {
    color: var(--fs-primary);
}

.shop-sort-select {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
}

.shop-sort-select:focus {
    outline: none;
    border-color: var(--fs-primary);
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s;
}

.shop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.shop-product-link {
    display: block;
    color: inherit;
}

.shop-product-thumb {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
}

.shop-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.shop-product-card:hover .shop-product-thumb img {
    transform: scale(1.08);
}

.shop-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.shop-badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.shop-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.shop-product-card:hover .shop-product-overlay {
    opacity: 1;
}

.shop-view-btn {
    padding: 10px 24px;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.shop-product-card:hover .shop-view-btn {
    transform: translateY(0);
}

.shop-product-body {
    padding: 16px;
}

.shop-product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.shop-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-price-current {
    font-size: 1.125rem;
    font-weight: 700;
    color: #e74c3c;
}

.shop-price-original {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.shop-pagination {
    margin-top: 40px;
    text-align: center;
}

.shop-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-pagination a,
.shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s;
}

.shop-pagination a:hover {
    background: var(--fs-primary);
    border-color: var(--fs-primary);
    color: #fff;
}

.shop-pagination .current {
    background: var(--fs-primary);
    border-color: var(--fs-primary);
    color: #fff;
}

.shop-pagination .prev,
.shop-pagination .next {
    padding: 0 18px;
}

.shop-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
}

.shop-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.shop-empty h3 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: #333;
}

.shop-empty p {
    color: #666;
    margin: 0 0 25px;
}

.shop-back-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--fs-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s;
}

.shop-back-btn:hover {
    background: var(--fs-primary-dark);
    color: #fff;
}

/* Shop Page Responsive */
@media (max-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: 30px 0;
    }
    
    .shop-page-title {
        font-size: 1.5rem;
    }
    
    .shop-cats-bar {
        top: var(--fs-header-height);
    }
    
    .admin-bar .shop-cats-bar {
        top: calc(var(--fs-header-height) + 46px);
    }
    
    .shop-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .shop-product-body {
        padding: 12px;
    }
    
    .shop-product-name {
        font-size: 0.875rem;
    }
    
    .shop-price-current {
        font-size: 1rem;
    }
    
    .shop-product-overlay {
        display: none;
    }
}

/* ========================================
   Single Product
   ======================================== */
.fs-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.fs-gallery-main {
    border-radius: var(--fs-radius-lg);
    overflow: hidden;
    background: var(--fs-gray-100);
    aspect-ratio: 1;
}

.fs-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.fs-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--fs-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--fs-transition-fast);
}

.fs-gallery-thumb.active,
.fs-gallery-thumb:hover {
    border-color: var(--fs-primary);
}

.fs-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-product-detail-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.fs-product-sku {
    color: var(--fs-gray-600);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.fs-product-detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fs-gray-200);
}

.fs-product-detail-price .current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fs-primary);
}

.fs-product-detail-price .original {
    font-size: 1.25rem;
    color: var(--fs-gray-500);
    text-decoration: line-through;
}

.fs-discount-badge {
    background: var(--fs-danger);
    color: var(--fs-white);
    padding: 4px 10px;
    border-radius: var(--fs-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.fs-product-excerpt {
    color: var(--fs-gray-600);
    line-height: 1.7;
    margin-bottom: 25px;
}

.fs-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.fs-quantity-wrapper label {
    font-weight: 500;
    color: var(--fs-gray-700);
}

.fs-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--fs-gray-300);
    border-radius: var(--fs-radius);
}

.fs-qty-minus,
.fs-qty-plus {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--fs-gray-100);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background var(--fs-transition-fast);
}

.fs-qty-minus:hover,
.fs-qty-plus:hover {
    background: var(--fs-gray-200);
}

.fs-qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
    appearance: textfield;
}

.fs-qty-input::-webkit-outer-spin-button,
.fs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fs-stock-info {
    color: var(--fs-gray-600);
    font-size: 0.875rem;
}

.fs-product-meta-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--fs-gray-200);
}

.fs-product-meta-info p {
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.fs-product-meta-info a {
    color: var(--fs-primary);
}

/* Product Tabs */
.fs-product-tabs {
    margin-bottom: 60px;
}

.fs-tabs-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--fs-gray-200);
    margin-bottom: 30px;
}

.fs-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fs-gray-600);
    cursor: pointer;
    position: relative;
    transition: color var(--fs-transition-fast);
}

.fs-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fs-primary);
    transform: scaleX(0);
    transition: transform var(--fs-transition);
}

.fs-tab-btn:hover,
.fs-tab-btn.active {
    color: var(--fs-primary);
}

.fs-tab-btn.active::after {
    transform: scaleX(1);
}

.fs-tab-pane {
    display: none;
}

.fs-tab-pane.active {
    display: block;
}

.fs-product-description {
    line-height: 1.8;
}

.fs-product-description img {
    border-radius: var(--fs-radius);
    margin: 20px 0;
}

.fs-product-info-table {
    width: 100%;
    border-collapse: collapse;
}

.fs-product-info-table th,
.fs-product-info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--fs-gray-200);
    text-align: left;
}

.fs-product-info-table th {
    width: 150px;
    font-weight: 500;
    color: var(--fs-gray-700);
    background: var(--fs-gray-100);
}

/* Related Products */
.fs-related-products,
.fs-related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--fs-gray-200);
}

.fs-related-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.fs-products-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Placeholder */
.fs-product-placeholder,
.fs-product-placeholder-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-gray-100);
    color: var(--fs-gray-400);
    width: 100%;
    height: 100%;
}

.fs-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--fs-radius-lg);
    padding: 60px;
    color: rgba(255,255,255,0.3);
}

/* ========================================
   Posts Grid
   ======================================== */
.fs-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.fs-posts-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fs-posts-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fs-post-card {
    background: var(--fs-white);
    border-radius: var(--fs-radius-lg);
    overflow: hidden;
    box-shadow: var(--fs-shadow);
    transition: all var(--fs-transition);
}

.fs-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fs-shadow-lg);
}

.fs-post-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.fs-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fs-transition);
}

.fs-post-card:hover .fs-post-image img {
    transform: scale(1.05);
}

.fs-post-content {
    padding: 20px;
}

.fs-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--fs-gray-600);
    margin-bottom: 10px;
}

.fs-post-cat a {
    color: var(--fs-primary);
}

.fs-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.fs-post-title a {
    color: var(--fs-gray-900);
}

.fs-post-title a:hover {
    color: var(--fs-primary);
}

.fs-post-excerpt {
    color: var(--fs-gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ========================================
   Single Post
   ======================================== */
.fs-single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.fs-single-header {
    margin-bottom: 30px;
}

.fs-single-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9375rem;
    color: var(--fs-gray-600);
    margin-bottom: 15px;
}

.fs-single-cat a {
    color: var(--fs-primary);
}

.fs-single-title {
    font-size: 2rem;
    line-height: 1.3;
}

.fs-single-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--fs-radius-lg);
    overflow: hidden;
}

.fs-single-body {
    line-height: 1.8;
    font-size: 1.0625rem;
}

.fs-single-body p {
    margin-bottom: 1.5em;
}

.fs-single-body h2,
.fs-single-body h3,
.fs-single-body h4 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.fs-single-body img {
    border-radius: var(--fs-radius);
    margin: 1.5em 0;
}

.fs-single-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--fs-gray-200);
}

.fs-tags-label,
.fs-share-label {
    font-weight: 500;
    margin-right: 10px;
}

.fs-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--fs-gray-100);
    border-radius: var(--fs-radius-sm);
    font-size: 0.875rem;
    color: var(--fs-gray-700);
    margin-right: 8px;
    margin-bottom: 8px;
}

.fs-tag:hover {
    background: var(--fs-primary);
    color: var(--fs-white);
}

.fs-single-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.fs-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--fs-white);
    font-size: 0.75rem;
    font-weight: 600;
}

.fs-share-facebook {
    background: #1877f2;
}

.fs-share-line {
    background: #00b900;
}

/* Sidebar */
.fs-sidebar {
    position: sticky;
    top: calc(var(--fs-header-height) + 20px);
    align-self: start;
}

.fs-widget {
    background: var(--fs-white);
    border: 1px solid var(--fs-gray-200);
    border-radius: var(--fs-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.fs-widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fs-gray-200);
}

/* ========================================
   CTA Section
   ======================================== */
.fs-cta {
    background: linear-gradient(135deg, var(--fs-primary) 0%, var(--fs-primary-dark) 100%);
    color: var(--fs-white);
}

.fs-cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.fs-cta-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--fs-white);
}

.fs-cta-desc {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ========================================
   Pagination
   ======================================== */
.fs-pagination {
    margin-top: 40px;
    text-align: center;
}

.fs-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.fs-pagination a,
.fs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--fs-gray-300);
    border-radius: var(--fs-radius);
    font-size: 0.9375rem;
    color: var(--fs-gray-700);
    transition: all var(--fs-transition-fast);
}

.fs-pagination a:hover {
    background: var(--fs-primary);
    border-color: var(--fs-primary);
    color: var(--fs-white);
}

.fs-pagination .current {
    background: var(--fs-primary);
    border-color: var(--fs-primary);
    color: var(--fs-white);
}

/* ========================================
   Page Content
   ======================================== */
.fs-page-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.fs-page-body {
    line-height: 1.8;
}

/* ========================================
   Responsive - Shop
   ======================================== */
@media (max-width: 1024px) {
    .fs-shop-layout {
        grid-template-columns: 1fr;
    }
    
    .fs-shop-sidebar {
        position: static;
        display: none;
    }
    
    .fs-products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fs-products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fs-product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fs-single-layout {
        grid-template-columns: 1fr;
    }
    
    .fs-sidebar {
        display: none;
    }
    
    .fs-posts-grid-3,
    .fs-posts-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fs-shop-toolbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .fs-products-grid,
    .fs-products-grid-3,
    .fs-products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .fs-product-detail-title {
        font-size: 1.5rem;
    }
    
    .fs-product-detail-price .current {
        font-size: 1.5rem;
    }
    
    .fs-quantity-wrapper {
        flex-wrap: wrap;
    }
    
    .fs-posts-grid,
    .fs-posts-grid-3,
    .fs-posts-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .fs-single-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Mobile Bottom Navigation - 手机端底部浮动菜单
   ======================================== */
.fs-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .fs-mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .fs-footer {
        padding-bottom: 80px;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    body.single-ly_product .fs-mobile-bottom-nav,
    body.page-template-checkout .fs-mobile-bottom-nav,
    body.ly-shop-checkout .fs-mobile-bottom-nav {
        display: none;
    }
}

.fs-mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    padding: 5px 10px;
    transition: color 0.2s;
    position: relative;
}

.fs-mobile-bottom-nav-item svg {
    stroke-width: 1.8;
}

.fs-mobile-bottom-nav-item.active,
.fs-mobile-bottom-nav-item:hover {
    color: var(--fs-primary);
}

.fs-mobile-bottom-nav-cart {
    position: relative;
}

.fs-mobile-bottom-cart-count {
    position: absolute;
    top: 0;
    right: 5px;
    min-width: 16px;
    height: 16px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.fs-mobile-bottom-cart-count:empty {
    display: none;
}

/* ========================================
   Product Detail Bottom Bar - 商品详情页底部浮动菜单
   ======================================== */
.fs-product-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 10000;
    padding-bottom: env(safe-area-inset-bottom);
    height: 56px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .fs-product-bottom-bar {
        display: flex;
    }
    
    .product-detail-page {
        padding-bottom: 70px;
    }
    
    .purchase-section {
        display: none;
    }
}

.fs-pbb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #666;
    font-size: 11px;
    text-decoration: none;
    border: none;
    border-right: 1px solid #f0f0f0;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.fs-pbb-item:last-child {
    border-right: none;
}

.fs-pbb-item svg {
    margin-bottom: 3px;
}

.fs-pbb-item:hover {
    color: var(--fs-primary);
}

.fs-pbb-cart {
    flex: 2;
    flex-direction: row;
    gap: 6px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--fs-primary);
    font-size: 13px;
    font-weight: 600;
}

.fs-pbb-cart svg {
    margin-bottom: 0;
}

.fs-pbb-cart:hover {
    background: rgba(30, 58, 95, 0.12);
}

.fs-pbb-buy {
    flex: 2;
    background: var(--fs-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.fs-pbb-buy:hover {
    background: var(--fs-primary-dark);
}
