/* Product Detail Page - Dark Theme Redesign (TEMA SEAL Style) */

/* Layout & Container */
.product-details-area {
    background-color: #1a1a1a;
    /* Dark background matching reference */
    color: #e0e0e0;
    padding-top: 50px;
    /* REMOVED: Breadcrumb now handles the top spacing */
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Flex Layout */
.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Left Column: Gallery */
.gallery-column {
    flex: 1;
    min-width: 300px;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.thumb-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--color-primary);
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Info */
.info-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* Header Row */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-category {
    font-size: 1.2rem;
    color: var(--color-primary);
    /* Cyan/Theme color */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-pd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    /* Fixed height for alignment */
    padding: 0 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-pd-cart {
    background-color: #d8d8d8;
    color: #111;
    border: none;
}

.btn-pd-cart:hover {
    background-color: #fff;
}

.btn-pd-quote {
    background-color: transparent;
    border: 1px solid #666;
    color: #ccc;
}

.btn-pd-quote:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Force Add to Cart button to match btn-pd dimensions in this area */
.product-details-area .btn-add-cart {
    height: 40px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Product Title */
.pd-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Short Description */
.pd-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 25px;
    border-left: 3px solid #333;
    padding-left: 15px;
}

/* Meta Data */
.pd-meta {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #bbb;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-group {
    display: flex;
    align-items: center;
}

.meta-label {
    color: #777;
    margin-right: 5px;
}

.meta-val {
    color: #fff;
    font-weight: 600;
}

/* Tabs Interface (Integrated) */
.pd-tabs {
    margin-top: 30px;
    /* Changed from auto to fixed spacing to pull it up */
    background: transparent;
}

.pd-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.pd-tab-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    /* Large text like reference */
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    /* Gradient text effect for passive state? No, keep simple like Ref */
}

.pd-tab-btn:hover {
    color: #999;
}

.pd-tab-btn.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.pd-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Tab Content */
.pd-tab-content {
    display: none;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.7;
    animation: fadeIn 0.5s;
}

.pd-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Document List */
.pd-doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-doc-item {
    display: flex;
    align-items: center;
    background: #252525;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #ccc;
    transition: background 0.3s;
}

.pd-doc-item:hover {
    background: #333;
    color: #fff;
}

.pd-doc-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--color-primary);
}

/* Responsiveness */
@media (max-width: 991px) {
    .pd-title {
        font-size: 2rem;
    }

    .product-details-area {
        padding-top: 120px;
    }
}

/* Mobile specific spacing fixes */
@media (max-width: 768px) {
    .product-detail-container {
        gap: 15px;
        /* Reduced from 40px */
    }

    .gallery-column {
        min-width: 100%;
    }

    .main-image-wrapper {
        margin-bottom: 10px;
        /* Reduced from 15px */
    }

    .thumb-gallery {
        margin-bottom: 10px;
    }

    .info-column {
        min-width: 100%;
    }

    .header-row {
        margin-bottom: 10px;
        /* Reduced from 20px */
        gap: 10px;
        /* Reduced from 20px */
    }

    .pd-title {
        font-size: 1.5rem;
        /* Smaller on mobile */
        margin-bottom: 10px;
        /* Reduced from 20px */
    }

    .pd-description {
        margin-bottom: 15px;
        /* Reduced from 25px */
        font-size: 0.9rem;
    }

    .pd-meta {
        margin-bottom: 15px;
        /* Reduced from 30px */
    }

    .pd-tabs {
        margin-top: 15px;
        /* Reduced from 30px */
    }

    .product-details-area {
        padding-top: 80px;
        /* Reduced from 120px */
        padding-bottom: 40px;
        /* Reduced from 80px */
    }
}