/* ═══════════════════════════════════════════════════════════════════════════
   storeFrontHome.css  —  storeFront-specific overrides
   ─────────────────────────────────────────────────────
   base.css provides: reset, typography, nav, header, buttons, tables, cards,
   form inputs, pill labels, sale badge, cart summary, responsive nav.
   This file adds ONLY storeFront-specific rules.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Heading surface treatment (storeFront uses white-bg inset headings) ── */
h1, h2, h3, h4, h5, h6 {
    background-color: var(--bsc-surface);
    padding: 10px;
    border-radius: var(--bsc-radius);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
}

/* ── Grid inside category boxes ───────────────────────────────────────────── */
.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* ── Shop link ────────────────────────────────────────────────────────────── */
.shop-link {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: var(--bsc-green);
}

/* ── Sale badge grid-item relative positioning ────────────────────────────── */
.product-grid .grid-item {
    position: relative;
    overflow: visible;
}
.grid-item > h3,
.grid-item > img {
    margin-top: 6px;
}

@media (max-width: 480px) {
    .sale-badge { width: 44px; height: 96px; font: bold 12px/1 'Inter', sans-serif; }
    .sale-badge span { font-size: 13px; }
}

@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Floating product-info table ──────────────────────────────────────────── */
.floating-description-cell {
    font-size: 1em;
    background: #f7f7f7;
}

/* ── Sale label (inline discount text) ────────────────────────────────────── */
.sale-label {
    color: #e53935;
    font-weight: bold;
    font-size: 0.95em;
    margin-left: 8px;
}

/* ── Out-of-stock badge + dimmed grid item ────────────────────────────────── */
.out-of-stock-badge {
    display: inline-block;
    background: #f8d7da;
    color: #721c24;
    font-weight: 700;
    font-size: 0.85em;
    padding: 5px 14px;
    border-radius: var(--bsc-radius-sm);
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ Accordion (storeFront)
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.faq-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    text-align: center;
}
.faq-item {
    background: var(--bsc-chrome-mid);
    border-radius: var(--bsc-radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #999;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 600px;
}
.faq-answer-inner {
    padding: 0 20px 16px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 1rem;
}

/* ── Search-results FAQ extras ────────────────────────────────────────────── */
.faq-search-section {
    margin-top: 20px;
}
.faq-results-container {
    max-width: 800px;
    padding: 0 20px 20px;
}
.faq-highlight {
    background: #ffc107;
    color: #000;
    border-radius: 2px;
    padding: 0 2px;
}
.grid-item-oos {
    opacity: 0.55;
    pointer-events: auto;
}
.out-of-stock-btn {
    background: #aaa !important;
    cursor: not-allowed !important;
    pointer-events: none;
}
