/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #8b1a1a 0%, #c41e1e 50%, #de8d1e 100%);
    padding: 18px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(237, 12, 12, 0.3);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li::after {
    content: '›';
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 400;
}

.breadcrumb li:last-child {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #ffffff;
    font-weight: 600;
}

/* Product Detail Page */
.product-detail-page {
    padding: 40px 0 60px;
}

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

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

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

.main-image .placeholder-image {
    padding-top: 100%;
}

.main-image .product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.zoom-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumb {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary-color);
}

.thumb .placeholder-image {
    padding-top: 100%;
}

/* Product Summary */
.product-summary {
    padding-top: 10px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    color: #ddd;
    font-size: 18px;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.product-price-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.prices {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
}

.original-price {
    font-size: 24px;
    color: var(--text-light);
    text-decoration: line-through;
}

.save-amount {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.product-short-desc {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-color);
}

.shipping-info {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.bonus-gifts {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6e6 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.bonus-gifts h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.bonus-gifts ul {
    list-style: none;
    padding-left: 0;
}

.bonus-gifts li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-color);
}

.bonus-gifts li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 52px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 70px;
    height: 52px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.btn-add-to-cart {
    flex: 1;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0.5px, transparent 0.5px),
        radial-gradient(circle at 60% 70%, rgba(0,0,0,0.1) 0.5px, transparent 0.5px),
        radial-gradient(circle at 45% 20%, rgba(255,255,255,0.1) 0.5px, transparent 0.5px),
        radial-gradient(circle at 80% 50%, rgba(0,0,0,0.08) 0.5px, transparent 0.5px),
        radial-gradient(circle at 15% 80%, rgba(255,255,255,0.12) 0.5px, transparent 0.5px),
        linear-gradient(135deg, var(--primary-color) 0%, #c41e1e 100%);
    background-size: 3px 3px, 4px 4px, 2px 2px, 3px 3px, 2.5px 2.5px, 100%;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-add-to-cart svg {
    flex-shrink: 0;
}

.btn-add-to-cart:hover {
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0.5px, transparent 0.5px),
        radial-gradient(circle at 60% 70%, rgba(0,0,0,0.12) 0.5px, transparent 0.5px),
        radial-gradient(circle at 45% 20%, rgba(255,255,255,0.15) 0.5px, transparent 0.5px),
        radial-gradient(circle at 80% 50%, rgba(0,0,0,0.1) 0.5px, transparent 0.5px),
        radial-gradient(circle at 15% 80%, rgba(255,255,255,0.18) 0.5px, transparent 0.5px),
        linear-gradient(135deg, var(--secondary-color) 0%, #f59e0b 100%);
    background-size: 3px 3px, 4px 4px, 2px 2px, 3px 3px, 2.5px 2.5px, 100%;
    transform: translateY(-1px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.25);
}

.btn-buy-now {
    flex: 1;
    background: var(--accent-color);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
}

.btn-buy-now:hover {
    background: #c90a0a;
}

.product-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.meta-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 90px;
}

.meta-value {
    color: var(--text-light);
}

.meta-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-item a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 60px;
}

.tab-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.tab-pane h4 {
    font-size: 18px;
    margin: 20px 0 12px;
}

.tab-pane ul {
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.product-specs {
    width: 100%;
    border-collapse: collapse;
}

.product-specs tr {
    border-bottom: 1px solid var(--border-color);
}

.product-specs td {
    padding: 15px 10px;
}

.product-specs td:first-child {
    font-weight: 600;
    color: var(--text-color);
    width: 200px;
}

.product-specs td:last-child {
    color: var(--text-light);
}

/* Reviews */
.reviews-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

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

.average-rating {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.total-reviews {
    color: var(--text-light);
    margin-top: 10px;
}

.reviews-list {
    margin-bottom: 40px;
}

.review-item {
    padding: 25px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-color);
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.review-rating {
    margin-bottom: 12px;
}

.review-content p {
    color: var(--text-color);
    line-height: 1.8;
}

.review-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.review-form h4 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.rating-input {
    display: flex;
    gap: 5px;
}

.star-input {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-input:hover,
.star-input.selected {
    color: #ffc107;
}

/* Related Products */
.related-products {
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
    }

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

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

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

    .product-actions {
        flex-wrap: wrap;
    }

    .btn-add-to-cart,
    .btn-buy-now {
        flex: 1 1 100%;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

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