/* =====================================================
   FURNITURE CATALOG - SCOPED CSS
   Semua style dibungkus dalam .fc-* class
   Tidak ada style global yang bisa bocor ke tema
   ===================================================== */

:root {
    --fc-primary: #2c2c2c;
    --fc-accent:  #b8935a;
    --fc-bg:      #faf9f7;
    --fc-card-bg: #ffffff;
    --fc-border:  #e8e4de;
    --fc-text:    #3a3a3a;
    --fc-muted:   #888;
    --fc-radius:  10px;
    --fc-shadow:  0 2px 16px rgba(0,0,0,.07);
    --fc-trans:   .22s ease;
}

/* === SEARCH BAR === */
.fc-catalog-wrap .fc-search-bar {
    padding: 24px 0 8px;
}
.fc-catalog-wrap .fc-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 480px;
}
.fc-catalog-wrap .fc-search-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    pointer-events: none;
}
.fc-catalog-wrap .fc-search-input {
    width: 100%;
    padding: 11px 44px 11px 42px;
    border: 1.5px solid var(--fc-border);
    border-radius: 30px;
    font-size: .92rem;
    background: var(--fc-card-bg);
    color: var(--fc-text);
    outline: none;
    transition: border-color var(--fc-trans);
    box-shadow: none;
}
.fc-catalog-wrap .fc-search-input:focus {
    border-color: var(--fc-accent);
    box-shadow: none;
}
.fc-catalog-wrap .fc-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fc-muted);
    font-size: .9rem;
    padding: 4px;
    display: flex;
    align-items: center;
}
.fc-catalog-wrap .fc-search-clear:hover { color: var(--fc-primary); }

/* === FILTER BAR === */
.fc-catalog-wrap .fc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0 8px;
}
.fc-catalog-wrap .fc-filter-btn {
    background: var(--fc-card-bg);
    border: 1.5px solid var(--fc-border);
    border-radius: 30px;
    padding: 7px 16px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--fc-text);
    cursor: pointer;
    transition: all var(--fc-trans);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.fc-catalog-wrap .fc-filter-btn:hover {
    border-color: var(--fc-accent);
    color: var(--fc-accent);
}
.fc-catalog-wrap .fc-filter-btn.active {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    color: #fff;
}
.fc-catalog-wrap .fc-filter-count {
    background: var(--fc-border);
    color: var(--fc-muted);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: .75rem;
}
.fc-catalog-wrap .fc-filter-btn.active .fc-filter-count {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* === TOOLBAR === */
.fc-catalog-wrap .fc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.fc-catalog-wrap .fc-count-label {
    font-size: .88rem;
    color: var(--fc-muted);
}
.fc-catalog-wrap .fc-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fc-catalog-wrap .fc-sort-label {
    font-size: .82rem;
    color: var(--fc-muted);
}
.fc-catalog-wrap .fc-sort-select {
    padding: 6px 12px;
    border: 1.5px solid var(--fc-border);
    border-radius: 8px;
    font-size: .85rem;
    color: var(--fc-text);
    background: var(--fc-card-bg);
    cursor: pointer;
    outline: none;
}
.fc-catalog-wrap .fc-sort-select:focus { border-color: var(--fc-accent); }

/* === GRID === */
.fc-catalog-wrap .fc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 40px;
    transition: opacity .2s;
}
.fc-catalog-wrap .fc-grid.fc-loading { opacity: .4; pointer-events: none; }

@media (max-width: 900px) {
    .fc-catalog-wrap .fc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .fc-catalog-wrap .fc-grid { grid-template-columns: 1fr; }
}

/* === CARD === */
.fc-catalog-wrap .fc-card {
    background: var(--fc-card-bg);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    border: 1px solid var(--fc-border);
    overflow: hidden;
    transition: transform var(--fc-trans), box-shadow var(--fc-trans);
}
.fc-catalog-wrap .fc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.fc-catalog-wrap .fc-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.fc-catalog-wrap .fc-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--fc-bg);
}
.fc-catalog-wrap .fc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.fc-catalog-wrap .fc-card:hover .fc-card__image img {
    transform: scale(1.04);
}
.fc-catalog-wrap .fc-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e4de, #d4cfc8);
}
.fc-catalog-wrap .fc-card__no-image span {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(44,44,44,.25);
    text-transform: uppercase;
}
.fc-catalog-wrap .fc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--fc-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.fc-catalog-wrap .fc-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.fc-catalog-wrap .fc-card__cat {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--fc-accent);
    font-weight: 600;
}
.fc-catalog-wrap .fc-card__title {
    margin: 2px 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fc-primary);
    line-height: 1.3;
}
.fc-catalog-wrap .fc-card__dim,
.fc-catalog-wrap .fc-card__material {
    font-size: .82rem;
    color: var(--fc-muted);
    margin: 0;
}
.fc-catalog-wrap .fc-card__material { font-style: italic; }
.fc-catalog-wrap .fc-card__price {
    font-size: .95rem;
    font-weight: 700;
    color: var(--fc-accent);
    margin: 4px 0 0;
}
.fc-catalog-wrap .fc-card__cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 12px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--fc-accent);
}
.fc-catalog-wrap .fc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--fc-muted);
    font-size: 1.05rem;
}

/* ==============================
   SINGLE PRODUCT
   ============================== */
.fc-single .fc-single__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 20px;
}
@media (max-width: 760px) {
    .fc-single .fc-single__inner { grid-template-columns: 1fr; gap: 24px; }
}
.fc-single .fc-single__main-image {
    border-radius: var(--fc-radius);
    overflow: hidden;
    border: 1px solid var(--fc-border);
    aspect-ratio: 4/3;
    background: var(--fc-bg);
}
.fc-single .fc-single__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fc-single .fc-single__no-image {
    border-radius: var(--fc-radius);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8e4de, #d4cfc8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(44,44,44,.18);
}
.fc-single .fc-single__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .8px; color: var(--fc-accent); font-weight: 600; }
.fc-single .fc-single__cat a { color: var(--fc-accent); text-decoration: none; }
.fc-single .fc-single__title { font-size: 1.9rem; font-weight: 800; color: var(--fc-primary); margin: 8px 0 4px; line-height: 1.2; }
.fc-single .fc-single__sku { font-size: .82rem; color: var(--fc-muted); margin: 0 0 8px; }
.fc-single .fc-single__price { font-size: 1.8rem; font-weight: 800; color: var(--fc-accent); margin: 4px 0 16px; }

.fc-single .fc-single__dims h3,
.fc-single .fc-single__material h3,
.fc-single .fc-single__colors h3,
.fc-single .fc-single__desc h3 {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .7px;
    color: var(--fc-muted); font-weight: 600; margin: 22px 0 10px;
    border-top: 1px solid var(--fc-border); padding-top: 18px;
}
.fc-single .fc-dims-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.fc-single .fc-dim-item {
    background: var(--fc-bg); border: 1px solid var(--fc-border);
    border-radius: 8px; padding: 12px 20px; text-align: center; min-width: 90px;
}
.fc-single .fc-dim-value { display: block; font-size: 1.4rem; font-weight: 800; color: var(--fc-primary); }
.fc-single .fc-dim-label { display: block; font-size: .72rem; color: var(--fc-muted); margin-top: 2px; }
.fc-single .fc-dim-full { font-size: .85rem; color: var(--fc-muted); margin: 10px 0 0; }

.fc-single .fc-single__colors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fc-single .fc-single__colors li { background: var(--fc-bg); border: 1px solid var(--fc-border); border-radius: 20px; padding: 4px 14px; font-size: .82rem; }

.fc-single .fc-single__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.fc-single .fc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 22px; border-radius: 8px; font-size: .9rem;
    font-weight: 600; text-decoration: none; transition: all var(--fc-trans);
    cursor: pointer; border: none;
}
.fc-single .fc-btn--wa { background: #25d366; color: #fff; }
.fc-single .fc-btn--wa:hover { background: #1da851; color: #fff; }
.fc-single .fc-btn--back { background: var(--fc-bg); color: var(--fc-primary); border: 1.5px solid var(--fc-border); }
.fc-single .fc-btn--back:hover { border-color: var(--fc-primary); color: var(--fc-primary); text-decoration: none; }

