/* Products page pixel-precision styles */
.products .section {
  padding: 48px 0;
}

@media (min-width: 640px) {
  .products .section {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .products .section {
    padding: 80px 0;
  }
}

/* ── Products Header Styling - Matches Regional Hub / Davao Layout & Styling ── */
.products-page-wrap {
  padding-top: 140px;
}
@media (max-width: 768px) {
  .products-page-wrap {
    padding-top: 110px;
  }
}

.products-hero {
  padding: 48px 20px 56px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.products-h1,
.products .uk-header-row-title {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  padding-bottom: 0 !important;
  text-align: left !important;
}

.products-hero-desc,
.products .uk-header-row-text {
  max-width: 900px;
  font-size: 17px !important;
  color: #334155 !important;
  line-height: 1.7 !important;
  text-align: left;
}

.products-hero-desc p,
.products .uk-header-row-text p {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  margin-bottom: 16px;
}

.products-hero-desc p:last-child,
.products .uk-header-row-text p:last-child {
  margin-bottom: 0;
}

.products-hero-desc strong,
.products .uk-header-row-text strong {
  color: #0f172a;
  font-weight: 700;
}

.products .uk-section {
  padding-top: 0;
  padding-bottom: 20px;
}



/* ── Modern IKEA-Style Category Navigation Cards ── */
.products .category-slider-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px 32px;
  position: relative;
}

.products .category-slider-container {
  position: relative;
  width: 100%;
}

.products .category-nav {
  display: flex;
  gap: 18px;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 2px 14px;
}

.products .category-nav::-webkit-scrollbar {
  display: none;
}

/* Category Card */
.products .category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  background-color: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 4px;
  min-width: 192px;
  width: 192px;
  flex: 0 0 192px;
  height: 215px;
  padding: 20px 16px 18px;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 1024px) {
  .products .category-card {
    min-width: 200px;
    width: 200px;
    flex: 0 0 200px;
    height: 218px;
  }
}

.products .category-card-thumb {
  width: 100%;
  height: 117px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.products .category-card-thumb img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.products .category-card-icon-fallback {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.products .category-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1.25;
  margin: 0;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  transition: color 0.2s ease;
}

/* Card Hover */
.products .category-card:hover {
  background-color: #ededed;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.products .category-card:hover .category-card-thumb img {
  transform: scale(1.08);
}

/* Card Active / Selected */
.products .category-card.active {
  background-color: #ededed;
  border-color: #111827;
}

.products .category-card.active .category-card-name {
  color: #111827;
  font-weight: 800;
}

/* Slider Nav Buttons */
.products .cat-nav-btn {
  position: absolute;
  top: calc(50% - 24px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #111827;
}

.products .cat-nav-prev {
  left: -16px;
}

.products .cat-nav-next {
  right: -16px;
}

.products .cat-nav-btn:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: scale(1.06);
}

.products .cat-nav-btn:active {
  transform: scale(0.95);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .products .uk-section {
    padding-top: 100px;
  }

  .products .uk-header-row-title {
    font-size: 32px;
    padding-bottom: 16px;
  }

  .products .uk-header-row-text {
    font-size: 14px;
  }

  .products .category-slider-wrapper {
    padding: 0 16px 20px;
  }

  .products .cat-nav-btn {
    display: none;
  }

  .products .category-nav {
    gap: 13px;
    padding: 4px 0 12px;
    scroll-snap-type: x mandatory;
  }

  .products .category-card {
    min-width: 156px;
    width: 156px;
    flex: 0 0 156px;
    height: 188px;
    padding: 16px 10px 13px;
    scroll-snap-align: start;
  }

  .products .category-card-thumb {
    height: 98px;
  }

  .products .category-card-thumb img {
    max-height: 85px;
  }

  .products .category-card-name {
    font-size: 14px;
  }
}

/* Filters dropdown panel */
.products .filters {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.products .filters .heading {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.products .filters label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  cursor: pointer;
}

.products .filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  accent-color: #ef4444;
}

.products .filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
}

.products .filters-dropdown {
  display: none;
  margin: 0 4% 16px;
}

.products .filters-dropdown.open {
  display: block;
}

/* Search + Filter row */
.products .search-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.products .search-filter-row .search {
  flex: 1;
  position: relative;
}

.products .search-filter-row .search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 44px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  background: #fff;
}

.products .search-filter-row .search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: .5;
}

/* Filter toggle button */
.products .filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.products .filter-btn:hover {
  border-color: #1d1d1f;
  color: #1d1d1f;
}

.products .filter-btn.active {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}

.products .filter-btn.active svg {
  stroke: #fff;
}

/* Product cards grid — centered, full width */
.products .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 100%;
}

@media (min-width: 640px) {
  .products .search-filter-row {
    margin-left: 0;
    margin-right: 0;
  }
  .products .filters-dropdown {
    margin-left: 0;
    margin-right: 0;
  }
  .products .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .products .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* UI Kit Card Overrides for Products Page */
.products .uk-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.products .uk-card-inner {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.products .uk-card-header {
  padding: 28px 28px 0;
  min-height: 120px;
}

/* Card Status Bar & Pill */
.products .uk-card-status-bar {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.products .uk-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.products .uk-status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Available */
.products .uk-status-pill.status-available {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.products .uk-status-pill.status-available .status-dot {
  background: #10b981;
}

/* In Transit */
.products .uk-status-pill.status-in-transit {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.products .uk-status-pill.status-in-transit .status-dot {
  background: #f59e0b;
}

/* Committed */
.products .uk-status-pill.status-committed {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.products .uk-status-pill.status-committed .status-dot {
  background: #f97316;
}

/* Pre-order */
.products .uk-status-pill.status-pre-order {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
.products .uk-status-pill.status-pre-order .status-dot {
  background: #a855f7;
}

/* Default / Other */
.products .uk-status-pill.status-other {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
.products .uk-status-pill.status-other .status-dot {
  background: #9ca3af;
}

.products .uk-card-img-wrap {
  position: relative;
  height: 280px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  flex: 1;
}

.products .uk-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.products .uk-card:hover .uk-card-img {
  transform: scale(1.08);
}

.products .uk-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.products .uk-card-title {
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products .uk-card-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Variations Section */
.products .uk-card-variations {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 28px 24px;
  margin-top: auto;
  min-height: 68px;
}

.products .uk-var-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
}

.products .uk-var-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.products .uk-var-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  line-height: 1.2;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.products .uk-card:hover .uk-var-chip {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.products .uk-var-chip-more {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 500;
  cursor: default;
}

@media (max-width: 640px) {
  .products .grid {
    gap: 16px;
  }
  .products .uk-card-header {
    padding: 20px 20px 0;
  }
  .products .uk-card-img-wrap {
    height: 180px;
    padding: 16px 20px;
  }
  .products .uk-card-variations {
    padding: 0 20px 18px;
  }
  .products .uk-card-body {
    padding: 16px 20px 20px;
  }
  .products .uk-card-title {
    font-size: 16px;
  }
  .products .uk-card-badge {
    top: 12px;
    right: 12px;
  }
}