/* ============================================================
   stores.css — store page layout, store card, store logo grid,
                facet filter accordion, store directory
   ============================================================ */

/* ---- STORE PAGE WRAPPER ----------------------------------- */
.fmo-store-page-wrap {
    background: var(--fmo-white);
    border: 1px solid var(--fmo-border);
    padding: var(--fmo-gap);
    border-radius: 3px;
}

.fmo-store-page-title-bar {
    background: var(--fmo-nav-bg);
    color: var(--fmo-white);
    text-align: center;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--fmo-gap);
}

/* ---- STORE LOGO / IDENTITY -------------------------------- */
.fmo-store-logo-wrap {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 12px;
}
.fmo-store-logo-wrap img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.fmo-store-location {
    text-align: center;
    font-size: 0.82rem;
    color: var(--fmo-mid-gray);
    margin-bottom: 8px;
}

.fmo-store-wishlist { text-align: center; margin-bottom: 12px; }

.fmo-store-copyright {
    text-align: center;
    font-size: 0.7rem;
    color: var(--fmo-mid-gray);
    margin-bottom: var(--fmo-gap);
    padding-bottom: var(--fmo-gap);
    border-bottom: 1px solid var(--fmo-border);
}

/* ---- STORE ABOUT / DESCRIPTION ---------------------------- */
.fmo-store-about-text {
    font-size: 0.85rem;
    margin-bottom: var(--fmo-gap);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--fmo-black);
    line-height: 1.5;
}

/* ---- STORE TAXONOMY LINKS --------------------------------- */
.fmo-store-taxonomy {
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.fmo-store-taxonomy strong { color: var(--fmo-black); }
.fmo-store-taxonomy a.style-link { color: var(--fmo-style-link); }
.fmo-store-taxonomy a.cat-link   { color: var(--fmo-cat-link); }
.fmo-store-taxonomy a:hover { text-decoration: underline; }

/* ---- STORE PRICE RANGE ------------------------------------ */
.fmo-store-price-range { font-size: 0.85rem; margin-bottom: 8px; }
.fmo-price-symbols { color: var(--fmo-gold); font-weight: 700; font-size: 1rem; }

/* ---- STORE META FIELDS ------------------------------------ */
.fmo-store-meta {
    font-size: 0.82rem;
    line-height: 1.8;
    margin-bottom: var(--fmo-gap);
}
.fmo-store-meta strong { color: var(--fmo-black); }

/* ---- STORE CTA -------------------------------------------- */
.fmo-store-cta { text-align: center; margin: var(--fmo-gap) 0; }

/* ---- READ MORE — CSS-only collapse (checkbox hack) -------- */
.fmo-read-more-toggle  { display: none; }

.fmo-read-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.fmo-read-more-toggle:checked ~ .fmo-read-more-content {
    max-height: 2000px;
}

/* ---- DESIGNERS LIST — CSS-only expand --------------------- */
.fmo-designers-toggle { display: none; }

.fmo-designers-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.fmo-designers-toggle:checked ~ .fmo-designers-list {
    max-height: 6000px;
}

.fmo-designers-columns {
    column-count: 3;
    column-gap: var(--fmo-gap);
    padding: var(--fmo-gap) 0;
}
.fmo-designers-columns li {
    font-size: 0.78rem;
    padding: 2px 0;
    break-inside: avoid;
}
.fmo-designers-columns li::before { content: '• '; color: var(--fmo-mid-gray); }

/* ---- STORE LOGO GRID (Stores Offering region) ------------- */
.fmo-stores-offering-grid { margin: var(--fmo-gap) 0; }

.fmo-store-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 12px 0;
}

.fmo-store-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.fmo-store-logo-item img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter var(--fmo-transition);
}
.fmo-store-logo-item:hover img { filter: none; }

.fmo-store-logo-label {
    font-size: 0.65rem;
    color: var(--fmo-mid-gray);
    line-height: 1.2;
}

/* ---- FACET FILTER ACCORDION ------------------------------- */
.fmo-facet-group {
    border: 1px solid var(--fmo-border);
    border-radius: 3px;
    margin-bottom: 8px;
    background: var(--fmo-white);
    overflow: hidden;
}

.fmo-facet-header {
    background: var(--fmo-nav-bg);
    color: var(--fmo-white);
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.fmo-facet-header::after {
    content: '▾';
    font-size: 0.7rem;
    transition: transform var(--fmo-transition);
}
.fmo-facet-group.collapsed .fmo-facet-header::after {
    transform: rotate(-90deg);
}

.fmo-facet-body {
    padding: 8px 12px;
    max-height: 200px;
    overflow-y: auto;
}
.fmo-facet-group.collapsed .fmo-facet-body { display: none; }

.fmo-facet-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 0.8rem;
    cursor: pointer;
}
.fmo-facet-option input[type="checkbox"] { accent-color: var(--fmo-link); }

/* Price range slider label */
.fmo-facet-price-range {
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    color: var(--fmo-mid-gray);
    margin-top: 4px;
}

/* ---- STORE OFFERING (product page) ------------------------ */
.fmo-store-offering {
    border: 1px solid var(--fmo-border);
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
    background: var(--fmo-off-white);
}
.fmo-store-offering-label {
    font-size: 0.75rem;
    color: var(--fmo-mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.fmo-store-offering-name {
    font-family: var(--fmo-font-sans);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--fmo-black);
    margin-bottom: 4px;
}
.fmo-store-offering-location {
    font-size: 0.78rem;
    color: var(--fmo-mid-gray);
}

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 800px) {
    .fmo-store-logo-grid { grid-template-columns: repeat(3, 1fr); }
    .fmo-designers-columns { column-count: 1; }
}
