.product-detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2.5rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: #475569;
}

/* === PRODUCT LAYOUT === */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 5rem;
}

/* === GALLERY === */
.gallery-main {
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.gallery-main:hover img {
    transform: scale(1.04);
}

.gallery-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #22c55e;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    background: #f1f5f9;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* === PRODUCT INFO === */
.product-info-col {
    position: sticky;
    top: 96px;
}

.product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.product-category-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.product-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    /*font-weight: 800;*/
    color: var(--secondary);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.product-desc {
    color: #64748b;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

/* Specs mini grid */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.spec-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.spec-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.spec-value {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.action-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45);
}

.action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s;
}

.action-secondary:hover {
    border-color: var(--secondary);
    background: #f8fafc;
}

/* Trust indicators */
.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.9rem 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.trust-icon {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.3;
}

/* === QUOTE FORM PANEL === */
.quote-panel {
    background: var(--secondary);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    scroll-margin-top: 110px;
}

.quote-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
}

.quote-panel-header {
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.quote-panel-header h3 {
    font-size: 1.5rem;
    /*font-weight: 800;*/
    color: var(--primary-bg);
    margin-bottom: 0.4rem;
}

.quote-panel-header p {
    color: #64748b;
    font-size: 0.85rem;
}

.form-field {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.form-field input,
.form-field textarea,
.form-row input {
    width: 100%;
    background: var(--secondary-light);
    border: 1.5px solid #334155;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: white;
    font-size: 0.875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-row input:focus {
    border-color: var(--primary);
}

.form-field input::placeholder,
.form-row input::placeholder,
.form-field textarea::placeholder {
    color: #475569;
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    padding: 0.95rem;
    color: white;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
    position: relative;
    z-index: 1;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45);
}

.form-disclaimer {
    text-align: center;
    color: #475569;
    font-size: 0.72rem;
    margin-top: 0.85rem;
    position: relative;
    z-index: 1;
}

/* === RELATED PRODUCTS === */
.related-section {
    margin-top: 5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
}

.related-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    text-decoration: none;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease, border-color 0.3s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) translateZ(8px);
    border-color: var(--primary-border);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.12), 0 6px 12px rgba(0, 0, 0, 0.04);
}

.related-card-img {
    position: relative;
    height: 160px;
    background: #f8fafc;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-img img {
    transform: scale(1.08) translateZ(12px);
}

.related-card-body {
    padding: 1rem 1.25rem;
}

.related-card-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info-col {
        position: static;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .trust-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* === QUOTE MODAL POPUP SYSTEM === */
.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quote-modal-content {
    background: #0b1329;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 560px;
    position: relative;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    max-height: 90vh;
    overflow-y: auto;
}

.quote-modal-overlay.active .quote-modal-content {
    transform: translateY(0) scale(1);
}

.quote-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.6rem;
    width: 38px;
    height: 38px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.25s ease;
    z-index: 10;
}

.quote-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-quote-panel {
    background: transparent;
    border-radius: 0;
    padding: 2.25rem 2rem 2rem;
    margin-top: 0;
    box-shadow: none;
}

.modal-quote-panel::before {
    display: none;
}

.modal-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.quote-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}