/* Extracted from storefront.html */

    /* === Storefront Reset === */
    body.storefront-browse {
      background: #f1f1f1;
      margin: 0;
      padding: 0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* === Topbar === */
    .sf-top {
      height: 64px;
      background: #fff;
      border-bottom: 1px solid #ddd;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 32px;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .sf-top-logo img {
      height: 41px;
      display: block;
    }
    .sf-top-search {
      position: relative;
      width: 380px;
    }
    .sf-top-search input {
      width: 100%;
      height: 42px;
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      padding: 0 16px 0 42px;
      font-size: 0.9375rem;
      color: #1e293b;
      background: #f1f5f9;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      outline: none;
    }
    .sf-top-search input:focus {
      border-color: #0364B1;
      box-shadow: 0 0 0 3px rgba(3,100,177,0.1);
      background: #fff;
    }
    .sf-top-search input::placeholder { color: #94a3b8; }
    .sf-top-search input::placeholder {
      color: #94a3b8;
    }
    .sf-top-search .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      pointer-events: none;
    }
    .sf-top-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .sf-top-location {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.875rem;
      font-weight: 500;
      color: #475569;
    }
    .sf-top-location svg {
      color: #0364B1;
    }
    .sf-top-cart {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 4px;
      cursor: pointer;
      color: #475569;
      transition: background 0.15s;
    }
    .sf-top-cart:hover {
      background: #f1f5f9;
    }
    .sf-top-cart .cart-badge {
      position: absolute;
      top: 2px;
      right: 2px;
      min-width: 18px;
      height: 18px;
      border-radius: 9px;
      background: #0364B1;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 0 5px;
      line-height: 1;
    }
    .sf-top-cart .cart-badge.visible {
      display: flex;
    }

    /* === Category Navigation === */
    .sf-categories {
      background: #fff;
      border-bottom: 1px solid #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 0;
    }
    .sf-cat-tab {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 16px 24px;
      font-size: 0.9375rem;
      font-weight: 600;
      color: #64748b;
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      transition: color 0.15s, border-color 0.15s;
      white-space: nowrap;
    }
    .sf-cat-tab:hover {
      color: #334155;
    }
    .sf-cat-tab.active {
      color: #0364B1;
      border-bottom-color: #0364B1;
    }
    .sf-cat-tab svg {
      flex-shrink: 0;
    }

    /* === Main Layout === */
    .sf-main {
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 16px;
      padding: 20px 24px;
      width: 100%;
      flex: 1;
    }

    /* === Filter Sidebar === */
    .sf-sidebar {
      width: 100%;
      flex-shrink: 0;
      position: sticky;
      top: 88px;
      align-self: flex-start;
      max-height: calc(100vh - 112px);
      overflow-y: auto;
      background: #fff;
      border: 1px solid #d5d5d5;
      border-radius: 4px;
      padding: 14px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      transition: width 0.2s, opacity 0.2s, padding 0.2s;
    }
    .sf-sidebar.hidden {
      display: none;
    }
    .sf-main:has(.sf-sidebar.hidden) {
      grid-template-columns: 1fr;
    }
    .sf-sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid #e2e8f0;
    }
    .sf-sidebar-header h3 {
      font-size: 0.8125rem;
      font-weight: 700;
      color: #1a1a2e;
      margin: 0;
    }
    .sf-sidebar-header a {
      font-size: 0.75rem;
      color: #0364B1;
      text-decoration: none;
      font-weight: 500;
      cursor: pointer;
    }
    .sf-sidebar-header a:hover {
      text-decoration: underline;
    }

    .sf-filter-group {
      margin-bottom: 12px;
    }
    .sf-filter-title {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #64748b;
      margin-bottom: 6px;
    }
    .sf-filter-title.collapsible {
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .sf-filter-title.collapsible::after {
      content: '';
      width: 5px;
      height: 5px;
      border-right: 1.5px solid #94a3b8;
      border-bottom: 1.5px solid #94a3b8;
      transform: rotate(45deg);
      transition: transform 0.2s;
    }
    .sf-filter-title.collapsible.collapsed::after {
      transform: rotate(-45deg);
    }
    .sf-filter-items {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .sf-filter-items.collapsed {
      display: none;
    }
    .sf-check {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.75rem;
      color: #334155;
      cursor: pointer;
      padding: 2px 0;
    }
    .sf-check input[type="checkbox"] {
      width: 14px;
      height: 14px;
      border-radius: 3px;
      accent-color: #0364B1;
      cursor: pointer;
      margin: 0;
    }
    /* Filter toggle button */
    .sf-filter-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      padding: 0;
      border: 1px solid #d0d5dd;
      border-radius: 4px;
      background: #fff;
      color: #475569;
      cursor: pointer;
      transition: all 0.15s;
      vertical-align: middle;
    }
    .sf-filter-toggle:hover { border-color: #0364B1; color: #0364B1; }
    .sf-filter-toggle.active { border-color: #0364B1; color: #0364B1; background: #f0f7ff; }
    /* Availability toggle */
    .sf-avail-toggle:not(.on) { background: #cbd5e1 !important; }
    .sf-avail-toggle:not(.on) > div { left: 2px !important; }
    .sf-avail-toggle.on > div { left: 18px; }

    /* === Product Grid Area === */
    .sf-content {
      flex: 1;
      min-width: 0;
    }
    .sf-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }
    .sf-results-count {
      font-size: 0.875rem;
      color: #64748b;
      display: flex;
      align-items: center;
    }
    .sf-results-count strong {
      color: #1a1a2e;
      font-weight: 600;
    }
    .sf-sort select {
      height: 36px;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      padding: 0 32px 0 12px;
      font-size: 0.8125rem;
      color: #334155;
      background: #fff;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      cursor: pointer;
      outline: none;
    }
    .sf-sort select:focus {
      border-color: #0364B1;
    }

    /* === Product Grid === */
    .sf-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
    .sf-card.sf-hidden {
      display: none !important;
    }
    .sf-main:has(.sf-sidebar.hidden) .sf-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* === Product Card === */
    .sf-card {
      background: #fff;
      border: 1px solid #d5d5d5;
      border-radius: 4px;
      overflow: hidden;
      min-width: 0;
      transition: box-shadow 0.2s, transform 0.2s;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .sf-card:hover {
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      transform: translateY(-2px);
      text-decoration: none;
      color: inherit;
    }
    .sf-card-img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
      border-bottom: 1px solid #eee;
    }
    .sf-card-body {
      padding: 10px 12px 10px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      min-width: 0;
    }
    .sf-card-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px;
    }
    .sf-card-name {
      font-size: 0.875rem;
      font-weight: 600;
      color: #1a1a2e;
      line-height: 1.3;
    }
    .sf-card-desc {
      font-size: 0.75rem;
      color: #64748b;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .sf-card-type {
      font-size: 0.75rem;
      color: #145fc9;
      margin-top: auto;
    }
    .sf-card-dims {
      font-size: 0.8125rem;
      color: #334155;
      font-weight: 500;
    }
    .sf-card-price {
      font-size: 0.875rem;
      font-weight: 700;
      color: #1a1a2e;
      white-space: nowrap;
    }
    .sf-card-avail-inline {
      font-weight: 500;
      color: #16a34a;
    }
    .sf-card-price-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      color: #64748b;
      background: #f1f5f9;
      padding: 4px 10px;
      border-radius: 5px;
      margin-top: 6px;
      width: fit-content;
    }
    .sf-add-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      border: 1.5px solid #0364B1;
      border-radius: 5px;
      background: #fff;
      color: #0364B1;
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      white-space: nowrap;
    }
    .sf-add-btn:hover {
      background: #0364B1;
      color: #fff;
    }
    .sf-add-btn.added {
      border-color: #16a34a;
      color: #16a34a;
      background: #f0fdf4;
      pointer-events: none;
    }

    /* === Floating Inquiry Bar === */
    .sf-inquiry-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #fff;
      border-top: 1px solid #e2e8f0;
      box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
      z-index: 100;
      display: none;
    }
    .sf-inquiry-bar.visible {
      display: block;
    }
    .sf-inquiry-bar-inner {
      max-width: 800px;
      margin: 0 auto;
      padding: 14px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .sf-inquiry-bar-info {
      font-size: 0.9375rem;
      color: #334155;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .sf-inquiry-bar-info strong {
      color: #1a1a2e;
    }
    .sf-inquiry-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 40px;
      padding: 0 24px;
      border-radius: 4px;
      background: #0364B1;
      color: #fff;
      font-size: 0.875rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s;
    }
    .sf-inquiry-btn:hover {
      background: #024f8e;
      color: #fff;
      text-decoration: none;
    }

    /* === Pagination === */
    .sf-pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid #e2e8f0;
    }
    .sf-pagination-info {
      font-size: 0.8125rem;
      color: #64748b;
    }
    .sf-pagination-pages {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .sf-page-btn {
      min-width: 34px;
      height: 34px;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      background: #fff;
      color: #334155;
      font-size: 0.8125rem;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.15s, background 0.15s;
    }
    .sf-page-btn:hover {
      border-color: #0364B1;
      color: #0364B1;
    }
    .sf-page-btn.active {
      background: #0364B1;
      color: #fff;
      border-color: #0364B1;
    }
    .sf-page-btn:disabled {
      opacity: 0.4;
      cursor: default;
    }

    /* === Footer === */
    .sf-footer {
      text-align: center;
      padding: 28px 20px;
      font-size: 0.75rem;
      color: #94a3b8;
      border-top: 1px solid #e2e8f0;
      background: #fff;
      margin-top: auto;
    }
  
