/* Likron Watches 科技风格分类页面设计 */

/* CSS变量定义 - 基于Likron主题色，优化文字对比度 */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --tech-cyan: #06b6d4;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    --shadow-tech: 0 10px 25px rgba(30, 58, 138, 0.3);
    --shadow-hover: 0 20px 40px rgba(30, 58, 138, 0.4);
}

/* 页面整体容器 */
.category-page-container {
    background: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

/* 科技背景效果 */
.category-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    pointer-events: none;
}

/* 网格背景纹理 */
.category-page-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* 分类页面头部 */
.category-page-header {
    position: relative;
    z-index: 2;
}

/* 科技风格英雄区域 */
.category-hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 4rem;
    border-radius: 0 0 40px 40px;
    background: var(--gradient-primary);
}

.category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3) contrast(1.2);
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
}

.category-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 3rem;
}

.category-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(45deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.category-description {
    font-size: 1.4rem;
    margin: 0 0 2rem 0;
    max-width: 700px;
    line-height: 1.7;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 600px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 产品网格容器 */
.products-grid-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 网格控制头部 */
.products-grid-header {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-tech);
}

.grid-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* 视图切换器 */
.view-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(30, 58, 138, 0.2);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.view-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.view-btn.active,
.view-btn:hover {
    background: var(--secondary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* 排序控件 */
.sorting-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-sort-select {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #1f2937;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.custom-sort-select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.custom-sort-select option {
    color: #1f2937;
    background: #ffffff;
}

/* 产品网格布局 - CSS Grid */
.woocommerce-loop-product__link {
    display: contents;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* 产品卡片包装器 */
.product-card-wrapper {
    background: var(--gradient-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-tech);
}

.product-card-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

/* 产品图片区域 */
.product-card-wrapper .woocommerce-loop-product__link {
    display: block;
    position: relative;
    overflow: hidden;
}

.product-card-wrapper .attachment-woocommerce_thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-wrapper:hover .attachment-woocommerce_thumbnail {
    transform: scale(1.1);
}

/* 产品徽章 */
.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.sale-badge {
    background: linear-gradient(45deg, #ef4444, #f97316);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.featured-badge {
    background: linear-gradient(45deg, #10b981, #06b6d4);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.out-of-stock-badge {
    background: linear-gradient(45deg, #6b7280, #9ca3af);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

/* 产品信息区域 */
.product-card-wrapper .woocommerce-loop-product__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 1.5rem 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card-wrapper:hover .woocommerce-loop-product__title {
    color: var(--accent-blue);
}

/* 价格样式 - 针对WooCommerce价格结构 */
.product-card-wrapper .price {
    margin: 0 1.5rem 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.product-card-wrapper .price del {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.product-card-wrapper .price ins {
    text-decoration: none;
    color: #ffffff;
}

/* WooCommerce价格金额和货币符号 */
.product-card-wrapper .woocommerce-Price-amount,
.product-card-wrapper .woocommerce-Price-amount .amount,
.product-card-wrapper .woocommerce-Price-currencySymbol,
.product-card-wrapper .woocommerce-Price-amount bdi {
    color: #ffffff !important;
}

.product-card-wrapper .price .woocommerce-Price-amount,
.product-card-wrapper .price .woocommerce-Price-amount .amount,
.product-card-wrapper .price .woocommerce-Price-currencySymbol,
.product-card-wrapper .price .woocommerce-Price-amount bdi {
    color: #ffffff !important;
}

/* 删除线价格的颜色 */
.product-card-wrapper .price del .woocommerce-Price-amount,
.product-card-wrapper .price del .woocommerce-Price-amount .amount,
.product-card-wrapper .price del .woocommerce-Price-currencySymbol,
.product-card-wrapper .price del .woocommerce-Price-amount bdi {
    color: #94a3b8 !important;
}

/* 插入价格的颜色 */
.product-card-wrapper .price ins .woocommerce-Price-amount,
.product-card-wrapper .price ins .woocommerce-Price-amount .amount,
.product-card-wrapper .price ins .woocommerce-Price-currencySymbol,
.product-card-wrapper .price ins .woocommerce-Price-amount bdi {
    color: #ffffff !important;
}

/* 产品操作按钮 */
.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card-wrapper:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-view-btn,
.wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(30, 58, 138, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-view-btn:hover,
.wishlist-btn:hover {
    background: var(--secondary-blue);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* 添加到购物车按钮 */
.product-card-wrapper .add_to_cart_button {
    margin: 0 1.5rem 1.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(100% - 3rem);
    position: relative;
    overflow: hidden;
}

.product-card-wrapper .add_to_cart_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-card-wrapper .add_to_cart_button:hover::before {
    left: 100%;
}

.product-card-wrapper .add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* 快速查看模态框 */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.quick-view-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--gradient-card);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    color: var(--text-primary);
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.woocommerce-pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.woocommerce-pagination .page-numbers {
    padding: 1rem 1.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.woocommerce-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current {
    background: var(--secondary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .category-hero-section {
        height: 400px;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .category-description {
        font-size: 1.2rem;
    }
    
    .products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .grid-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid-container {
        padding: 0 1rem;
    }
    
    .category-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .category-hero-content {
        padding: 2rem 1rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
    
    .category-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.product-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.product-card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.product-card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.product-card-wrapper:nth-child(5) { animation-delay: 0.5s; }
.product-card-wrapper:nth-child(6) { animation-delay: 0.6s; }

/* 科技感滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

.review-rating{
    display: none;
}

/* 产品卡片标题去下划线并美化悬停 */
.product-card-wrapper .woocommerce-loop-product__title a,
.product-card-wrapper .woocommerce-loop-product__title a:visited,
.product-card-wrapper .woocommerce-loop-product__title a:active,
.product-card-wrapper .woocommerce-loop-product__title a:focus {
    text-decoration: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
    color: #2c3e50 !important;
}

.product-card-wrapper .woocommerce-loop-product__title a:hover {
    color: #667eea !important;
    text-decoration: none !important;
    box-shadow: 0 2px 0 #667eea !important; /* 可选高亮线 */
    border-bottom: none !important;
}

.woocommerce-products-header{
    display: none !important;
}

.woocommerce-breadcrumb{
    display: none !important;
}

.ast-woo-product-category{
    display: none!important;
}

