/* Product Detail Page */
.product-detail {
    margin-top: 80px;
    padding: 3rem 4rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: #5a6c7d;
}

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

.breadcrumb a:hover {
    color: #203a43;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

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

.badge-detail {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #2c5364;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #2c5364;
}

.thumbnail.active {
    border-color: #2c5364;
}

/* Product Details */
.product-details {
    padding: 1rem 0;
}

.product-title {
    font-size: 3rem;
    font-weight: 300;
    color: #2c5364;
    margin-bottom: 1rem;
    letter-spacing: 0.02rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.reviews-count {
    color: #5a6c7d;
    font-size: 0.95rem;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c5364;
}

.original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #ff4757;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 2.5rem;
}

/* Options */
.product-options {
    margin-bottom: 2.5rem;
}

.option-group {
    margin-bottom: 2rem;
}

.option-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c5364;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-selector button {
    width: 45px;
    height: 45px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: #2c5364;
    transition: background 0.3s;
}

.quantity-selector button:hover {
    background: #f8f9fa;
}

.quantity-selector input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 1rem;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.size-options {
    display: flex;
    gap: 0.75rem;
}

.size-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.size-btn:hover {
    border-color: #2c5364;
}

.size-btn.active {
    background: #2c5364;
    color: #fff;
    border-color: #2c5364;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-add-cart {
    flex: 1;
    padding: 1.2rem 2rem;
    background: #2c5364;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: #203a43;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 83, 100, 0.3);
}

.btn-add-cart svg {
    width: 20px;
    height: 20px;
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border: 1px solid #2c5364;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    background: #2c5364;
    color: #fff;
}

.btn-wishlist svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Features */
.product-features {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: #5a6c7d;
}

.feature-item svg {
    width: 22px;
    height: 22px;
    color: #2c5364;
}

/* Tabs */
.product-tabs {
    margin: 4rem 0;
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1.2rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #5a6c7d;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #2c5364;
}

.tab-btn.active {
    color: #2c5364;
    border-bottom-color: #2c5364;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel h3 {
    font-size: 2rem;
    font-weight: 300;
    color: #2c5364;
    margin-bottom: 1.5rem;
}

.tab-panel h4 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #2c5364;
    margin: 2rem 0 1rem;
}

.tab-panel p {
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 1.5rem;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
}

.tab-panel ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #5a6c7d;
}

.tab-panel ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5364;
    font-weight: bold;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table td {
    padding: 1.2rem 1rem;
    color: #5a6c7d;
}

.specs-table td:first-child {
    font-weight: 500;
    color: #2c5364;
    width: 30%;
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-overview {
    text-align: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: 300;
    color: #2c5364;
    margin-bottom: 0.5rem;
}

.rating-overview .rating-stars {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: #5a6c7d;
    font-size: 0.95rem;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #5a6c7d;
}

.bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #ffd700;
}

/* Review Items */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-info strong {
    color: #2c5364;
    font-weight: 500;
}

.verified {
    margin-left: 0.75rem;
    color: #28a745;
    font-size: 0.85rem;
}

.review-rating {
    color: #ffd700;
}

.review-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.review-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c5364;
    margin-bottom: 0.75rem;
}

.review-item p {
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 1.5rem;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.review-helpful span {
    color: #5a6c7d;
    font-size: 0.9rem;
}

.review-helpful button {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.review-helpful button:hover {
    border-color: #2c5364;
    background: #f8f9fa;
}

/* Care Instructions */
.care-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.care-section h4 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #2c5364;
    margin-bottom: 1rem;
}

/* Related Products */
.related-products {
    margin: 6rem 0;
}

.related-products h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c5364;
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.related-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #2c5364;
    margin: 1rem 1.5rem 0.5rem;
}

.related-card p {
    color: #5a6c7d;
    font-size: 0.9rem;
    margin: 0 1.5rem 1rem;
}

.related-card .price {
    display: block;
    font-size: 1.3rem;
    font-weight: 300;
    color: #2c5364;
    margin: 0 1.5rem 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 2rem 1.5rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 1rem 1.5rem;
        white-space: nowrap;
    }

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

    .btn-wishlist {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
