/* Product Detail Page Styles */

/* Product Detail Color Variables */
:root {
  --product-primary: #1a56db;
  --product-secondary: #f59e0b;
  --product-success: #10b981;
  --product-warning: #f59e0b;
  --product-danger: #ef4444;
  --product-light: #f9fafb;
  --product-dark: #1f2937;
  --product-border: #e5e7eb;
  --product-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --product-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --product-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --product-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Product Detail Spacing System */
:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 1rem 0;
    margin-top: 70px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--product-primary);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Product Detail Section */
.product-detail-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-white);
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Product Images Section */
.product-images-section {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.main-image {
    position: relative;
    width: 100%;
    background: var(--bg-light);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: zoom-in;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.zoom-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

.thumbnail-images {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    justify-content: center;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--primary-color);
    border-width: 3px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.review-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-description-short {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.product-specs {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.product-specs h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 0.75rem 0;
    font-size: 0.9375rem;
}

.specs-table td:first-child {
    color: var(--text-light);
    font-weight: 500;
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-inquire {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sample {
    flex: 1;
    min-width: 200px;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
}

.btn-sample:hover {
    background: var(--primary-color);
    color: white;
}

.product-features {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.product-features h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Product Tabs */
.product-tabs {
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.tab-pane h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tab-pane p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tab-pane ul {
    color: var(--text-light);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tab-pane li {
    margin-bottom: 0.5rem;
}

.detailed-specs {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.detailed-specs th,
.detailed-specs td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.detailed-specs th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    width: 30%;
}

.detailed-specs td {
    color: var(--text-light);
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-light);
    margin: 0;
}


/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.zoom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.zoom-close:hover {
    opacity: 0.7;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images-section {
        position: relative;
        top: 0;
    }

}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.75rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-inquire,
    .btn-sample {
        width: 100%;
    }

    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 0.875rem 1.5rem;
        white-space: nowrap;
    }

}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

}






