/* Product Detail Page */
.breadcrumb {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 14px;
    margin-bottom: 0;
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #f5a623;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail {
    padding: 0;
}

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

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-top: 0;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Main Image Carousel */
.main-image-carousel {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 20px;
}

.main-image-container img.active-main-image {
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(245, 166, 35, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Thumbnail Carousel */
.thumbnail-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnail-wrapper {
    overflow: hidden;
    flex: 1;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.thumbnail {
    min-width: calc(25% - 8px);
    height: 100px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.thumbnail:hover {
    border-color: #f5a623;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: #f5a623;
    border-width: 3px;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
}

.thumbnail-nav {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    z-index: 1;
}

.thumbnail-nav:hover {
    background: rgba(245, 166, 35, 0.9);
    transform: scale(1.1);
}

.thumbnail-prev {
    margin-right: 5px;
}

.thumbnail-next {
    margin-left: 5px;
}

.product-info {
    padding: 20px 0;
    text-align: left;
}

.product-info .product-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left;
}

.product-info .product-price {
    font-size: 24px;
    color: #f5a623;
    font-weight: bold;
    margin-bottom: 25px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 15px;
}

.product-specs {
    list-style: none;
    padding-left: 0;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.product-specs li:before {
    content: "•";
    color: #f5a623;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #f5a623;
    color: white;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    -moz-appearance: textfield;
    /* Firefox */
    appearance: textfield;
}

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

.qty-input:focus {
    outline: none;
}

.btn-add-to-cart {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

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

.btn-wishlist {
    background: transparent;
    border: 2px solid #ddd;
    padding: 10px 25px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.product-meta {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-meta a {
    color: #f5a623;
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

/* Product Tabs */
.product-tabs {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: #f5a623;
}

.tab-btn.active:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f5a623;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.tab-pane h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #333;
}

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

.tab-pane p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Review Form */
.review-form {
    max-width: 600px;
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f5a623;
}

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

.star-rating span {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
}

.star-rating span:hover,
.star-rating span.active {
    color: #f5a623;
}

.btn-submit {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #f5a623;
}

/* Related Products */
.related-products {
    margin-top: 80px;
}

.related-products h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}
