/* ==================== Product Detail Page Styles ==================== */
/* SEO & Performance Optimized - Mobile First Responsive */

/* Breadcrumb Section */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 1rem 0;
}

.breadcrumb-custom {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #666;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.breadcrumb-custom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-custom a:hover {
    color: #d65e0f;
}

.breadcrumb-custom i {
    font-size: 0.7rem;
    color: #999;
}

/* Product Detail */
.product-detail {
    padding: 30px 0 50px;
    background: #fff;
}

.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    width: 100%;
    height: 380px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f8f8;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.01);
}

.thumbnail-images {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail-images::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    background: #f8f8f8;
    padding: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Product Info */
.product-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.product-category-tag {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s;
}

.product-category-tag:hover {
    color: #d65e0f;
}

.product-detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.stars {
    color: #f9d72d;
    font-size: 0.75rem;
}

.stars i {
    margin-right: 1px;
}

.rating-text {
    color: #888;
    font-size: 0.8rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.stock-status.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stock-status.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.product-contact-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.contact-text {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.product-detail-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

/* Product Features */
.product-features-list {
    margin-bottom: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.feature-text {
    color: #444;
    font-weight: 500;
}

/* Order Buttons */
.btn-order-large {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-order-large:hover {
    background-color: #d65e0f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 115, 27, 0.35);
    color: white;
}

.btn-contact-outline {
    width: 100%;
    padding: 0.75rem;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-contact-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Product Tabs */
.product-tabs-section {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 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: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    background: white;
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-top: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-content h3 {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tab-content h4 {
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.tab-content p {
    color: #555;
    line-height: 1.7;
    font-size: 0.9rem;
}

.tab-content ul {
    color: #555;
    padding-left: 1.25rem;
    line-height: 1.8;
    font-size: 0.9rem;
}

.tab-content ul li {
    margin-bottom: 0.3rem;
}

/* Specs Table */
.specs-table {
    width: 100%;
    font-size: 0.9rem;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 0.75rem 0.5rem;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
}

.specs-table td:last-child {
    color: #555;
}

/* Similar Products */
.similar-products-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.section-title-lg {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.similar-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    height: 100%;
    text-decoration: none;
    display: block;
}

.similar-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.similar-product-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.similar-product-card__content {
    padding: 1rem;
}

.similar-product-card__category {
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.similar-product-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.3rem 0;
    color: #1a1a1a;
    line-height: 1.4;
}

.similar-product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* Order Modal */
.order-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.order-modal.show {
    display: flex;
}

.order-modal__content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.order-modal__close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.75rem;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.3s;
}

.order-modal__close:hover {
    color: var(--primary-color);
}

.order-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #444;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(238, 115, 27, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit-order {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-order:hover {
    background-color: #d65e0f;
}

/* Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.image-lightbox.show {
    display: flex;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-lightbox__close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.image-lightbox__close:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50%;
}

.lightbox-nav:hover {
    background: var(--primary-color);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* ==================== RESPONSIVE ==================== */

/* Large devices (desktops) */
@media (min-width: 992px) {
    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-contact-info {
        padding: 0.875rem;
    }

    .contact-text {
        font-size: 0.85rem;
    }

    .main-image {
        height: 420px;
    }
}

/* Medium devices (tablets) */
@media (max-width: 991px) {
    .product-gallery {
        position: static;
        margin-bottom: 1.5rem;
    }

    .main-image {
        height: 350px;
    }

    .product-info-card {
        padding: 1.25rem;
    }

    .tabs-nav {
        gap: 0;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Small devices (landscape phones) */
@media (max-width: 767px) {
    .product-detail {
        padding: 20px 0 35px;
    }

    .main-image {
        height: 280px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-detail-title {
        font-size: 1.25rem;
    }

    .product-info-card {
        padding: 1rem;
    }

    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .tab-btn.active::after {
        display: none;
    }

    .tab-btn.active {
        background: rgba(238, 115, 27, 0.08);
        color: var(--primary-color);
    }

    .tab-content {
        padding: 1rem;
        border-radius: 0 0 8px 8px;
    }

    .section-title-lg {
        font-size: 1.25rem;
    }

    .similar-product-card__image {
        height: 150px;
    }

    .similar-products-section {
        padding: 30px 0;
    }

    .image-lightbox__close {
        right: 15px;
        top: 15px;
        font-size: 2rem;
    }

    .lightbox-nav {
        font-size: 1.25rem;
        padding: 0.5rem;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }
}

/* Extra small devices (phones) */
@media (max-width: 575px) {
    .breadcrumb-custom {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .breadcrumb-custom i {
        font-size: 0.6rem;
    }

    .product-detail-title {
        font-size: 1.15rem;
    }

    .btn-order-large {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .btn-contact-outline {
        font-size: 0.85rem;
        padding: 0.65rem;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .order-modal__content {
        padding: 1.25rem;
    }

    .order-modal__title {
        font-size: 1.1rem;
    }

    .similar-product-card__content {
        padding: 0.75rem;
    }

    .similar-product-card__title {
        font-size: 0.85rem;
    }

    .similar-product-card__price {
        font-size: 1rem;
    }
}