/* ===== Part Details Page - Professional Auto Parts ===== */

/* Header Spacer */
.pd-header-spacer {
    height: 64px;
    width: 100%;
}

/* Breadcrumb Bar */
.pd-breadcrumb-bar {
    padding: 14px 0;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.pd-breadcrumb-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-breadcrumb-bar > .container > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #09c509;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    padding: 4px 10px;
    border-radius: 4px;
}

.pd-breadcrumb-bar > .container > a:hover {
    color: #067c06;
    background: rgba(9, 197, 9, 0.08);
}

.pd-breadcrumb-bar > .container > a i {
    font-size: 0.7rem;
}

.pd-breadcrumb-path {
    font-size: 0.8rem;
    color: #888;
}

.pd-breadcrumb-path a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb-path a:hover {
    color: #333;
}

.pd-breadcrumb-path span {
    color: #333;
    font-weight: 600;
}

/* Part Number Strip */
.pd-partno-strip {
    padding: 12px 0;
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.pd-partno-strip .container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.pd-partno-label {
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 3px;
}

.pd-partno-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
}

.pd-partno-status.available {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

.pd-partno-status.unavailable {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.pd-partno-brand {
    color: #666;
    margin-left: auto;
}

.pd-partno-brand strong {
    color: #333;
}

/* Product Area */
.pd-product-area {
    padding: 36px 0 52px;
    background: #fff;
}

.pd-product-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery */
.pd-gallery-section {
    position: sticky;
    top: 84px;
}

.pd-main-image-wrap {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
}

.pd-main-image-wrap img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pd-main-image-wrap:hover img {
    transform: scale(1.02);
}

.pd-image-strip {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.pd-image-strip::-webkit-scrollbar {
    height: 4px;
}

.pd-image-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.pd-strip-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    background: #fafafa;
    transition: all 0.2s;
}

.pd-strip-thumb:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.pd-strip-thumb.active {
    border-color: #09c509;
    box-shadow: 0 0 0 2px rgba(9, 197, 9, 0.15);
}

.pd-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buy Box */
.pd-buybox {
    padding: 4px 0 24px;
}

.pd-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.pd-product-model {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 24px;
}

.pd-product-model span {
    color: #333;
    font-weight: 600;
}

/* Price Display */
.pd-price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fdf0 100%);
    border: 1px solid #dcfce7;
    border-radius: 6px;
    margin-bottom: 26px;
}

.pd-current-price {
    font-size: 1.875rem;
    font-weight: 800;
    color: #09c509;
    letter-spacing: -0.02em;
}

.pd-price-note {
    font-size: 0.8rem;
    color: #888;
}

/* Spec Table */
.pd-spec-table {
    margin-bottom: 26px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.pd-spec-table table {
    width: 100%;
    border-collapse: collapse;
}

.pd-spec-table tr:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.pd-spec-table tr:nth-child(even) {
    background: #fafafa;
}

.pd-spec-table th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    width: 130px;
    background: #f5f5f5;
    border-right: 1px solid #f0f0f0;
}

.pd-spec-table td {
    font-size: 0.88rem;
    color: #333;
    font-weight: 500;
    padding: 12px 14px;
}

.pd-available {
    color: #16a34a;
    font-weight: 600;
}

.pd-unavailable {
    color: #ef4444;
    font-weight: 600;
}

/* Buy Actions */
.pd-buy-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.pd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-btn-cart {
    background: #09c509;
    color: #fff;
}

.pd-btn-cart:hover {
    background: #07a807;
    box-shadow: 0 4px 14px rgba(9, 197, 9, 0.3);
    transform: translateY(-1px);
}

.pd-btn-cart:active {
    transform: translateY(0);
}

.pd-btn-whatsapp {
    background: #fff;
    color: #25d366;
    border: 2px solid #25d366;
}

.pd-btn-whatsapp:hover {
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
    transform: translateY(-1px);
}

/* Delivery Info */
.pd-delivery-info {
    padding-top: 22px;
    border-top: 1px solid #eee;
}

.pd-delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.pd-delivery-item i {
    font-size: 1.15rem;
    color: #09c509;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.pd-delivery-item strong {
    display: block;
    font-size: 0.83rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 2px;
}

.pd-delivery-item span {
    font-size: 0.76rem;
    color: #888;
    line-height: 1.4;
}

/* Details Section with Tabs */
.pd-details-section {
    padding: 48px 0;
    background: #f9f9f9;
    border-top: 1px solid #e8e8e8;
}

.pd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
}

.pd-tab {
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-tab:hover {
    color: #333;
}

.pd-tab.active {
    color: #09c509;
    border-bottom-color: #09c509;
}

.pd-tab-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 28px;
}

.pd-tab-pane {
    display: none;
}

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

.pd-tab-pane p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.pd-specs-full {
    width: 100%;
    border-collapse: collapse;
}

.pd-specs-full tr:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.pd-specs-full tr:nth-child(even) {
    background: #fafafa;
}

.pd-specs-full th {
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    padding: 12px 16px;
    background: #f5f5f5;
    width: 160px;
}

.pd-specs-full td {
    font-size: 0.88rem;
    color: #555;
    padding: 12px 16px;
}

/* Related Section */
.pd-related-section {
    padding: 48px 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.pd-related-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 26px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pd-related-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.25s;
}

.pd-related-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
    transform: translateY(-3px);
}

.pd-related-image {
    background: #fafafa;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    position: relative;
}

.pd-related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-rel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 3px;
}

.pd-rel-badge.in-stock {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.pd-rel-badge.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.pd-related-info {
    padding: 14px;
    border-top: 1px solid #eee;
}

.pd-related-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-related-price {
    font-size: 1rem;
    font-weight: 700;
    color: #09c509;
}

/* Tablet */
@media (max-width: 900px) {
    .pd-product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pd-gallery-section {
        position: static;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-partno-strip .container {
        gap: 12px;
    }

    .pd-partno-brand {
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .pd-header-spacer {
        height: 56px;
    }

    .pd-breadcrumb-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pd-partno-strip .container {
        flex-direction: column;
        gap: 8px;
    }

    .pd-partno-brand {
        margin-left: 0;
    }

    .pd-product-area {
        padding: 24px 0 36px;
    }

    .pd-product-title {
        font-size: 1.35rem;
    }

    .pd-current-price {
        font-size: 1.5rem;
    }

    .pd-main-image-wrap {
        min-height: 280px;
        padding: 16px;
    }

    .pd-spec-table th {
        width: 110px;
        font-size: 0.7rem;
    }

    .pd-spec-table td {
        font-size: 0.82rem;
    }

    .pd-btn {
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pd-tabs {
        overflow-x: auto;
    }

    .pd-tab {
        white-space: nowrap;
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    .pd-tab-content {
        padding: 20px;
    }

    .pd-specs-full th {
        width: 120px;
    }
}
