/* ============================================================
   NAIA – Category Page Styles
   ============================================================ */

:root { --cream: #F9F5F0; --sand: #E8DDD0; --taupe: #C4AA8F; --mink: #8B7355; --charcoal: #2C2C2C; --rose: #C8907A; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { font-family: 'Lato', sans-serif; background: var(--cream); color: var(--charcoal); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }
img, video, iframe { max-width: 100%; }

/* PAGE HEADER */
.cat-hero { background: linear-gradient(120deg, #EDE4D8, #D4C4B0); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--sand); }
.cat-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: .4rem; }
.cat-hero p { font-size: .8rem; color: #888; letter-spacing: .06em; }
.cat-hero .cat-desc { max-width: 720px; color: #5f5a54; font-size: .95rem; line-height: 1.8; }
.cat-hero .cat-desc p { color: inherit; font-size: inherit; letter-spacing: 0; margin-bottom: .75rem; }
.cat-hero .cat-desc p:last-child { margin-bottom: 0; }
.bc a { font-size: .75rem; color: var(--mink); text-decoration: none; }
.bc span { color: #ccc; margin: 0 .4rem; font-size: .75rem; }
.bc em { font-size: .75rem; color: #888; }

/* TOOLBAR */
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--sand); flex-wrap: wrap; gap: .8rem; }
.result-count { font-size: .78rem; color: #888; letter-spacing: .06em; }
.toolbar-right { display: flex; align-items: center; gap: .8rem; }
.sort-sel { background: transparent; border: 1px solid var(--sand); padding: .45rem 2rem .45rem .8rem; font-size: .75rem; font-family: 'Lato', sans-serif; color: var(--charcoal); outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238B7355' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; }
.view-btn { background: none; border: 1px solid var(--sand); padding: .4rem .6rem; cursor: pointer; color: #888; transition: all .2s; line-height: 1; }
.view-btn.active, .view-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }
.filter-toggle-btn { background: none; border: 1px solid var(--sand); padding: .42rem .9rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; font-family: 'Lato', sans-serif; color: var(--charcoal); display: flex; align-items: center; gap: .4rem; transition: all .2s; }
.filter-toggle-btn:hover { border-color: var(--charcoal); }

/* ACTIVE FILTERS */
.active-filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid var(--sand); }
.active-filters.empty { display: none; }
.af-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #aaa; }
.af-tag { background: var(--charcoal); color: #fff; padding: .28rem .75rem; font-size: .72rem; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.af-tag:hover { background: var(--mink); }
.af-clear { background: none; border: 1px solid var(--sand); padding: .28rem .75rem; font-size: .72rem; color: var(--mink); cursor: pointer; letter-spacing: .08em; transition: all .2s; }
.af-clear:hover { border-color: var(--mink); }

/* SIDEBAR FILTERS */
.sidebar { width: 240px; flex-shrink: 0; }
.sidebar.collapsed { display: none; }
.filter-group { border-bottom: 1px solid var(--sand); padding: 1.2rem 0; }
.filter-group:last-child { border-bottom: none; }
.fg-title { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: .9rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.fg-title i { font-size: .7rem; transition: transform .2s; }
.fg-title.collapsed i { transform: rotate(-90deg); }
.fg-body { display: block; }
.fg-body.collapsed { display: none; }

/* FILTER ITEMS */
.fcheck { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; cursor: pointer; }
.fcheck input { accent-color: var(--charcoal); width: 14px; height: 14px; cursor: pointer; }
.fcheck label { font-size: .82rem; color: #444; cursor: pointer; flex: 1; }
.fcheck .fcount { font-size: .7rem; color: #aaa; margin-left: auto; }
.fcheck:hover label { color: var(--mink); }

/* COLOR FILTER */
.color-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.cf-dot { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid transparent; cursor: pointer; transition: all .2s; position: relative; }
.cf-dot:hover, .cf-dot.active { border-color: var(--charcoal); transform: scale(1.15); }
.cf-dot.active::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .6rem; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.5); }

/* PRICE RANGE */
.price-range { margin-top: .5rem; }
.price-range input[type=range] { width: 100%; accent-color: var(--charcoal); cursor: pointer; }
.price-labels { display: flex; justify-content: space-between; font-size: .75rem; color: #888; margin-top: .4rem; }

/* RATING FILTER */
.rating-opt { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.rating-opt span { font-size: .75rem; color: #888; }
.rating-opt .stars { color: var(--rose); letter-spacing: 2px; font-size: .8rem; }
.rating-opt:hover .stars { opacity: .7; }

/* PRODUCT GRID */
.prod-area { flex: 1; min-width: 0; }
.pc { cursor: pointer; }
.pc-img { position: relative; overflow: hidden; background: var(--sand); aspect-ratio: 3/4; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pc:hover .pc-img img { transform: scale(1.04); }
.pc-badge { position: absolute; top: .8rem; left: .8rem; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: .28rem .7rem; color: #fff; font-family: 'Lato', sans-serif; font-weight: 700; z-index: 1; }
.bg-new { background: var(--charcoal); }
.bg-sale { background: var(--rose); }
.pc-wish { position: absolute; top: .8rem; right: .8rem; background: rgba(249,245,240,.88); border: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; z-index: 2; font-size: .85rem; }
.pc-wish:hover { color: var(--rose); }
.pc-add { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(44,44,44,.92); color: #fff; text-align: center; padding: .75rem; font-size: .67rem; letter-spacing: .2em; text-transform: uppercase; transform: translateY(100%); transition: transform .3s; cursor: pointer; border: none; width: 100%; font-family: 'Lato', sans-serif; }
.pc:hover .pc-add { transform: translateY(0); }
.pc-info { padding: .65rem 0; }
.pc-info h6 { font-size: .98rem; font-weight: 400; margin-bottom: .2rem; font-family: 'Playfair Display', serif; line-height: 1.3; }
.pc-stars { font-size: .7rem; color: var(--rose); letter-spacing: 2px; }
.pc-price { font-size: .85rem; color: var(--mink); font-weight: 700; }
.pc-old { text-decoration: line-through; color: #bbb; font-size: .78rem; margin-right: .4rem; font-weight: 400; }
.cdots { display: flex; gap: 4px; margin-top: .3rem; }
.cdot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.cdot:hover { border-color: var(--charcoal); }

/* LIST VIEW */
.list-pc { display: flex; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--sand); }
.list-pc-img { width: 140px; min-width: 140px; height: 175px; overflow: hidden; background: var(--sand); position: relative; flex-shrink: 0; }
.list-pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.list-pc:hover .list-pc-img img { transform: scale(1.04); }
.list-pc-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.list-pc-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 400; margin-bottom: .3rem; }
.list-pc-meta { font-size: .78rem; color: #999; margin-bottom: .5rem; }
.list-pc-price { font-size: 1rem; font-weight: 700; color: var(--mink); }
.list-pc-old { text-decoration: line-through; color: #bbb; font-size: .82rem; margin-right: .4rem; font-weight: 400; }
.list-add-btn { background: var(--charcoal); color: #fff; border: none; padding: .5rem 1.2rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; font-family: 'Lato', sans-serif; transition: background .2s; margin-top: .6rem; display: inline-block; }
.list-add-btn:hover { background: var(--mink); }

/* PAGINATION */
.pagination-wrap { display: flex; justify-content: center; align-items: center; gap: .3rem; padding: 3rem 0 1rem; }
.pg-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sand); background: transparent; cursor: pointer; font-size: .82rem; font-family: 'Lato', sans-serif; color: var(--charcoal); transition: all .2s; }
.pg-btn:hover, .pg-btn.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.pg-btn.dots { cursor: default; border: none; }
.pg-btn:hover.dots { background: transparent; color: var(--charcoal); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state i { font-size: 3.5rem; color: var(--sand); display: block; margin-bottom: 1rem; }
.empty-state h4 { font-size: 1.5rem; font-weight: 400; margin-bottom: .5rem; }
.empty-state p { font-size: .85rem; color: #aaa; }

/* FOOTER MINI */
.foot-mini { background: #1a1a1a; color: rgba(249,245,240,.45); padding: 1.5rem; text-align: center; font-size: .78rem; margin-top: 3rem; }
.foot-mini .fb { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #F9F5F0; letter-spacing: .12em; }

/* MOBILE FILTER DRAWER */
.filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 2000; }
.filter-overlay.open { display: block; }
.filter-drawer { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; background: var(--cream); z-index: 2001; overflow-y: auto; padding: 1.5rem; transform: translateX(-100%); transition: transform .3s; }
.filter-overlay.open .filter-drawer { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--sand); }
.drawer-head h5 { font-size: 1.1rem; font-weight: 400; margin: 0; }
.drawer-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--charcoal); }

@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .list-pc-img { width: 100px; min-width: 100px; height: 125px; }
}
