/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #1F4E79;; /* Orange Red */
    --primary-hover: #2c6fac;
    --text-color: #333;
    --border-color: #ddd;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Top Section: Layout --- */
.product-top {
    display: flex;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* --- Left: Gallery --- */
.product-gallery {
    flex: 1;
    max-width: 500px;
    position: relative;
}

/* 关键区域：主图容器 */
.main-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
    position: relative;
}

/* 关键区域：主图本身 */
.main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* --- Thumbnail List with Arrows --- */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.scroll-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 30px;
    height: 80px; /* Match thumbnail height approx */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.scroll-btn.prev {
    border-radius: 4px 0 0 4px;
    padding: 0;
}

.scroll-btn.next {
    border-radius: 0 4px 4px 0;
    padding: 0;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Enable horizontal scroll */
    scroll-behavior: smooth; /* Smooth scrolling */
    padding: 0 5px;
    /* Hide Scrollbar for Chrome/Safari/Opera */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.thumbnail-list::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

.thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* --- Right: Info --- */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.product-desc-short {
    color: #555;
    font-size: 15px;
}

.rating {
    color: #f1c40f;
    font-size: 18px;
    letter-spacing: 2px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #bed4e7;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.highlights {
    padding-left: 20px;
}

.highlights li {
    margin-bottom: 8px;
    list-style-type: disc;
    color: #444;
    font-size: 14px;
}

.product-info a.btn-quote {
    margin-top: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;

}
.product-info a.btn-quote:hover{
    color: #fff;
}

.btn-quote:hover {
    background-color: var(--primary-hover);
}
button:focus{
    outline: none;
}
/* --- Bottom Section: Tabs --- */
.product-bottom {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #fafafa;
}

.tab-btn {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    box-shadow: none;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s;
    text-transform: uppercase;
}

.tab-btn:hover {
    background: #f0f0f0;
    color: var(--primary-color);
    box-shadow: none;
    outline: none;
}

.tab-btn.active {
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
    background: var(--white);
    box-shadow: none;;
    outline: none;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

/* --- Tab Content Styles --- */

/* --- Lightbox (Modal) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .product-top {
        flex-direction: column;
        padding: 20px;
    }

    .main-image-container {
        height: 300px;
    }

    .tab-content {
        padding: 20px;
    }

    /* On mobile, maybe hide arrows and use native scroll or keep arrows smaller */
    .scroll-btn {
        width: 25px;
        height: 60px;
        font-size: 16px;
    }
    .tab-btn{
        padding:8px;
        font-size:12px;
    }
}