
/* 成功弹窗样式 */
.success-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	z-index: 1050;
	padding: 30px;
	text-align: center;
	max-width: 450px;
	width: 90%;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.success-modal.active {
	opacity: 1;
	visibility: visible;
}

.success-icon {
	width: 80px;
	height: 80px;
	background: #52c41a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.success-icon i {
	font-size: 42px;
	color: white;
}

.success-text {
	font-size: 22px;
	font-weight: 600;
	color: #333;
	margin-bottom: 25px;
}

.modal-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.continue-btn, .view-cart-btn {
	padding: 12px 28px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s;
}

.continue-btn {
	background: #f5f5f5;
	color: #666;
	border: 1px solid #e0e0e0;
}

.continue-btn:hover {
	background: #e8e8e8;
}

.view-cart-btn {
	background: linear-gradient(to right, #ff9000, #ff5000);
	color: white;
	border: none;
	box-shadow: 0 4px 15px rgba(255, 80, 0, 0.3);
}

.view-cart-btn:hover {
	background: linear-gradient(to right, #ff8000, #ff4000);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 80, 0, 0.4);
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1040;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}



@media (max-width: 768px) {
	.product-demo {
		flex-direction: column;
	}

	.modal-buttons {
		flex-direction: column;
	}

	.continue-btn, .view-cart-btn {
		width: 100%;
	}
}

/* 产品详情主体 */
.product-detail {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 产品图片区域 */
.product-images {
    display: flex;
    flex-direction: column;
}

.main-image-container {
    width: 100%;
    height: 550px;
    background-color: white;
    cursor: zoom-in;
    border-radius: 12px;
    overflow: visible;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
    transition: var(--transition);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin; /* 细滚动条（Firefox） */
    white-space: nowrap;   /* 防止内容换行 */
    max-width: calc(5 * 100px + 4 * 15px); /* 5个缩略图宽度 + 4个间距 */
}

.thumbnail {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.thumbnail:hover, .thumbnail.active {
    border: 2px solid var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 产品信息区域 */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-info h1 {
    font-family: 'Montserrat', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-brown);
}

.product-reference {
    color: var(--light-brown);
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--warm-gray);
}

.product-price {
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 30px;
}

.product-description {
    margin-bottom: 35px;
    color: var(--dark-brown);
    line-height: 1.8;
}

/* 颜色选择 */
.color-options {
    margin-bottom: 35px;
}

.color-options h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-brown);
}

.colors {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0 15px;
    scrollbar-width: thin;
    white-space: nowrap;
}

.color-option {
    width: 80px; /* 增大尺寸 */
    height: 80px;
    border-radius: 8px; /* 从圆形改为圆角矩形 */
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden; /* 确保图片不超出容器 */
}
/* 添加图片样式 */
.color-option img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 裁剪并居中显示图片 */
    display: block;
}
.color-option:hover, .color-option.selected {
    transform: scale(1.05); /* 略微放大效果 */
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--gold);
}

.color-option:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.color-option.selected:after {
    opacity: 1;
}

.color-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    padding: 3px 0;
    text-align: center;
    transform: none;
    opacity: 0.9;
    transition: var(--transition);
}

.color-option:hover .color-name {
    opacity: 1;
}

/* 购买区域 */
.purchase-options {
    margin-bottom: 40px;
}

.purchase-options h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-brown);
}

.lens-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.lens-option {
    padding: 10px 20px;
    border: 1px solid var(--warm-gray);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.lens-option:hover, .lens-option.selected {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quantity-selector h3 {
    margin-bottom: 0;
    margin-right: 20px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--warm-gray);
    border-radius: 30px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--dark-brown);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: var(--warm-gray);
    color: var(--gold);
}

.quantity-display {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--warm-gray);
    border-right: 1px solid var(--warm-gray);
    background: transparent;
    font-family: 'Montserrat', sans-serif;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.add-to-cart {
    flex: 1;
    padding: 15px 0;
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart i {
    margin-right: 10px;
}

.add-to-cart:hover {
    background-color: #b8942f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pre-order-btn {
    flex: 1;
    padding: 15px 0;
    background-color: #a4908d;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.pre-order-btn:hover {
    background-color: #2d1d1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.collected{
    background-color: var(--gold) !important;
}
.wishlist-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--warm-gray);
    background: transparent;
    color: #ca8266;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* 产品特性 */
.product-features {
    margin-bottom: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--warm-gray);
}

.product-features h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark-brown);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-item i {
    color: var(--gold);
    margin-right: 10px;
    margin-top: 3px;
}

/* 产品详情标签页 */
.product-tabs {
    margin-top: 60px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--warm-gray);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--light-brown);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}

.tab-btn:hover {
    color: var(--gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.specifications-table th,
.specifications-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--warm-gray);
}

.specifications-table th {
    width: 30%;
    font-weight: 500;
    color: var(--dark-brown);
}

.specifications-table td {
    color: var(--light-brown);
}

.care-instructions {
    line-height: 1.8;
}

.care-instructions p {
    margin-bottom: 15px;
}

.shipping-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.shipping-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.shipping-item i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 15px;
}

.shipping-item h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

/* 相关推荐 */
.related-products {
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid var(--warm-gray);
}

.related-products h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-brown);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card-image {
    height: 220px;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--cream);
}

.product-card-info {
    padding: 15px;
    text-align: center;
}

.product-card-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark-brown);
}

.product-card-info p {
    color: var(--light-brown);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-card-price {
    font-weight: 600;
    color: var(--gold);
    font-size: 18px;
}

/* 页脚样式 */
.footer {
    background: var(--dark-brown);
    color: var(--cream);
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-column p, .footer-column a {
    color: var(--warm-gray);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-right: 10px;
    color: var(--cream);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--light-brown);
    font-size: 14px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .main-image-container {
        height: 450px;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .add-to-cart, .buy-now {
        flex: 1 1 100%;
    }

    .wishlist-btn {
        flex: 1 1 100%;
        border-radius: 30px;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .product-info h1 {
        font-size: 28px;
    }

    .product-price {
        font-size: 26px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    .related-products h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 350px;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 50%;
        text-align: center;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 10px 15px;
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.magnifier {
	position: absolute;
	border: 1px solid #ccc;
	background-repeat: no-repeat;
	display: none;

	pointer-events: none;
	z-index: 100;
	 /* 固定放大镜在主图右侧 */
	left: 100% !important; /* 强制在主图右侧 */
	margin-left: 20px; /* 与主图保持间距 */
}

.main-image-container:hover .magnifier {
	display: block;

}

/* 下架状态样式 */
.offline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.375rem;
    cursor: not-allowed;
}

.controls-container {
    position: relative;
}

/* 禁用按钮样式 */
.btn-disabled {
    opacity: 0.65;
    pointer-events: none;
}