/* FAQ page styles */
@import url('style.css');

.faq-main {
    padding: 28px 0;
}

.faq-hero {
    text-align: left;
    background: linear-gradient(90deg, #fff 0%, #fafafa 100%);
}

.faq-hero h1 {
    font-size: 28px;
    margin: 0 0 8px;
    color: #222;
}

.faq-hero p {
    margin: 0;
    color: #666;
}

.faq-content .panel {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.faq-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.faq-list {
    flex: 2;
}

.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #111;
}

.faq-item p {
    margin: 0;
    color: #444;
    line-height: 1.45;
}

.faq-search {
    flex: 1;
    background: #fff;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.faq-search h3 {
    margin-top: 0;
    font-size: 16px;
}

.faq-search p {
    color: #666;
    font-size: 14px;
}

.search-results {
    margin-top: 12px;
}

.search-results.hidden {
    display: none;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.product-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #f3f3f3;
    border-radius: 6px;
    background: #fff;
}

.product-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
}

.product-card .info {
    flex: 1;
}

.product-card .info h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.product-card .info .price {
    color: #e53935;
    font-weight: 700;
}

.product-card .actions {
    display: flex;
    gap: 8px;
}

.product-card button {
    background: #111;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Header search suggestions */
.header-search {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 38px;
    left: 0;
    right: auto;
    width: 340px;
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    z-index: 80;
    list-style: none;
    margin: 6px 0 0;
    padding: 6px 0;
    border-radius: 6px;
}

.suggestions-list li {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestions-list li:hover {
    background: #f6f6f6;
}

/* Cart count badge */
#cart-count {
    display: inline-block;
    min-width: 18px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    background: #e53935;
    border-radius: 999px;
    margin-left: 6px;
}

/* Responsive */
@media (max-width: 880px) {
    .faq-grid {
        flex-direction: column;
    }

    .suggestions-list {
        width: calc(100vw - 40px);
        left: 0;
        right: 0;
    }
}