/*
Theme Name: elux
Theme URI: https://eluxtech.com
Author: elux Team
Author URI: https://eluxtech.com
Description: A modern WooCommerce theme for vape products based on design specifications
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elux
Tags: e-commerce, woocommerce, modern, clean, vape
*/

/* ========================================
   CSS Reset & Base Styles
======================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
/* 定义字体 @font-face */
@font-face {
	font-family: 'InterVariable';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("font/InterVariable.woff2") format("woff2");
}

:root {
	/* Brand Colors - 品牌颜色 */
	--brand-promary: #B7FF00;
	--brand-secondary: #FF9900;
	--brand-hover: #93c70f;
	
	/* Background Colors - 背景颜色 */
	--bg-color: #F2F4F4;
	--bg0: #000000;
	--bg: #FFFFFF;
	
	/* Text Colors - 文字颜色 */
	--dark: #000;
	--white: #FFFFFF;
	--text-medium: #666;
	--text-light: #999;
	--cd: #DDDDDD;
	--c3: #333;
	
	/* Border Colors - 边框颜色 */
	--border-color: #DDD;
	
	/* Typography - 字体设置 */
	--title-font-family: 'InterVariable', 'Inter-Bold', sans-serif;
	--title-font-size: 16px;
	--title-line-height: 24px;
	--title-font-weight: 700;
	
	--body-font-family: 'InterVariable', 'Inter-Regular', sans-serif;
	--body-font-size: 16px;
	--body-line-height: 1.375;
	--body-font-weight: 400;
	--sds-color-icon-brand-on-brand: #F5F5F5;
	
	/* Other - 其他 */
	--sds-color-icon-brand-on-brand: #F5F5F5;
}

body {
	font-family: 'InterVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--body-font-size);
	line-height: var(--body-line-height);
	color: var(--dark);
	background: var(--white);
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--brand-hover);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	list-style: none;
}

input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

/* ========================================
   Container & Layout
======================================== */
.site{
	min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.container {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 60px;
}

p {
	margin-bottom: 1rem;
}

/* ========================================
   Buttons
======================================== */
.btn {
	display: inline-block;
	padding: 12px 30px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 4px;
	transition: all 0.3s ease;
	cursor: pointer;
	text-align: center;
	border: none;
}

.hidden{
	display: none;
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--c3);
	color: var(--white);
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	cursor: pointer;
	z-index: 998;
	transition: all 0.3s;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top:hover {
	background: var(--brand-promary);
	color: var(--c3);
	transform: translateY(-5px);
}

.back-to-top.show {
	display: flex;
}

.back-to-top img {
	width: 20px;
	height: 20px;
}

.back-to-top span {
	font-size: 10px;
	font-weight: 700;
}

.vs-stars svg{
	max-width: 24px;
}


.category-title-section {
	padding: 30px 0px 60px 0px;
	display: flex;
	flex-direction: row;
	gap: 0px;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
}
.category-title-wrapper {
	color: #000000;
	line-height: 1.5;
	font-size: 56px;
	font-weight: 400;
	position: relative;
}
.category-title-light {
		font-weight: 200;
}
.category-title-bold {
		font-weight: 700;
}

.category-content {
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	align-self: stretch;
	flex-shrink: 0;
	position: relative;
}
.category-title {
	color: var(--bg, #ffffff);
	text-align: center;
		font-size: 30px;
	font-weight: 700;
	text-transform: uppercase;
	position: relative;
	width: 350px;
}
.category-divider {
	background: var(--brand-promary, #b7ff00);
	flex-shrink: 0;
	width: 100px;
	height: 5px;
	position: relative;
}
.category-desc-wrapper {
	padding: 20px 0px 20px 0px;
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 350px;
	height: 78px;
	position: relative;
}
.category-description {
	color: var(--bg, #ffffff);
	text-align: center;
		font-size: var(--body-font-size, 16px);
	line-height: var(--body-line-height, 22px);
	font-weight: var(--body-font-weight, 400);
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-section {
	display: flex;
	flex-direction: column;
	gap: 0;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
	width: 100%;
	position: relative;
}
.section-title {
	color: #000000;
	text-align: center;
		font-size: var(--h1-font-size, 56px);
	font-weight: var(--h1-font-weight, 700);
	position: relative;
    margin-top: 70px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 0.8;
}
.product-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: center;
	justify-content: flex-start;
	align-self: stretch;
	flex-shrink: 0;
	position: relative;
}

.cta-text {
	padding: 10px 50px 10px 50px;
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 46px;
	position: relative;
	background: var(--bramd-promary, #b7ff00);
	color: #000000;
		font-size: var(--title-font-size, 16px);
	line-height: var(--title-line-height, 24px);
	font-weight: var(--title-font-weight, 700);
	text-transform: uppercase;
	position: relative;
}

.product-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
	position: relative;
	text-decoration: none;
	transition: all 0.3s ease;
	padding-bottom: 22px;
	max-width: 300px;
	width: 100%;
}
.product-card:hover {
	transform: translateY(-5px);
	background: #2c2c2c;
}
.product-card:hover .product-image-hover {
	opacity: 1;
	background: #2c2c2c;
    transform: scale(1);
}
.product-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	align-self: stretch;
	flex-shrink: 0;
	position: relative;
}
.product-details {
	display: flex;
	flex-direction: column;
	gap: 3px;
	align-items: flex-start;
	justify-content: flex-start;
	align-self: stretch;
	flex-shrink: 0;
	position: relative;
}
.product-name-wrapper {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex-shrink: 0;
	position: relative;
}
.product-name {
	color: #000000;
	text-align: center;
		font-size: var(--title-font-size, 16px);
	line-height: var(--title-line-height, 24px);
	font-weight: var(--title-font-weight, 700);
	text-transform: uppercase;
	position: relative;
}
.product-specs-wrapper {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex-shrink: 0;
	position: relative;
}
.product-specs {
	color: #000000;
	text-align: center;
		font-size: var(--boby-font-size, 16px);
	line-height: var(--boby-line-height, 22px);
	font-weight: var(--boby-font-weight, 400);
	position: relative;
	flex: 1;
}
.product-price {
	display: flex;
	flex-direction: row;
	gap: 5px;
	align-items: flex-start;
	justify-content: flex-start;
	flex-shrink: 0;
	position: relative;
}
.price-original {
	color: var(--c6, #666666);
	text-align: center;
		font-size: var(--boby-font-size, 16px);
	line-height: var(--boby-line-height, 22px);
	font-weight: var(--boby-font-weight, 400);
	position: relative;
}
.price-label {
	color: var(--c6, #666666);
	text-align: center;
		font-size: var(--boby-font-size, 16px);
	line-height: var(--boby-line-height, 22px);
	font-weight: var(--boby-font-weight, 400);
	position: relative;
}
.price-current {
	color: #000000;
	text-align: center;
		font-size: var(--title-font-size, 16px);
	line-height: var(--title-line-height, 24px);
	font-weight: var(--title-font-weight, 700);
	text-transform: uppercase;
	position: relative;
}
.product-card:hover .product-price{
	display: none;
}

.product-card:hover .cta-text{
	display: flex !important;
}
.product-card:hover .product-specs,.product-card:hover .product-name{
	color: var(--white);
}
.product-card:hover .product-name{
	/* font-size: 28px; */
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}
.product-name{
	height: 34px;
	line-height: 34px;
}
.product-grid-small .product-name{
	height: 44px;
}

.product-grid-small .product-card:hover .product-name{
	/* font-size: 36px; */
}
.product-price,.cta-text{
	height: 46px;
	line-height: 1;
}

.featured-product-image {
	flex-shrink: 0;
	width: 824px;
	height: 824px;
	position: relative;
	object-fit: cover;
}
.product-card-large {
	padding: 30px 10px 30px 10px;
	display: flex;
	flex-direction: column;
	gap: 0px;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
	width: 400px;
	height: 540px;
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.product-featured-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex-shrink: 0;
	position: relative;
}
.product-featured-name {
	color: var(--bg, #ffffff);
	text-align: center;
		font-size: var(--h2-font-size, 36px);
	font-weight: var(--h2-font-weight, 700);
	position: relative;
	align-self: stretch;
}
.product-featured-specs {
	color: var(--bg, #ffffff);
	text-align: center;
		font-size: 20px;
	font-weight: 500;
	position: relative;
	align-self: stretch;
}
.product-grid-small {
	grid-template-columns: repeat(4, 1fr);
}
  /* Large product image for featured layout - 响应式优化 */
.product-grid-small .product-image-wrapper {
	position: relative;
	width: 100%;
	max-width: 370px;
	aspect-ratio: 1 / 1; /* 保持正方形比例 */
	flex-shrink: 0;
}

.product-grid-small .product-card{
	max-width: 370px;
}
  
.product-image-large {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	transition: all 0.3s ease;
}
  
.product-grid-small .product-image-main {
	opacity: 1;
	z-index: 1;
}
  
.product-grid-small .product-image-hover {
	opacity: 0;
	z-index: 2;
}
  
.product-grid-small .product-card:hover .product-image-hover {
	opacity: 1;
}
.brand-story-section {
	padding: 70px 20px;
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	width: 100%;
}
.brand-story-text {
	color: #000000;
	text-align: center;
	font-size: 36px;
	font-weight: 400;
	position: relative;
	max-width: 1680px;
	line-height: 1.5;
}
.brand-story-light {
	font-weight: 300;
	font-style: italic;
}
.brand-story-bold {
	font-weight: 700;
	font-style: italic;
}
.product-grid-full .product-card{
	margin-bottom: 1vw;
}

  /* Product image wrapper for hover effect - 响应式优化 */
  .product-image-wrapper {
	position: relative;
	width: 100%;
	max-width: 300px;
	aspect-ratio: 1 / 1; /* 保持正方形比例 */
	flex-shrink: 0;
}
  
.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	transition: all 0.3s ease;
}
  
.product-image-main {
	opacity: 1;
	z-index: 1;
}
  
.product-image-hover {
	opacity: 0;
	z-index: 2;
}
a.cta-text:hover{
	background: var(--brand-hover);
	color: var(--white);
	transform: scale(1.02);
}

.nav-links{
	text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.page-numbers.current{
	padding: 8px 12px;
	background: #2C2C2C;
	color: #fff;
	border-radius: 5px;
	line-height: 1;
	width: 32px;
	height: 32px;
	text-align: center;
}

/* 面包屑导航链接样式 */
.breadcrumb{
	margin:  20px auto;
    display: flex;
    gap: 10px;
    align-items: center;
}
.breadcrumb a,.breadcrumb-title,.breadcrumb-separator {
	text-decoration: none;
	color: #000;
	transition: all 0.3s ease;
	text-align: left;
	line-height: 24px;
	font-weight: 700;
	text-transform: uppercase;
	position: relative;
}

.breadcrumb a:hover {
	opacity: 0.8;
	transform: translateY(-3px);
}

/* 分页导航增强 - Pagination Enhancement */
.pagination-previous,
.pagination-next {
	padding: 4px 10px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.pagination-previous:hover,
.pagination-next:hover {
	background: #f5f5f5;
	transform: translateX(0);
}



.pagination-previous:hover .arrow-left {
	transform: translateX(-3px);
}

.pagination-next:hover .arrow-right {
	transform: translateX(3px);
}
/* 分页链接样式 */
.pagination {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	position: relative;
	gap: 0;
}
.pagination a {
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
	padding: 4px 10px;
	border-radius: 5px;
}

.pagination a:hover {
	transform: scale(1.1);
	background: #f5f5f5;
	transform: translateX(0);
}

/* 无产品提示 */
.no-products-found {
	text-align: center;
	padding: 60px 20px;
	width: 100%;
}

.no-products-found p {
	font-size: 18px;
	color: #666;
}
.arrow-right,.arrow-left {
	width: 12px;
	height: 12px;
	transition: transform 0.3s ease;
}
.arrow-left {
	transform: rotate(180deg);
}
.pagination-next,.pagination-previous{
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.pagination-next:hover .arrow-right {
	transform: translateX(3px) rotate(0deg);
}
.pagination-previous:hover .arrow-left {
	transform: translateX(-3px) rotate(180deg);
}
.pagination-gap {
	padding: 8px 16px;
}


/* Rating */
.vs-product-rating {
	display: flex;
	align-items: center;

	justify-content: left;
	gap: 2px;
	margin-bottom: 8px;
	font-size: 14px;
	color: #FF9900;
	line-height: 1;
}

.vs-stars {
	display: flex;
	gap: 0;
}

.vs-star-wrapper {
	position: relative;
	width: 16px;
	height: 16px;
	display: inline-block;
}

.vs-star-wrapper svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
}

.vs-star-empty {
	fill: #ddd;
}

.vs-star-filled {
	fill: #FF9900;
}

.vs-rating-count {
	font-size: 14px;
	color: var(--text-light);
}

.addresses.woocommerce-columns{
	display: grid;
    gap: 60px;
    grid-template-columns: repeat(2, 1fr);
}
/* ========================================
   响应式优化 - Responsive Optimization
======================================== */

@media (max-width: 1680px) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.container {
		padding: 0 30px;
	}
}

/* 平板及以下 - Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
	.container {
		padding: 0 20px;
	}
	
	.category-title {
		font-size: 24px;
		width: auto;
	}
	
	.section-title {
		font-size: 42px;
		margin-top: 50px;
		margin-bottom: 40px;
	}
	
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.breadcrumb {
		margin-left: 20px;
		gap: 8px;
	}
}

/* 手机横屏及竖屏 - Mobile Landscape and Portrait (max-width: 768px) */
@media (max-width: 768px) {
	.container {
		padding: 0 15px;
	}
	
	.category-title-section {
		padding: 20px 0 40px 0;
	}
	
	.category-title-wrapper {
		font-size: 36px;
	}
	
	.category-title {
		font-size: 20px;
		width: 100%;
	}
	
	.category-divider {
		width: 80px;
		height: 4px;
	}
	
	.category-desc-wrapper {
		width: 100%;
		height: auto;
		padding: 15px 0;
	}
	
	.section-title {
		font-size: 32px;
		margin-top: 40px;
		margin-bottom: 30px;
	}
	
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.product-card:hover .product-name {
		font-size: 24px;
	}
	
	.product-grid-small .product-card:hover .product-name {
		font-size: 28px;
	}
	
	.breadcrumb {
		margin-left: 15px;
		margin-top: 15px;
		gap: 6px;
		font-size: 14px;
	}
	
	.breadcrumb a,
	.breadcrumb-title,
	.breadcrumb-separator {
		font-size: 14px;
	}
	
	.pagination {
		gap: 12px;
		flex-wrap: wrap;
	}
	
	.pagination-next,
	.pagination-previous {
		padding: 8px 12px;
		gap: 6px;
	}
	
	.pagination-next .next,
	.pagination-previous .previous {
		display: none;
	}
	
	.arrow-right,
	.arrow-left {
		width: 14px;
		height: 14px;
	}
	
	.page-numbers.current {
		width: 32px;
		height: 32px;
		padding: 8px;
		font-size: 14px;
	}
	
	.nav-links {
		gap: 8px;
	}
	
	.addresses.woocommerce-columns{
		flex-direction: column;
		gap: 6vw;
    	display: flex;
	}
}

/* 小手机 - Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
	
	.category-title-wrapper {
		font-size: 28px;
	}
	
	.category-title {
		font-size: 18px;
	}
	
	.category-divider {
		width: 60px;
		height: 3px;
	}
	
	.section-title {
		font-size: 24px;
		margin-top: 30px;
		margin-bottom: 20px;
	}
	.product-grid{
		grid-template-columns: repeat(1, 1fr);
		justify-content: center;
        align-self: center;
	}
	
	.product-card:hover .product-name {
		font-size: 20px;
	}
	
	.product-grid-small .product-card:hover .product-name {
		font-size: 24px;
	}
	
	.breadcrumb {
		margin-left: 10px;
		margin-top: 12px;
		gap: 5px;
		font-size: 12px;
	}
	
	.breadcrumb a,
	.breadcrumb-title,
	.breadcrumb-separator {
		font-size: 12px;
	}
	
	.pagination {
		gap: 8px;
	}
	
	.pagination-next,
	.pagination-previous {
		padding: 8px;
		min-width: 36px;
		min-height: 36px;
	}
	
	.arrow-right,
	.arrow-left {
		width: 12px;
		height: 12px;
	}
	
	.page-numbers.current {
		width: 28px;
		height: 28px;
		padding: 6px;
		font-size: 12px;
	}
	
	.nav-links {
		gap: 6px;
	}
	
	.pagination-gap {
		padding: 6px 10px;
		font-size: 12px;
	}
	
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}
	
	.back-to-top img {
		width: 16px;
		height: 16px;
	}
	
	.back-to-top span {
		font-size: 8px;
	}
}