/* ===================================
   PRODUCT DETAIL PAGE STYLES - HOTOP
   =================================== */

/* Product Detail Section */
.product-detail-section {
    padding: 30px 0 80px;
    background-color: #fff;
    min-height: 100vh;
}

.product-detail-section .container {
    padding-left: 150px;
    padding-right: 150px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 16px;
}

.breadcrumb-link {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #FF1493;
}

.breadcrumb-separator {
    margin: 0 2px;
    color: #000;
}

.breadcrumb-current {
    color: #000;
    font-weight: normal;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Product Gallery */
.product-gallery {
    position: relative;
    display: flex;
    gap: 20px;
}

/* Thumbnail Gallery - Left Side */
.thumbnail-gallery {
    position: relative;
    width: 75px;
    height: 530px;
    flex-shrink: 0;
    overflow: hidden;
}

.thumbnail-track {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-track::-webkit-scrollbar {
    display: none;
}

.thumbnail-arrow {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: none;
}

.thumbnail-arrow-up {
    top: 6px;
}

.thumbnail-arrow-down {
    bottom: 6px;
}

.thumbnail-arrow:hover {
    opacity: 0.85;
}

.thumbnail-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.thumbnail-arrow img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.thumbnail-btn {
    width: 75px;
    height: 100px;
    min-height: 100px;
    flex: 0 0 100px;
    border: 3px solid transparent;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
    background: none;
    padding: 0;
    box-sizing: border-box;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.thumbnail-btn:hover {
    border-color: #FF1493;
    transform: scale(1.05);
}

.thumbnail-btn.active {
    border-color: #FF1493;
}

/* Main Image - Right Side */
.main-image {
    position: relative;
    width: 400px;
    height: 530px;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-icon:hover {
    background: #FF1493;
    transform: scale(1.1);
}

.wishlist-icon img {
    width: 24px;
    height: 24px;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.wishlist-icon:hover img {
    filter: brightness(0) invert(1);
}

.wishlist-icon.active {
    background: #FF1493;
}

.wishlist-icon.active img {
    filter: brightness(0) invert(1);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: #FF1493;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav img {
    width: 20px;
    height: 20px;
}

.gallery-nav:hover img {
    filter: brightness(0) invert(1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

/* Product Info Panel */
.product-info-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 50px;
    width: 970px;
}

.product-header-row {
    grid-column: 1 / -1; /* 占据整行 */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-info-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-info-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 0;
    flex: 1;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.rating-star {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-star .star {
    font-size: 22px;
    color: #FF1493;
}

.rating-number {
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.rating-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-icon {
    width: 22px;
    height: 22px;
}

.rating-count {
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

/* Product Variants Slider */
.product-variants {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.variant-nav {
    width: 18px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.variant-nav:hover {
    opacity: 0.7;
}

.variant-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.variant-nav img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.variants-wrapper {
    display: flex;
    gap: 5px;
    width: 440px;
    max-width: 440px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 0 0 440px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.variants-wrapper::-webkit-scrollbar {
    display: none;
}

.variant-item {
    width: 75px;
    height: 100px;
    min-width: 75px;
    min-height: 100px;
    flex: 0 0 75px;
    border: 3px solid transparent;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.variant-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-item:hover {
    border-color: #FF1493;
    transform: scale(1.05);
}

.variant-item.active {
    border-color: #FF1493;
}

/* Price Section */
.price-section {
    padding: 0;
    border: none;
    margin-bottom: 20px;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-icon {
    width: 48px;
    height: 48px;
}

.current-price {
    font-size: 48px;
    font-weight: 700;
    color: #000;
}

.old-price {
    font-size: 28px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

/* Purchase Controls Row */
.purchase-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f5f6f1;
    border-radius: 16px;
    padding: 0 20px;
    width: 230px;
    height: 70px;
    flex-shrink: 0;
    justify-content: space-around;
}

.quantity-btn {
    width: 40px;
    height: 60px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: #FF1493;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    opacity: 0.7;
}

.quantity-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: none;
    background: transparent;
    outline: none;
    color: #000;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* In Cart Button */
.btn-in-cart {
    flex: 1;
    height: 70px;
    background: #FF1493;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 30px;
    position: relative;
    white-space: nowrap;
}

.btn-in-cart::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 15px;
}

.btn-in-cart:hover {
    background: #E6007E;
}

/* Action Buttons */
.btn-add-cart,
.btn-buy-now {
    width: 480px;
    height: 70px;
    padding: 0 20px;
    font-size: 24px;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    white-space: nowrap;
}

.btn-add-cart {
    background: #FF1493;
    color: white;
}

.btn-add-cart:hover {
    background: #E6007E;
}

.btn-buy-now {
    background: #FF1493;
    color: white;
}

.btn-buy-now:hover {
    background: #E6007E;
}
/* Catalog Selector */
.catalog-selector {
    position: relative;
    flex-shrink: 0;
}

.catalog-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
    width: 240px;
    height: 50px;
    padding: 0 20px;
    background-color: #F5F5F5;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.catalog-dropdown-btn:hover {
    background-color: #E8E8E8;
}

.catalog-selector .dropdown-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(-45deg);
    margin-top: -4px;
    transition: transform 0.3s ease;
}

.catalog-selector.active .dropdown-arrow {
    transform: rotate(135deg);
    margin-top: 4px;
}

.catalog-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 450px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px 0;
}

.catalog-selector.active .catalog-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalog-dropdown-item {
    display: block;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: none;
}

.catalog-dropdown-item.first-item {
    font-size: 30px;
    border-bottom: 3px solid #033490;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.catalog-dropdown-item:hover {
    background-color: #F5F5F5;
    color: #000;
    padding-left: 35px;
}

/* Specifications */
.specifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 0;
    padding: 0;
    position: relative;
}

.spec-label {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
    background: white;
    padding-right: 8px;
    position: relative;
    z-index: 1;
    grid-column: 1;
}

.spec-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    border-bottom: 1px dotted #d0d0d0;
    z-index: 0;
}

.spec-value {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-align: left;
    flex-shrink: 0;
    background: white;
    padding-left: 8px;
    position: relative;
    z-index: 1;
    grid-column: 3;
}

/* Primary Purchase Button */
.btn-purchase {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #E6007E 0%, #FF1493 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.4);
}

.btn-purchase .arrow {
    font-size: 24px;
    font-weight: 700;
}

/* Product Description */
.product-description {
    border-top: 3px solid #033490;
    padding-top: 40px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    padding-bottom: 15px;

}

.description-content {
    font-size: 20px;
    line-height: 1.8;
    color: #666;
}

.description-content strong {
    color: #333;
}

.description-content ul {
    padding-left: 25px;
    margin: 15px 0;
}

.description-content li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-layout {
        gap: 40px;
    }

    .product-info-panel {
        width: 100%;
        gap: 20px 30px;
    }

    .product-title {
        font-size: 28px;
    }

    .current-price {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        max-width: 600px;
        margin: 0 auto;
    }

    .product-info-panel {
        grid-template-columns: 1fr;
    }

    .product-header-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .catalog-selector {
        align-self: stretch;
    }

    .catalog-dropdown-btn {
        width: 100%;
    }

    .catalog-dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    .product-info-left,
    .product-info-right {
        width: 100%;
    }

    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 20px 0 60px;
    }

    .product-detail-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 32px;
    }

    .old-price {
        font-size: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .specifications {
        padding: 15px;
    }

    .spec-item {
        flex-direction: column;
        gap: 5px;
    }

    .spec-value {
        text-align: left;
    }

    .purchase-controls {
        flex-direction: column;
        gap: 15px;
    }

    .quantity-section {
        width: 100%;
    }

    .btn-in-cart {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .breadcrumbs {
        font-size: 12px;
    }

    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 28px;
    }

    .old-price {
        font-size: 18px;
    }

    .price-icon {
        width: 32px;
        height: 32px;
    }

    .thumbnail-gallery {
        gap: 10px;
    }

    .thumbnail-btn {
        width: calc(25% - 7.5px);
    }

    .quantity-btn {
        width: 45px;
        height: 45px;
    }

    .quantity-input {
        width: 70px;
        height: 45px;
    }

    .btn-add-cart,
    .btn-buy-now,
    .btn-purchase {
        font-size: 15px;
        padding: 15px;
        height: 60px;
    }

    .section-title {
        font-size: 22px;
    }

    .description-content {
        font-size: 14px;
    }

    .catalog-dropdown-btn {
        font-size: 18px;
        height: 45px;
        padding: 0 15px;
    }

    .catalog-dropdown-menu {
        padding: 15px 0;
    }

    .catalog-dropdown-item {
        font-size: 18px;
        padding: 12px 20px;
    }

    .catalog-dropdown-item.first-item {
        font-size: 24px;
    }

    .variant-item {
        width: 60px;
        height: 80px;
    }
}
        font-size: 14px;
    }
}

/* Loading State */
.btn-add-cart.loading,
.btn-buy-now.loading,
.btn-purchase.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-add-cart.loading::after,
.btn-buy-now.loading::after,
.btn-purchase.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-add-cart.loading::after {
    border: 3px solid rgba(255, 20, 147, 0.3);
    border-top-color: #FF1493;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
