

.icon-container {
    position: relative; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    margin: 5px;
}


.star-icon {
    font-size: 24px;
    color: #5B5FFF;
}

.tooltip-text {
    visibility: hidden; 
    opacity: 0;
    background-color: #5B5FFF; 
    color: white;
    text-align: center;
    padding: 8px 16px;
    border-radius: 50px; 
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    position: absolute;
    top: 110%; 
    left: 50%;
    transform: translateX(-50%); 

    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10; 
}

.icon-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.icon-container:hover{
    background-color: #F2F3FF; 
    border-radius: 50%; 
}

.tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #5B5FFF transparent;
}

/* ===== Side Panel ===== */
.assistant-panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 480px;
    max-width: 96vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 28px 20px 30px 24px;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid #e9edf4;
}
.assistant-panel.open {
    right: 0;
}

/* ===== Panel Header ===== */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}
.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 650;
    color: #0f172a;
}
.panel-header h2 span {
    color: #f59e0b;
}
.close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: 0.15s;
}
.close-btn:hover {
    background: #e2e8f0;
}

.panel-sub {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== Products Summary Button ===== */
.summary-trigger {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border: none;
    padding: 14px 18px;
    border-radius: 14px;
    width: 100%;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.summary-trigger:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}
.summary-trigger .arrow {
    transition: 0.3s;
    font-size: 0.8rem;
}
.summary-trigger .arrow.open {
    transform: rotate(180deg);
}

/* ===== Products Summary ===== */
.products-summary {
    display: none;
    animation: slideDown 0.3s ease;
    margin-bottom: 20px;
}
.products-summary.open {
    display: block;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.product-card-mini {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.15s;
    cursor: pointer;
}
.product-card-mini:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(4px);
}
.product-card-mini .mini-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.product-card-mini .mini-icon {
    font-size: 1.8rem;
}
.product-card-mini .mini-details {
    display: flex;
    flex-direction: column;
}
.product-card-mini .mini-name {
    font-weight: 600;
    color: #0f172a;
}
.product-card-mini .mini-price {
    font-size: 0.85rem;
    color: #64748b;
}
.product-card-mini .mini-status {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
}
.product-card-mini .mini-status.in-stock {
    background: #dcfce7;
    color: #16a34a;
}
.product-card-mini .mini-status.low-stock {
    background: #fef3c7;
    color: #ca8a04;
}
.product-card-mini .mini-status.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

/* ===== Product Detail ===== */
.product-detail {
    display: none;
    animation: fadeSlide 0.3s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 10px;
}
.product-detail.active {
    display: block;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.product-detail .detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}
.product-detail .detail-icon {
    font-size: 3rem;
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-detail .detail-title-group {
    flex: 1;
}
.product-detail .detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}
.product-detail .detail-sub {
    font-size: 0.85rem;
    color: #64748b;
}
.product-detail .detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    padding: 4px 16px;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.product-detail .detail-body {
    margin: 16px 0;
}
.product-detail .detail-desc {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 14px;
}
.product-detail .detail-features {
    list-style: none;
    padding: 0;
}
.product-detail .detail-features li {
    padding: 8px 0;
    color: #1e293b;
    font-size: 0.9rem;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-detail .detail-features li:last-child {
    border-bottom: none;
}
.product-detail .detail-features li::before {
    content: "✓";
    color: #16a34a;
    font-weight: 700;
    font-size: 1.1rem;
}

.product-detail .detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
    flex-wrap: wrap;
}
.product-detail .action-btn {
    background: #0f172a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    font-size: 0.95rem;
    flex: 1;
    min-width: 140px;
}
.product-detail .action-btn:hover {
    background: #1e293b;
    transform: scale(1.02);
}
.product-detail .action-btn.secondary {
    background: transparent;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}
.product-detail .action-btn.secondary:hover {
    background: #f1f5f9;
}
.product-detail .close-detail {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 8px;
    display: inline-block;
}

/* ===== System Categories ===== */
.section-title {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin: 22px 0 10px 0;
}

.system-list {
    list-style: none;
    padding: 0;
}
.system-list li {
    padding: 14px 16px;
    background: #fafcff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.system-list li:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(4px);
}
.system-list li .sys-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.system-list li .sys-name {
    font-weight: 600;
}
.system-list li .sys-price {
    font-size: 0.85rem;
    color: #0f172a;
    background: #e2e8f0;
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 600;
    white-space: nowrap;
}
.system-list li .sys-icon {
    font-size: 1.5rem;
    margin-right: 6px;
}

.panel-footer {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 640px) {
    .assistant-panel {
        width: 100%;
        max-width: 100vw;
        right: -100%;
        padding: 20px 14px;
    }
    .assistant-panel.open {
        right: 0;
    }
    .assistant-toggle {
        padding: 14px 20px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }
    .page-content h1 {
        font-size: 2rem;
    }
    .system-list li {
        flex-wrap: wrap;
    }
    .product-detail .detail-header {
        flex-wrap: wrap;
    }
    .product-detail .detail-actions {
        flex-direction: column;
    }
    .product-detail .action-btn {
        width: 100%;
    }
}

body.no-scroll {
    overflow: hidden;
}
