/* Product Detail Page Styles */

.breadcrumbs {
    margin-top: 15px;
    padding: 20px 0;
    font-size: 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #0b538b;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: #094a7a;
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--text-muted);
    font-weight: 400;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0 60px;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-main-image-clickable {
    cursor: pointer;
}

.image-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.product-manufacturer-model {
    font-size: 18px;
    color: var(--text-light);
    margin: 0;
}

.product-categories {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.category-badge {
    display: inline-block;
    padding: 0px 0px;
    background: transparent;
    color: var(--text-dark);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.category-badge:hover {
    text-decoration: underline;
}

.category-badge.subcategory {
    background: transparent;
    color: var(--text-dark);
}

.category-separator {
    color: var(--text-muted);
    margin: 0 2px;
    font-weight: 400;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.price-label {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-favourite-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: white;
    border: 2px solid #dc3545;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.15);
}

.btn-favourite-large:hover {
    background: #fff5f5;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.25);
}

.btn-favourite-large.active {
    background: white;
    color: #333;
    border-color: #dc3545;
}

.btn-favourite-large.active:hover {
    background: #fff5f5;
    border-color: #c82333;
}

.btn-favourite-large svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: #dc3545;
    stroke-width: 2;
}

.btn-favourite-large.active svg {
    fill: #dc3545;
    stroke: #dc3545;
}

.btn-favourite-large span {
    display: none;
}

.btn-call-large {
    display: inline-block;
    padding: 8px 20px;
    background: #0b538b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    text-align: center;
    width: fit-content;
}

.btn-call-large:hover {
    background: #094a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(11, 83, 139, 0.3);
}

.product-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.product-location svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.product-year {
    font-size: 16px;
    color: var(--text-dark);
}

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

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    max-height: calc(1.8em * 6);
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.description-content.expanded {
    max-height: 5000px;
}

.description-toggle {
    margin-top: 10px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.description-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.btn-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.similar-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

/* ============================================
   PRODUCT PAGE MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 15px 0;
        font-size: 13px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 15px;
        margin: 20px 0 40px;
        border-radius: 10px;
    }
    
    .product-images-section {
        gap: 12px;
    }

    .product-main-image {
        border-radius: 8px;
    }

    .product-thumbnails {
        gap: 8px;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
    
    .product-info-section {
        gap: 15px;
    }
    
    .product-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .product-manufacturer-model {
        font-size: 16px;
    }

    .product-categories {
        gap: 3px;
    }

    .category-badge {
        font-size: 12px;
    }
    
    .product-price {
        gap: 8px;
    }

    .price-label {
        font-size: 14px;
    }

    .price-value {
        font-size: 28px;
    }
    
    .product-actions {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 15px;
    }
    
    .btn-call-large {
        flex: 1 1 auto;
        min-width: 140px;
        padding: 10px 18px;
        font-size: 15px;
        text-align: center;
    }

    .btn-favourite-large {
        width: 44px;
        height: 44px;
    }
    
    .btn-back {
        width: 100%;
        text-align: center;
        padding: 10px 18px;
    }

    .product-location {
        font-size: 13px;
    }

    .product-year {
        font-size: 15px;
    }

    .product-description {
        margin-top: 15px;
        padding-top: 15px;
    }

    .product-description h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .description-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .description-toggle {
        padding: 7px 14px;
        font-size: 13px;
    }

    .similar-products-section {
        margin-top: 40px;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        padding: 12px 0;
        font-size: 12px;
    }

    .product-detail-container {
        padding: 15px 12px;
        margin: 15px 0 30px;
        gap: 20px;
    }

    .product-images-section {
        gap: 10px;
    }

    .product-thumbnails {
        gap: 6px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .product-info-section {
        gap: 12px;
    }
    
    .product-title {
        font-size: 20px;
    }

    .product-manufacturer-model {
        font-size: 14px;
    }

    .category-badge {
        font-size: 11px;
    }
    
    .product-price {
        gap: 6px;
    }

    .price-label {
        font-size: 13px;
    }

    .price-value {
        font-size: 24px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-call-large {
        width: 100%;
        min-width: 0;
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-favourite-large {
        width: 40px;
        height: 40px;
        align-self: flex-start;
    }

    .btn-favourite-large svg {
        width: 20px;
        height: 20px;
    }
    
    .btn-back {
        padding: 9px 16px;
        font-size: 13px;
    }

    .product-location {
        font-size: 12px;
    }

    .product-year {
        font-size: 14px;
    }

    .product-description {
        margin-top: 12px;
        padding-top: 12px;
    }

    .product-description h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .description-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .description-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }

    .similar-products-section {
        margin-top: 30px;
        padding-top: 25px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: calc(90vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.lightbox-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.lightbox-dot.active {
    background: white;
    width: 12px;
    height: 12px;
    border-color: white;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-height: calc(90vh - 80px);
        padding-bottom: 60px;
    }
    
    .lightbox img {
        max-height: calc(90vh - 80px);
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-dots {
        margin-top: 15px;
    }
}

