/* === HISENSE DESCRIPTION CSS v1 === */
/* Wrapper class for PS detection: hsn-description supplier_hisense */
/* External file: loaded via header.tpl on product pages (deploy to server) */

.hsn-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
}
.hsn-description * { box-sizing: border-box; }
.hsn-description img { max-width: 100%; height: auto; }

/* === TOP VLASTNOSTI — plain text checkmark list (BSH-style) === */
.hsn-top {
    margin: 0 0 32px;
    padding: 20px 24px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.hsn-top-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.hsn-top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
}
.hsn-top-item {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
.hsn-top-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b9ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.hsn-top-name { font-weight: 600; color: #1a1a1a; }
.hsn-top-desc {
    display: block;
    font-size: 12.5px;
    color: #666;
    line-height: 1.35;
    margin-top: 1px;
}

/* Zoom indicator — magnifying glass on zoomable elements */
.hsn-zoomable { cursor: pointer; position: relative; }
.hsn-zoomable::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cline x1='14.5' y1='14.5' x2='20' y2='20'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.hsn-zoomable:hover::after { opacity: 1; }

/* === Feature blocks — big image + title + short claim + "i" detail === */
.hsn-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.hsn-feature {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.hsn-feature:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.hsn-feature-img { position: relative; overflow: hidden; }
.hsn-feature-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.hsn-feature-body { padding: 16px; position: relative; }
.hsn-feature-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    padding-right: 30px;
}
.hsn-feature-short {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
.hsn-feature-full {
    display: none;
    font-size: 13px;
    color: #555;
    margin: 8px 0 0;
    line-height: 1.5;
    border-top: 1px solid #eee;
    padding-top: 8px;
}
.hsn-feature-full.open { display: block; }
.hsn-detail-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #00b9ad;
    background: #fff;
    color: #00b9ad;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
    font-family: Georgia, serif;
}
.hsn-detail-btn:hover, .hsn-detail-btn.active { background: #00b9ad; color: #fff; }

/* Zoom overlay */
.hsn-zoom-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}
.hsn-zoom-overlay.open { display: flex; }
.hsn-zoom-overlay img { max-width: 90%; max-height: 90vh; border-radius: 8px; }
.hsn-zoom-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.hsn-zoom-close:hover { background: rgba(255,255,255,0.3); }

/* === Specs table === */
.hsn-specs { margin-bottom: 32px; }
.hsn-specs-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00b9ad;
}
.hsn-specs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.hsn-specs-group { margin-bottom: 24px; }
.hsn-specs-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #00b9ad;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hsn-specs-arrow { display: none; }
.hsn-specs-table { width: 100%; border-collapse: collapse; }
.hsn-specs-table tr:nth-child(even) { background: #f8f9fa; }
.hsn-specs-table td {
    padding: 8px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.hsn-specs-table td:first-child { color: #666; width: 50%; }
.hsn-specs-table td:last-child { color: #1a1a1a; font-weight: 500; }

/* === Responsive === */
@media (max-width: 768px) {
    .hsn-top-list { grid-template-columns: 1fr; }
    .hsn-features { grid-template-columns: 1fr; }
    .hsn-specs-columns { grid-template-columns: 1fr; }

    /* Specs collapse per group on mobile */
    .hsn-specs-group-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .hsn-specs-arrow { display: inline; font-size: 12px; transition: transform 0.2s; }
    .hsn-specs-collapsed .hsn-specs-arrow { transform: rotate(-90deg); }
    .hsn-specs-collapsed .hsn-specs-table { display: none; }
}
