/* =========================================================================
   PRODUCT DETAIL PAGE - Advanced Designer Layout
   ========================================================================= */

/* -------------------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------------------- */
.pd-breadcrumb {
    background: var(--bg-dark);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.pd-breadcrumb-list a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.25s;
}

.pd-breadcrumb-list a:hover {
    color: var(--brand-orange);
}

.pd-breadcrumb-list i {
    font-size: 0.55rem;
    color: var(--text-gray);
    opacity: 0.4;
}

.pd-breadcrumb-list span {
    color: var(--brand-orange);
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   PRODUCT HERO
   ------------------------------------------------------------------------- */
.pd-hero {
    background: var(--bg-dark);
    padding: 60px 0 40px;
}

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

.pd-main-image {
    position: relative;
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-image-glow {
    position: absolute;
    width: 250px;
    height: 180px;
    background: radial-gradient(
        circle,
        rgba(255, 127, 80, 0.1) 0%,
        transparent 70%
    );
    filter: blur(50px);
    pointer-events: none;
    transition: 0.5s;
}

.pd-main-image:hover .pd-image-glow {
    background: radial-gradient(
        circle,
        rgba(255, 127, 80, 0.18) 0%,
        transparent 70%
    );
    transform: scale(1.3);
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    transition: 0.5s;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

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

.pd-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.pd-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--card-dark);
    border: 2px solid rgba(255, 255, 255, 0.04);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}

.pd-thumb:hover {
    border-color: rgba(255, 127, 80, 0.3);
}

.pd-thumb.active {
    border-color: var(--brand-orange);
}

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

/* --- Info --- */
.pd-info {
}

.pd-info-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pd-badge-cat,
.pd-badge-brand,
.pd-badge-warranty {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
}

.pd-badge-cat {
    background: rgba(255, 127, 80, 0.1);
    color: var(--brand-orange);
}

.pd-badge-brand {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-gray);
}

.pd-badge-warranty {
    background: rgba(0, 200, 100, 0.1);
    color: #00c864;
}

.pd-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.pd-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* --- Quick Specs --- */
.pd-quick-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

.pd-quick-spec {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-quick-spec:nth-child(even) {
    border-right: none;
}

.pd-quick-spec:nth-last-child(-n + 2) {
    border-bottom: none;
}

.pd-spec-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    opacity: 0.6;
    margin-bottom: 4px;
}

.pd-spec-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

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

.pd-btn-primary {
    flex: 1;
    padding: 14px 28px;
    font-size: 0.9rem;
}

.pd-btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
}

.pd-btn-icon:hover {
    border-color: rgba(255, 127, 80, 0.3);
    color: var(--brand-orange);
}

/* --- Trust --- */
.pd-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.pd-trust-item i {
    color: var(--brand-orange);
    font-size: 0.9rem;
}

/* --- Video --- */
.pd-video {
    margin-bottom: 0;
}

.pd-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    background: rgba(255, 127, 80, 0.06);
    border: 1px solid rgba(255, 127, 80, 0.15);
    border-radius: 12px;
    color: var(--brand-orange);
    text-decoration: none;
    transition: 0.3s;
}

.pd-video-btn:hover {
    background: rgba(255, 127, 80, 0.12);
    color: var(--brand-orange);
}

.pd-video-btn i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.pd-video-btn strong {
    display: block;
    font-size: 0.85rem;
}

.pd-video-btn span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-gray);
}

/* -------------------------------------------------------------------------
   TABS SECTION
   ------------------------------------------------------------------------- */
.pd-tabs-section {
    background: #f5f7fa;
    padding: 0 0 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.pd-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    margin-bottom: 40px;
}

.pd-tab-btn {
    padding: 18px 28px;
    background: transparent;
    border: none;
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    position: relative;
}

.pd-tab-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: 0.3s;
}

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

.pd-tab-btn.active {
    color: var(--brand-orange);
}

.pd-tab-btn.active::after {
    width: 60%;
}

.pd-tab-panel {
    display: none;
    animation: pdFadeIn 0.4s ease;
}

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

@keyframes pdFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pd-tab-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}

/* --- Description --- */
.pd-long-desc {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

.pd-sidebar-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.pd-sidebar-card i {
    font-size: 2rem;
    color: var(--brand-orange);
    margin-bottom: 12px;
}

.pd-sidebar-card h6 {
    color: #333;
    font-weight: 700;
}

.pd-sidebar-card p {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 18px;
}

/* --- Specs Table --- */
.pd-specs-table {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    max-width: 700px;
}

.pd-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pd-spec-row:last-child {
    border-bottom: none;
}

.pd-spec-row:nth-child(odd) {
    background: rgba(0, 0, 0, 0.015);
}

.pd-spec-key {
    font-size: 0.85rem;
    color: #555;
    text-transform: capitalize;
}

.pd-spec-val {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* --- Reviews --- */
.pd-review {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    max-width: 700px;
}

.pd-review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pd-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), #ff9a73);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pd-review-header strong {
    color: #333;
    font-size: 0.9rem;
    display: block;
}

.pd-review-stars {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.pd-review-stars i {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.1);
}

.pd-review-stars i.filled {
    color: #fbbf24;
}

.pd-review-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: #666;
}

.pd-review-text {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.pd-empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.pd-empty-state i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 12px;
}

/* --- Inquiry Form --- */
.pd-inquiry-form {
    max-width: 700px;
}

.pd-form-control {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: #333;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.pd-form-control:focus {
    border-color: rgba(255, 127, 80, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.05);
}

.pd-form-control::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.pd-form-control[readonly] {
    opacity: 0.6;
    cursor: default;
}

.pd-btn-submit {
    padding: 14px 36px;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   RELATED PRODUCTS
   ------------------------------------------------------------------------- */
.pd-related {
    background: #f5f7fa;
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.pd-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.pd-related-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: 8px;
}

.pd-related-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #222;
    letter-spacing: -1px;
}

.pd-related-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.35s;
    height: 100%;
}

.pd-related-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 127, 80, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pd-related-image {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.pd-related-image img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    transition: 0.4s;
}

.pd-related-card:hover .pd-related-image img {
    transform: scale(1.08);
}

.pd-related-body {
    padding: 0 20px 20px;
}

.pd-related-cat {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.pd-related-body h6 {
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 4px;
    transition: 0.3s;
}

.pd-related-card:hover .pd-related-body h6 {
    color: var(--brand-orange);
}

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .pd-hero {
        padding: 30px 0;
    }
    .pd-gallery {
        position: static;
    }
    .pd-main-image {
        min-height: 300px;
    }
    .pd-tabs-nav {
        gap: 0;
    }
    .pd-tab-btn {
        padding: 14px 18px;
        font-size: 0.8rem;
    }
    .pd-related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .pd-main-image {
        min-height: 240px;
        padding: 30px;
    }
    .pd-quick-specs {
        grid-template-columns: 1fr;
    }
    .pd-quick-spec:nth-child(even) {
        border-right: none;
    }
    .pd-quick-spec:nth-last-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .pd-quick-spec:last-child {
        border-bottom: none;
    }
}
