/* ============================================================
   ASSOCIATED OFFERINGS - Elite Services Style
   Adapted for Community UI Design System
   ============================================================ */

.associated-offerings-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .associated-offerings-main {
    padding: 24px 16px;
  }
}

.page-header {
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .page-header {
    margin-bottom: 24px;
  }

  .page-header h1 {
    font-size: var(--t-2xl);
  }
}

.page-header h1 {
  font-size: var(--t-3xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.page-header p {
  font-size: var(--t-md);
  color: var(--muted);
}

/* Container Layout - 66% / 33% split */
.offerings-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
  margin-top: 28px;
}

/* Ensure proper vertical alignment */
.offerings-main,
.offerings-vendors-sidebar {
  align-self: start;
}

.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Ensure consistent widths for all sections */
.offerings-main,
.offerings-vendors-sidebar {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.offerings-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.offerings-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}

/* Search and Filters Card */
.search-filters-card {
  margin-bottom: 0 !important;
  position: relative;
  z-index: 100;
  overflow: visible !important;
}

/* Full Width Search Widget */
.search-filters-full-width {
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
}

.search-filters-content {
  padding: 24px;
  position: relative;
  overflow: visible !important;
  z-index: 100;
}

/* Search Bar Wrapper - Contains search bar and results dropdown */
.offerings-search-bar-wrapper {
  position: relative;
  width: 100%;
  z-index: 100;
}

/* Search Bar - Full Width */
.offerings-search-bar {
  display: flex;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.offerings-search-input {
  flex: 1;
  padding: 14px 18px;
  padding-right: 60px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--text);
  font-size: var(--t-md);
  font-weight: 600;
  transition: all 0.2s var(--ease);
  font-family: inherit;
  width: 100%;
}

.offerings-search-input:focus {
  outline: none;
  border-color: var(--brand2);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.offerings-search-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.offerings-search-btn {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-top-right-radius: var(--r12);
  border-bottom-right-radius: var(--r12);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
  position: absolute;
  right: 0;
  height: 100%;
}

.offerings-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

/* Search Results Dropdown */
.offerings-search-results {
  position: absolute !important;
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r12) !important;
  box-shadow: var(--shadow3) !important;
  z-index: 999999 !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: none !important;
  margin: 0 !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 8px !important;
}

.offerings-search-results.active {
  display: block !important;
}

.offerings-search-results-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.offerings-search-results-section:last-child {
  border-bottom: none;
}

.offerings-search-results-header {
  padding: 8px 16px;
  font-size: var(--t-xs);
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offerings-search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 12px;
}

.offerings-search-result-item:hover {
  background: var(--panel2);
}

.offerings-search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.offerings-search-result-content {
  flex: 1;
  min-width: 0;
}

.offerings-search-result-title {
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offerings-search-result-subtitle {
  font-size: var(--t-sm);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offerings-search-result-type {
  padding: 4px 8px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 6px;
  font-size: var(--t-xs);
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  padding: 8px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: var(--t-sm);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--brand);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: var(--brand);
  color: white;
}

/* Categories Section */
.offerings-categories-section {
  margin-bottom: 0;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Full Width Categories Section */
.categories-full-width {
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
  margin-top: 28px;
}

.category-header {
  margin-bottom: 20px;
}

.category-header h2 {
  font-size: var(--t-2xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.category-header p {
  color: var(--muted);
  font-size: var(--t-md);
}

.category-scroller-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  /* Show scrollbar at bottom */
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--panel2);
  -webkit-overflow-scrolling: touch;
}

.category-scroller-wrapper::-webkit-scrollbar {
  height: 8px;
}

.category-scroller-wrapper::-webkit-scrollbar-track {
  background: var(--panel2);
  border-radius: 4px;
}

.category-scroller-wrapper::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
  transition: background 0.2s var(--ease);
}

.category-scroller-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.9);
}

.category-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box;
  /* Don't constrain width - let it grow to fit all cards */
  width: max-content;
  min-width: 100%;
}

/* Scrollbar is now on the wrapper, not the grid */

.category-card {
  flex: 0 0 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  padding: 16px 12px;
  background: linear-gradient(135deg, var(--panel), rgba(124, 58, 237, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--r12);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(14, 165, 233, 0.05));
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.1));
}

.category-card-title {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.category-card-count {
  font-size: var(--t-xs);
  color: var(--muted);
  font-weight: 600;
}

/* Services Section */
.offerings-section {
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Services Section - 66% width */
.services-section-66 {
  width: 100%;
  max-width: 100%;
}

/* Collaboration Section - 33% width */
.collaboration-section-33 {
  width: 100%;
  max-width: 100%;
}

.pagination-wrapper {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.services-header h2 {
  font-size: var(--t-2xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.services-header p {
  color: var(--muted);
  font-size: var(--t-md);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-controls label {
  font-size: var(--t-md);
  color: var(--muted);
  font-weight: 700;
}

.sort-controls select {
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: var(--t-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}

.sort-controls select:focus {
  outline: none;
  border-color: var(--brand2);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow1);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow3);
  border-color: var(--brand);
}

.service-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: fill;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(14, 165, 233, 0.1));
}

.service-card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.service-card-title {
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.service-card-vendor {
  font-size: var(--t-xs);
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.service-card-vendor:hover {
  text-decoration: underline;
}

.service-card-description {
  font-size: var(--t-sm);
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.service-tag {
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  font-size: var(--t-xs);
  color: var(--brand);
  font-weight: 700;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.service-card-price {
  display: flex;
  flex-direction: column;
}

.service-price-regular {
  font-size: var(--t-xs);
  color: var(--muted);
  text-decoration: line-through;
}

.service-price-shield {
  font-size: var(--t-xl);
  font-weight: 900;
  color: var(--brand);
}

.service-card-actions {
  display: flex;
  gap: 8px;
}

.service-card-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: var(--t-sm);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.service-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

.trending-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  border-radius: 20px;
  font-size: var(--t-xs);
  font-weight: 800;
  color: white;
  box-shadow: 0 2px 8px rgba(255,107,107,.4);
  z-index: 1;
}

/* Vendors Sidebar */
/* Right Sidebar */
.offerings-vendors-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-widget {
  display: flex;
  flex-direction: column;
  max-height: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

.sidebar-widget:first-child {
  margin-top: 0;
  padding-top: 0;
}

.sidebar-widget .card-header {
  flex-shrink: 0;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget .card-header h2 {
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.sidebar-widget .card-header p {
  font-size: var(--t-sm);
  color: var(--muted);
  margin: 0;
}

.sidebar-widget .card-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: 800px;
}

.sidebar-widget .card-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-widget .card-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-widget .card-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar-widget .card-content::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.vendors-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  overflow: hidden;
  width: 100%;
}

.vendor-card-mini {
  padding: 18px;
  background: linear-gradient(135deg, var(--panel), rgba(124, 58, 237, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--r16);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: fit-content;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.vendor-card-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.vendor-card-mini:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(14, 165, 233, 0.05));
}

.vendor-card-mini:hover::before {
  transform: scaleX(1);
}

.vendor-card-mini-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.vendor-card-mini-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--r12);
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: var(--shadow1);
  flex-shrink: 0;
}

.vendor-card-mini-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.vendor-card-mini-name {
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-card-mini-type {
  font-size: var(--t-xs);
  color: var(--brand);
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 6px;
  display: inline-block;
}

.vendor-card-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.vendor-card-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.03));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.vendor-card-mini-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.vendor-card-mini-stat:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.05));
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
  box-shadow: var(--shadow1);
}

.vendor-card-mini-stat:hover::before {
  opacity: 1;
}

.vendor-card-mini-stat-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vendor-card-mini-stat-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.vendor-card-mini-stat:hover .vendor-card-mini-stat-icon-wrapper {
  transform: scale(1.1);
  background: rgba(124, 58, 237, 0.2);
}

.vendor-card-mini-stat-icon-wrapper svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand);
  stroke-width: 2.5;
}

.vendor-card-mini-stat-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-top: 4px;
}

.vendor-card-mini-stat-value {
  font-size: var(--t-xl);
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.vendor-card-mini-expertise {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
}

.vendor-card-mini-expertise-label {
  font-size: var(--t-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 800;
}

.vendor-card-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 0;
  width: 100%;
}

.vendor-card-mini-tag {
  padding: 4px 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 6px;
  font-size: var(--t-xs);
  color: var(--brand);
  font-weight: 700;
  white-space: normal;
  word-wrap: break-word;
  overflow: hidden;
  max-width: 100%;
  flex: 0 1 auto;
  line-height: 1.3;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 24px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: var(--t-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--panel2);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: var(--brand);
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Service Detail Modal */
.service-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.service-detail-modal.active {
  display: flex;
}

.service-detail-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.service-detail-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  box-shadow: var(--shadow4);
  max-width: 1600px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  z-index: 1;
  margin: auto;
}

.service-detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  z-index: 10;
}

.service-detail-close:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}

/* Enhanced Modal Content Styling for Larger Size */
.service-detail-content > div {
  padding: 32px 40px;
}

@media (min-width: 1400px) {
  .service-detail-content {
    max-width: 1800px;
  }
  
  .service-detail-content > div {
    padding: 40px 48px;
  }
}

@media (max-width: 1200px) {
  .service-detail-content {
    max-width: 95%;
    width: 95%;
  }
}

@media (max-width: 768px) {
  .service-detail-modal {
    padding: 10px;
  }
  
  .service-detail-content {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    border-radius: var(--r16);
  }
  
  .service-detail-content > div {
    padding: 24px 20px;
  }
  
  .service-detail-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Vendor Detail Modal */
.vendor-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.vendor-detail-modal.active {
  display: flex;
}

.vendor-detail-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.vendor-detail-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  box-shadow: var(--shadow4);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.vendor-detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  z-index: 10;
}

.vendor-detail-close:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
  .offerings-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .offerings-vendors-sidebar {
    position: relative;
    max-height: none;
    height: auto;
    top: 0;
  }

  .sidebar-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sidebar-widget .card-content {
    max-height: 600px;
  }
}

@media (max-width: 900px) {
  .offerings-container {
    grid-template-columns: 1fr;
  }
  
  .services-section-66,
  .collaboration-section-33 {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .sidebar-widgets {
    grid-template-columns: 1fr;
  }

  .offerings-main {
    gap: 24px;
  }

  .search-filters-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .category-scroller-wrapper {
    padding-bottom: 6px;
  }
  
  .category-scroller-wrapper::-webkit-scrollbar {
    height: 6px;
  }
  
  .category-grid {
    gap: 8px !important;
  }
  
  .category-card {
    flex: 0 0 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    padding: 12px 8px;
  }
  
  .vendor-card-mini-stats {
    grid-template-columns: 1fr;
  }
}

