/* ===========================================
   Thread & Thimble Supply - Shop Styles
   =========================================== */

/* --- Shop Section Layout --- */
.shop-section { padding: 32px 0 72px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }

/* --- Sidebar Filters --- */
.shop-sidebar { position: sticky; top: 100px; align-self: start; height: fit-content; }
.filter-header { display: none; }
.filter-group { margin-bottom: 28px; }
.filter-group h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; color: var(--text); }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); cursor: pointer; position: relative; padding-left: 28px; min-height: 20px; }
.filter-option input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 4px; transition: all 0.2s ease; background: var(--bg); }
.filter-option:hover .checkmark { border-color: var(--primary); }
.filter-option input:checked + .checkmark { background: var(--primary); border-color: var(--primary); }
.filter-option input:checked + .checkmark::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filter-close { display: none; }

/* --- Shop Toolbar --- */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); gap: 16px; flex-wrap: wrap; }
.filter-toggle { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--bg-cream); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort label { font-size: 13px; color: var(--text-muted); }
.sort-select { width: auto; min-width: 160px; font-size: 13px; padding: 8px 32px 8px 12px; }
.shop-results { font-size: 13px; color: var(--text-muted); margin-left: auto; }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 64px 0; }
.empty-state .empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-cream); color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* --- Filter Overlay (Mobile) --- */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }
  .shop-sidebar.active { transform: translateX(0); }
  .filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
  .filter-header h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
  .filter-close { display: flex; background: none; border: none; padding: 4px; color: var(--text); }
  .filter-toggle { display: flex; }
  .btn-block { margin-top: 8px; }
}

@media (max-width: 768px) {
  .shop-toolbar { gap: 8px; }
  .shop-results { width: 100%; text-align: left; margin-left: 0; }
}
