/* ── Breadcrumb ── */
.breadcrumb {
    padding: 15px 60px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #e94560;
}

.breadcrumb i {
    font-size: 10px;
    color: #999;
}

.breadcrumb span {
    color: #e94560;
    font-weight: bold;
}

/* ── Loading ── */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
}

/* ── Product Detail Section ── */
.product-detail {
    padding: 50px 60px;
    background: white;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    display: none;
}

.product-detail-content.visible {
    display: grid;
}

/* ── Product Gallery ── */
.product-gallery {
    position: sticky;
    top: 80px;
}

.main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.main-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.main-image img:hover {
    transform: scale(1.1);
}

.detail-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e94560;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
}

/* ── Thumbnails ── */
.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: #e94560;
    transform: scale(1.05);
}

/* ── Product Detail Info ── */
.detail-category {
    font-size: 13px;
    color: #e94560;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 10px 0;
    line-height: 1.3;
}

/* ── Detail Rating ── */
.detail-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.in-stock {
    color: #28a745;
    font-weight: bold;
}

/* ── Detail Price ── */
.detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.detail-current-price {
    font-size: 32px;
    font-weight: 800;
    color: #e94560;
}

.detail-old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.detail-discount {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
}

/* ── Detail Description ── */
.detail-description {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

/* ── Detail Colors & Sizes ── */
.detail-colors,
.detail-sizes,
.detail-quantity {
    margin-bottom: 20px;
}

.detail-colors h4,
.detail-sizes h4,
.detail-quantity h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

/* ── Detail Buttons ── */
.detail-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.detail-add-cart {
    flex: 1;
    padding: 16px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-add-cart:hover {
    background: #c73652;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233,69,96,0.3);
}

.detail-wishlist {
    width: 55px;
    height: 55px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.detail-wishlist:hover {
    background: #e94560;
    color: white;
}

/* ── Detail Features ── */
.detail-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 24px;
    color: #e94560;
    width: 30px;
}

.feature-item h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* ── Related Products ── */
.related-products {
    padding: 50px 60px;
    background: #f8f9fa;
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .product-detail-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    }

    .product-gallery {
        position: static;
    }

    .main-image img {
        height: 300px;
    }

    .product-detail {
        padding: 30px 20px;
    }

    .related-products {
        padding: 30px 20px;
    }

    .breadcrumb {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .product-detail-info h1 {
        font-size: 22px;
    }

    .detail-current-price {
        font-size: 24px;
    }

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

    .detail-wishlist {
        width: 100%;
    }
}