/* DETAIL PRODUKTU CSS */
.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* BREADCRUMB */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.pd-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* HLAVNÍ SEKCE */
.pd-main {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* GALERIE - ZMĚNĚNO */
.pd-gallery {
    position: relative;
}

.pd-image-container {
    position: relative;
    width: 100%;
    height: 420px;  /* ZMĚNĚNO z 500px */
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.pd-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.pd-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,107,0,0.9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.pd-video-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,107,0,1);
}

.pd-video-overlay svg {
    width: 35px;
    height: 35px;
    fill: #fff;
    margin-left: 5px;
}

/* VIDEO MODAL */
.pd-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.pd-video-modal.active {
    display: flex;
}

.pd-video-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.pd-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #FF6B00;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* INFO SEKCE */
.pd-info {
    padding-top: 10px;
}

.pd-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* ROZMĚR */
.pd-dimensions {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
}

.pd-dimensions-label {
    font-weight: 400;
    color: #666;
}

.pd-dimensions-value {
    font-weight: 700;
    color: #1a1a1a;
}

.pd-availability {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pd-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #4CAF50;
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

.pd-stock-badge.na-poptavku {
    background: #FF9800;
}

.pd-stock-badge svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.pd-delivery {
    font-size: 14px;
    color: #666;
}

/* CENY - OPTIMALIZOVÁNO */
.pd-price-box {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    border: 2px solid #FF6B00;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.pd-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.pd-price-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pd-price-label {
    color: #666;
    font-size: 14px;
}

.pd-price-value {
    text-align: right;
}

.pd-price-czk {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* ZMĚNĚNÁ HLAVNÍ CENA */
.pd-price-czk.with-vat {
    font-size: 22px;  /* ZMĚNĚNO z 24px */
    font-weight: 700;
    color: #FF6B00;
}

.pd-price-eur {
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

/* MNOŽSTVÍ A KOŠÍK */
.pd-cart-section {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.pd-quantity {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.pd-qty-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.pd-qty-btn:hover {
    background: #FF6B00;
    color: #fff;
}

.pd-qty-value {
    width: 80px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    padding: 0 5px;
}

/* Zvýraznění při focusu */
.pd-qty-value:focus {
    background: #fffbf0;
}

/* Zabránit šipkám u number inputu */
.pd-qty-value::-webkit-inner-spin-button,
.pd-qty-value::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-qty-value[type=number] {
    -moz-appearance: textfield;
}

.pd-btn-cart {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
    text-decoration: none;
}

.pd-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,107,0,0.4);
}

.pd-btn-cart svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* SOUVISEJÍCÍ PRODUKTY - OPRAVENO! */
.pd-related {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.pd-related-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

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

.pd-related-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pd-related-item:hover {
    border-color: #FF6B00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pd-related-image {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

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

.pd-related-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pd-related-dimensions {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.pd-related-price {
    font-size: 18px;
    color: #FF6B00;
    font-weight: 700;
}

.pd-related-price-label {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-left: 3px;
}

.pd-related-price-eur {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* SPECIFIKACE */
.pd-specs {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.pd-specs-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #FF6B00;
}

.pd-specs-content {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* STYLY PRO HTML OBSAH VE SPECIFIKACÍCH */
.pd-specs-content h2 {
    color: #FF6B00;
    margin: 25px 0 15px;
    font-size: 20px;
    font-weight: 700;
}

.pd-specs-content h3 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.pd-specs-content p {
    margin-bottom: 15px;
}

.pd-specs-content ul {
    margin: 15px 0 15px 30px;
    list-style: disc;
}

.pd-specs-content ol {
    margin: 15px 0 15px 30px;
    list-style: decimal;
}

.pd-specs-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* STYLY PRO TABULKY VE SPECIFIKACÍCH */
.pd-specs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    table-layout: auto;
    min-width: 100%;
}

.pd-specs-content table th,
.pd-specs-content table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}

.pd-specs-content table th {
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.pd-specs-content table tr:hover {
    background: #f5f5f5;
}

.pd-specs-content a {
    color: #FF6B00;
    text-decoration: none;
    font-weight: 600;
}

.pd-specs-content a:hover {
    text-decoration: underline;
}

/* Scrollbar pro tabulky */
.pd-specs-content::-webkit-scrollbar {
    height: 6px;
}

.pd-specs-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pd-specs-content::-webkit-scrollbar-thumb {
    background: #FF6B00;
    border-radius: 3px;
}

.pd-specs-content::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* SEKCE - POMOC S VÝBĚREM */
.pd-help {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border-radius: 16px;
    padding: 45px;
    text-align: center;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.pd-help::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00 0%, #ff8533 50%, #FF6B00 100%);
}

.pd-help-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(255,107,0,0.25);
}

.pd-help-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    stroke-width: 2.5;
}

.pd-help-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.pd-help-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
}

.pd-help-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pd-help-btn {
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
}

.pd-help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.pd-help-btn:hover::before {
    left: 100%;
}

.pd-help-btn-faq {
    background: #fff;
    border: 2px solid #FF6B00;
    color: #FF6B00;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pd-help-btn-faq:hover {
    background: #FF6B00;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,0,0.2);
}

.pd-help-btn-faq:hover svg {
    stroke: #fff;
}

.pd-help-btn-call {
    background: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(255,107,0,0.3);
}

.pd-help-btn-call:hover {
    background: linear-gradient(135deg, #e55a00 0%, #FF6B00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,107,0,0.4);
}

.pd-help-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
    transition: all 0.3s;
}

.pd-help-btn-faq svg {
    stroke: #FF6B00;
}

.pd-help-btn-call svg {
    stroke: #fff;
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
}

/* MOBILE - OPTIMALIZOVÁNO */
@media (max-width: 768px) {
    .pd-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* ZMĚNĚNÁ OBRÁZEK NA MOBILU */
    .pd-image-container {
        height: 300px;  /* ZMĚNĚNO z 350px */
    }
    
    /* UPRAVENÁ NADPIS NA MOBILU - MENŠÍ */
    .pd-title {
        font-size: 18px;  /* ZMĚNĚNO z 20px - trochu menší, ale stále čitelný */
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .pd-dimensions {
        font-size: 16px;  /* ZMĚNĚNO z 17px */
        padding: 10px 15px;
    }
    
    /* OPTIMALIZOVANÉ CENY NA MOBILU */
    .pd-price-box {
        padding: 20px 18px;
    }
    
    .pd-price-czk {
        font-size: 16px;
    }
    
    .pd-price-czk.with-vat {
        font-size: 19px;  /* ZMĚNĚNO z 22px */
    }
    
    .pd-price-label {
        font-size: 13px;
    }
    
    .pd-price-eur {
        font-size: 12px;
    }
    
    .pd-cart-section {
        flex-direction: column;
    }
    
    .pd-related-grid {
        grid-template-columns: 1fr;
    }
    
    .pd-specs {
        padding: 25px 20px;
        overflow-x: visible;
    }
    
    /* RESPONZIVNÍ TABULKY NA MOBILU */
    .pd-specs-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .pd-specs-content table {
        min-width: 500px;
        font-size: 13px;
    }
    
    .pd-specs-content table th,
    .pd-specs-content table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
    
    .pd-help {
        padding: 30px 20px;
    }
    
    .pd-help-icon {
        width: 60px;
        height: 60px;
    }
    
    .pd-help-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .pd-help-title {
        font-size: 20px;
    }
    
    .pd-help-text {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .pd-help-buttons {
        gap: 12px;
    }
    
    .pd-help-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 14px;
        letter-spacing: 0.3px;
        gap: 8px;
    }
    
    .pd-help-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* EXTRA MALÉ OBRAZOVKY */
@media (max-width: 480px) {
    .pd-container {
        padding: 20px 15px;
    }
    
    .pd-image-container {
        height: 280px;  /* JEŠTĚ MENŠÍ */
    }
    
    /* JEŠTĚ MENŠÍ NADPIS PRO MALÉ DISPLEJE */
    .pd-title {
        font-size: 17px;  /* ZMĚNĚNO z 19px - ideální pro malé mobily */
        line-height: 1.35;
    }
    
    .pd-dimensions {
        font-size: 15px;  /* ZMĚNĚNO z 16px */
        padding: 8px 12px;
    }
    
    /* JEŠTĚ MENŠÍ CENY PRO MALÉ DISPLEJE */
    .pd-price-box {
        padding: 18px 15px;
    }
    
    .pd-price-czk.with-vat {
        font-size: 18px;
        word-break: break-all;  /* Pro velmi dlouhé ceny */
    }
    
    .pd-specs-content table {
        min-width: 450px;
        font-size: 12px;
    }
    
    .pd-specs-content table th,
    .pd-specs-content table td {
        padding: 8px 10px;
    }
}

/* PŘEPSÁNÍ INLINE STYLŮ Z SUMMERNOTE */
.pd-specs-content table[style] {
    width: 100% !important;
    max-width: 100% !important;
}

.pd-specs-content td[style],
.pd-specs-content th[style] {
    width: auto !important;
}

/* ZAJIŠTĚNÍ RESPONZIVITY PRO VŠECHNY TABULKY */
@media (max-width: 768px) {
    .pd-specs-content table {
        display: block;
        width: 100% !important;
    }
    
    .pd-specs-content tbody {
        display: block;
        width: 100%;
    }
    
    .pd-specs-content tr {
        display: block;
        width: 100%;
    }
}