/* Product detail page */
.breadcrumb-section {
    background: transparent;
    padding: 16px 0 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #E3000F;
}

.breadcrumb .current {
    color: #111827;
    font-weight: 600;
}

.product-detail-section {
    padding: 40px 0 72px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.product-hero-card,
.product-faq-section,
.inquiry-section,
.side-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.product-hero-card {
    padding: 32px;
    margin-bottom: 32px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.product-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.product-main-column {
    min-width: 0;
}

.product-side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.side-card {
    padding: 24px;
}

.side-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.side-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.side-link {
    color: #E3000F;
    text-decoration: none;
    font-weight: 500;
}

.side-link:hover {
    text-decoration: underline;
}

.product-images {
    background: linear-gradient(180deg, #fbfbfb 0%, #f3f3f3 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #efefef;
}

.main-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

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

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ccc;
}

.placeholder-image svg {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.thumbnail-images {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 0 16px 16px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #fff;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #E3000F;
    box-shadow: 0 8px 18px rgba(227, 0, 15, 0.14);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-header {
    margin-bottom: 24px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.product-sku {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.product-brand {
    display: inline-block;
    background: #E3000F;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-category-chip {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.product-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
    color: #171717;
}

.product-sku {
    color: #999;
    font-size: 14px;
}

.product-highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.product-highlight-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
}

.product-price {
    margin: 24px 0 18px;
}

.product-price .price {
    font-size: 36px;
    font-weight: 800;
    color: #E3000F;
}

.product-price .price-usd {
    font-size: 18px;
    color: #666;
    margin-left: 16px;
}

.product-price .price-on-request {
    color: #666;
    font-size: 24px;
}

.product-stock {
    margin-bottom: 24px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.stock-badge.pre-order {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #E3000F;
    color: #fff;
    box-shadow: 0 10px 24px rgba(227, 0, 15, 0.18);
}

.btn-primary:hover {
    background: #B8000C;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(227, 0, 15, 0.24);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.product-short-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

.product-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-spec-item {
    background: #f9f9f9;
    border: 1px solid #efefef;
    border-radius: 12px;
    padding: 14px 16px;
}

.quick-spec-item span {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 6px;
}

.quick-spec-item strong {
    font-size: 16px;
    color: #333;
}

.product-benefits-card {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #efefef;
}

.product-benefits-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.product-benefits-card ul {
    margin: 0;
    padding-left: 18px;
    color: #555;
    line-height: 1.8;
}

.product-tabs {
    margin-bottom: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
    padding: 28px 32px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 18px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
    color: #E3000F;
    border-bottom-color: #E3000F;
}

.tab-panel {
    display: none;
}

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

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

.specs-table th,
.specs-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.specs-table th {
    width: 38%;
    color: #666;
    font-weight: 500;
}

.specs-table td {
    font-weight: 600;
    color: #222;
}

.description-content,
.application-content {
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.description-content p,
.application-content p,
.description-content ul,
.application-content ul,
.description-content ol,
.application-content ol {
    margin-bottom: 18px;
}

.description-content h2,
.application-content h2,
.description-content h3,
.application-content h3,
.description-content h4,
.application-content h4 {
    color: #171717;
    line-height: 1.3;
    margin: 32px 0 14px;
}

.description-content h2,
.application-content h2 {
    font-size: 28px;
}

.description-content h3,
.application-content h3 {
    font-size: 22px;
}

.description-content h4,
.application-content h4 {
    font-size: 18px;
}

.description-content ul,
.application-content ul,
.description-content ol,
.application-content ol {
    padding-left: 22px;
}

.description-content blockquote,
.application-content blockquote {
    border-left: 4px solid #E3000F;
    padding-left: 18px;
    color: #6b7280;
    margin: 24px 0;
}

.no-content {
    color: #999;
    font-style: italic;
}

.product-faq-section {
    padding: 32px;
    margin-bottom: 32px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #efefef;
}

.faq-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.faq-card p {
    color: #666;
    line-height: 1.7;
}

.inquiry-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid #ececec;
}

.inquiry-section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.inquiry-section-subtitle {
    color: #666;
    line-height: 1.7;
    max-width: 720px;
}

.inquiry-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.inquiry-trust-points span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 999px;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #171717;
}

.alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.7;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.18);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.18);
}

.inquiry-form {
    max-width: 760px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dbe1ea;
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E3000F;
    box-shadow: 0 0 0 4px rgba(227, 0, 15, 0.08);
    background: #fff;
}

.inquiry-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.inquiry-form-note {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.inquiry-form-note a {
    color: #E3000F;
    font-weight: 600;
}

/* ==================== Sticky Inquiry Bar (Mobile) ==================== */
.sticky-inquiry-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    z-index: 999;
    padding: 10px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 2px solid #E3000F;
}

.sticky-inquiry-bar.visible {
    transform: translateY(0);
}

.sticky-inquiry-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sticky-inquiry-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sticky-inquiry-model {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-inquiry-price {
    font-size: 13px;
    color: #6b7280;
}

.sticky-inquiry-bar .btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Show sticky bar only below 1024px */
@media (min-width: 1025px) {
    .sticky-inquiry-bar { display: none; }
}

.related-products {
    margin-top: 24px;
}

.related-products-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.related-products-subtitle {
    color: #666;
    line-height: 1.7;
}

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

.related-products .product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-products .product-image {
    aspect-ratio: 1;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.related-products .product-image .placeholder {
    color: #ccc;
}

.related-products .product-image .placeholder svg {
    width: 60px;
    height: 60px;
}

.related-products .product-card .product-info {
    padding: 20px;
}

.related-products .product-card .product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.related-products .product-card .product-sku {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.related-products .product-card .product-price {
    margin: 0;
}

.related-products .product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: #E3000F;
}

.related-products .product-card .price-on-request {
    font-size: 14px;
    color: #666;
}

@media (max-width: 1024px) {
    .product-detail-grid,
    .product-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-side-column {
        position: static;
    }

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

@media (max-width: 768px) {
    .product-detail-section {
        padding: 32px 0 56px;
    }

    .product-hero-card,
    .product-tabs,
    .product-faq-section,
    .inquiry-section,
    .side-card {
        padding: 24px;
        border-radius: 16px;
    }

    .product-title,
    .section-title {
        font-size: 28px;
    }

    .description-content,
    .application-content {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .form-row,
    .product-quick-specs,
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions,
    .inquiry-section-head,
    .related-products-head,
    .inquiry-form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn,
    .btn-large {
        width: 100%;
    }

    .product-hero-card,
    .product-tabs,
    .product-faq-section,
    .inquiry-section,
    .side-card {
        padding: 20px;
    }

    .product-title,
    .section-title {
        font-size: 26px;
    }

    .main-image {
        padding: 24px;
    }
    
    .product-price .price { font-size: 28px; }
}

@media (max-width: 480px) {
    .product-hero-card,
    .product-tabs,
    .product-faq-section,
    .inquiry-section,
    .side-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .product-title,
    .section-title {
        font-size: 22px;
    }
    
    .main-image {
        padding: 16px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* prevent iOS zoom */
    }
    
    .inquiry-form-note {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .product-hero-card,
    .product-tabs,
    .product-faq-section,
    .inquiry-section,
    .side-card {
        padding: 12px;
    }
    
    .product-title,
    .section-title {
        font-size: 20px;
    }
    
    .product-price .price { font-size: 24px; }
    
    .product-meta-row {
        gap: 6px;
    }
    
    .product-highlight-list {
        gap: 4px;
    }
    
    .product-highlight-item {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .quick-spec-item {
        padding: 10px 12px;
    }
    
    .quick-spec-item strong {
        font-size: 14px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .sticky-inquiry-model { font-size: 12px; }
    .sticky-inquiry-bar .btn { padding: 8px 14px; font-size: 12px; }
}
