/* ==========================================================================
   StalMax — Door Detail Page Styles (Product Page)
   ========================================================================== */

.door-page-section {
    padding: 30px 0 60px;
    background-color: #f8fafc;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumbs a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #e65100;
}

.breadcrumbs .separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.breadcrumbs .current {
    color: #1e293b;
    font-weight: 600;
}

/* Main Product Layout */
.door-detail-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 32px;
    margin-bottom: 40px;
}

.door-main-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 48px;
    align-items: start;
}

/* Visual Gallery Container */
.door-gallery-wrapper {
    position: sticky;
    top: 90px;
}

.door-gallery-display {
    position: relative;
    background: radial-gradient(circle, #f8fafc 0%, #eef2f6 100%);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.door-gallery-img {
    max-height: 480px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.door-gallery-img.blueprint-img {
    filter: none;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    cursor: zoom-in;
}

/* Badge Overlay */
.door-gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.door-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.door-zoom-hint:hover {
    background: #0f172a;
}

/* Side Switch Tabs */
.door-side-tabs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
}

.side-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.side-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.side-tab-btn.active {
    background: #ffffff;
    color: #e65100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Color Variant Selector */
.color-selector-box {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.color-selector-title {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.color-options-list {
    display: flex;
    gap: 12px;
}

.color-option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
}

.color-option-btn:hover {
    border-color: #94a3b8;
}

.color-option-btn.active {
    border-color: #e65100;
    background: #fff7ed;
    color: #c2410c;
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
}

/* Product Info Column */
.door-info-column {
    display: flex;
    flex-direction: column;
}

.door-header-block {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.door-meta-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.door-cat-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.door-sku {
    color: #94a3b8;
    font-size: 0.85rem;
}

.door-detail-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.door-subtitle-summary {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

/* Pricing and Order CTA Block */
.door-cta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
}

.price-row-main {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}

.current-price-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e65100;
    line-height: 1;
}

.current-price-big .curr {
    font-size: 1.3rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

.old-price-big {
    font-size: 1.2rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount-tag {
    background: #fee2e2;
    color: #ef4444;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.stock-indicator i {
    font-size: 1rem;
}

.door-btn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.btn-order-main {
    flex: 1 1 240px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.25);
    transition: all 0.2s ease;
}

.btn-order-main:hover {
    background: linear-gradient(135deg, #d84315, #f57c00);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 81, 0, 0.35);
}

.btn-phone-consult {
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-phone-consult:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

/* Highlights List (Key Features) */
.door-perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    border-radius: 10px;
}

.perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.perk-text h4 {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.perk-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

/* Specifications Full Section */
.door-specs-section {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.section-subheading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.section-subheading-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 24px;
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.specs-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.specs-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.specs-table tr:hover {
    background-color: #f1f5f9;
}

.specs-table td {
    padding: 14px 18px;
    font-size: 0.95rem;
    border-bottom: 1px solid #edf2f7;
    line-height: 1.4;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table .col-name {
    width: 32%;
    color: #475569;
    font-weight: 600;
    border-right: 1px solid #edf2f7;
}

.specs-table .col-val {
    color: #0f172a;
    font-weight: 500;
}

/* Related Doors Section */
.related-doors-section {
    margin-top: 40px;
}

.related-doors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Modal for Blueprint Zoom */
.blueprint-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.blueprint-modal.active {
    display: flex;
}

.blueprint-modal-inner {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.blueprint-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.blueprint-modal-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .door-main-grid {
        grid-template-columns: 380px 1fr;
        gap: 32px;
    }
    
    .door-gallery-display {
        min-height: 440px;
    }
    
    .door-gallery-img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .door-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .door-gallery-wrapper {
        position: static;
    }

    .door-detail-card {
        padding: 20px 16px;
    }

    .door-detail-title {
        font-size: 1.35rem;
    }

    .current-price-big {
        font-size: 2rem;
    }

    .door-perks-grid {
        grid-template-columns: 1fr;
    }

    .specs-table .col-name {
        width: 40%;
    }

    .specs-table td {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
    
    .door-specs-section {
        padding: 20px 16px;
    }
}
