/* ============================================================
   All Products Page — catalog layout (mockup)
   ============================================================ */
.all-products-page {
  --ap-red: #b30000;
  --ap-black: #111111;
  --ap-gray-100: #f5f5f5;
  --ap-gray-200: #ececec;
  --ap-gray-300: #d9d9d9;
  --ap-gray-500: #777777;
  --ap-gray-700: #444444;
  background: #ffffff;
  color: var(--ap-black);
  font-family: "Barlow", "Noto Sans", sans-serif;
}

.all-products-page .container {
  max-width: 1240px;
}

.page-all-products .main-header {
  box-shadow: none;
  border-bottom: 1px solid var(--ap-gray-200);
}

/* Hero */
.ap-hero {
  background: #ffffff;
  padding: 18px 0 6px;
}

.ap-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.ap-hero__eyebrow {
  display: block;
  color: var(--ap-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ap-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ap-black);
}

.ap-hero__subtitle {
  margin: 0;
  max-width: 480px;
  color: var(--ap-gray-500);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ap-hero__media {
  overflow: hidden;
  min-height: 132px;
  background: transparent;
}

.ap-hero__media img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: contain;
  object-position: center right;
}

/* Breadcrumb */
.ap-breadcrumb {
  padding: 4px 0 12px;
  background: #fff;
}

.ap-breadcrumb__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ap-gray-500);
}

.ap-breadcrumb__nav a {
  color: var(--ap-gray-500);
  text-decoration: none;
}

.ap-breadcrumb__nav a:hover {
  color: var(--ap-black);
}

.ap-breadcrumb__current {
  color: var(--ap-gray-700);
}

/* Filter panel */
.ap-filter {
  padding: 0 0 16px;
}

.ap-filter__panel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  background: #fff;
  border: 1px solid var(--ap-gray-200);
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
}

.ap-filter__main {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.ap-filter__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ap-black);
}

.ap-filter__controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.ap-filter__selects {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.ap-filter__select {
  min-width: 0;
  width: 124px;
  flex: 0 0 124px;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--ap-gray-300);
  border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 13px;
  color: var(--ap-black);
}

.ap-filter__select:disabled {
  background-color: #fafafa;
  color: #999;
}

.ap-filter__show-btn {
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  background: var(--ap-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.ap-filter__show-btn:hover {
  background: #990000;
}

.ap-filter__side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 0;
  padding-left: 16px;
  border-left: 1px solid var(--ap-gray-200);
}

.ap-filter__search-wrap {
  display: flex;
  align-items: stretch;
  min-width: 230px;
  width: 230px;
  background: #fff;
  border: 1px solid var(--ap-gray-300);
  border-radius: 4px;
  overflow: hidden;
}

.ap-filter__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0 12px;
  height: 36px;
  font-size: 13px;
  outline: none;
}

.ap-filter__search-btn {
  width: 38px;
  border: none;
  border-left: 1px solid var(--ap-gray-200);
  background: #fff;
  color: #666;
  cursor: pointer;
}

.ap-filter__reset-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ap-black);
  border-radius: 4px;
  background: #fff;
  color: var(--ap-black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.ap-filter__reset-btn:hover {
  background: #fafafa;
}

/* Products toolbar */
.ap-products {
  padding: 0 0 48px;
}

.ap-products__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.ap-brand-disclaimer {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--ap-gray-100);
  border-left: 4px solid var(--ap-red);
  border-radius: 4px;
}

.ap-brand-disclaimer__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ap-gray-700);
}

.ap-products__title {
  margin: 0 0 2px;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ap-black);
}

.ap-products__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ap-gray-500);
}

.ap-products__count {
  text-align: center;
  font-size: 13px;
  color: var(--ap-gray-700);
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 4px;
}

.ap-products__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ap-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-sort__label {
  font-size: 13px;
  color: var(--ap-gray-700);
  white-space: nowrap;
}

.ap-sort__select {
  height: 32px;
  min-width: 110px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--ap-gray-300);
  border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 13px;
}

.ap-view-toggle {
  display: flex;
  gap: 4px;
}

.ap-view-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ap-gray-300);
  border-radius: 4px;
  background: #fff;
  color: #999;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ap-view-btn--active {
  color: var(--ap-black);
  border-color: var(--ap-black);
}

/* Product grid */
.ap-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.ap-products__grid--list {
  grid-template-columns: 1fr;
}

.ap-products__grid--list .ap-product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.ap-products__grid--list .ap-product-card__media {
  grid-column: 1;
  grid-row: 1;
}

.ap-products__grid--list .ap-product-card__body {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
}

.ap-products__grid--list .ap-product-card__image,
.ap-products__grid--list .ap-product-card__image img {
  min-height: 180px;
  height: 180px;
}

/* Product card */
.ap-product-card {
  --ap-red: #b30000;
  --ap-black: #111111;
  --ap-gray-200: #ececec;
  --ap-gray-300: #d9d9d9;
  --ap-gray-500: #777777;
  --ap-gray-700: #444444;
  border: 1px solid var(--ap-gray-200);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Barlow", "Noto Sans", sans-serif;
}

.ap-product-card__media {
  position: relative;
}

.ap-product-card__badges {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: calc(100% - 36px);
  pointer-events: none;
}

.ap-product-card--badges-left .ap-product-card__badges {
  left: 8px;
  right: auto;
  align-items: flex-start;
}

.ap-series-badge {
  display: inline-block;
  padding: 6px 10px 6px 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.ap-series-badge--a {
  background: var(--ap-red);
}

.ap-series-badge--b {
  background: #3d3d3d;
}

.ap-status-badge {
  display: inline-block;
  padding: 5px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.ap-status-badge--new {
  background: #FFC247;
  color: #17212B;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 12px;
  letter-spacing: 0.06em;
}

.ap-status-badge--hot {
  background: #ffd400;
  color: #111111;
}

.ap-status-badge--discount {
  background: #dc3545;
}

.ap-product-card--badges-left .ap-series-badge,
.ap-product-card--badges-left .ap-status-badge {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  padding: 5px 14px 5px 10px;
}

.ap-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  border: none;
  background: transparent;
  color: #bbb;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.ap-wishlist.active,
.ap-wishlist:hover {
  color: var(--ap-red);
}

.ap-product-card__image {
  display: block;
  background: #fff;
  min-height: 168px;
  padding: 8px 12px 0;
}

.ap-product-card__image img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: contain;
  object-position: center;
}

.ap-product-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ap-product-card__vehicle {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ap-red);
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 6px;
}

.ap-product-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ap-product-card__info {
  min-width: 0;
  flex: 1;
}

.ap-product-card__specs {
  text-align: right;
  font-size: 10px;
  color: var(--ap-gray-500);
  line-height: 1.45;
  flex-shrink: 0;
  max-width: 42%;
}

.ap-product-card__specs span {
  display: block;
}

.ap-product-card__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ap-black);
}

.ap-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.ap-product-card__title a:hover {
  color: var(--ap-red);
}

.ap-product-card__sku {
  margin: 0;
  font-size: 11px;
  color: var(--ap-gray-500);
}

.ap-product-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.85fr;
  gap: 6px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.ap-btn--explore {
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #2b2b2b;
}

.ap-btn--explore:hover {
  background: #111;
  color: #fff;
}

.ap-btn--whatsapp,
.ap-btn--email {
  background: #fff;
  color: var(--ap-black);
  border: 1px solid var(--ap-gray-300);
}

.ap-btn--whatsapp:hover,
.ap-btn--email:hover {
  background: #fafafa;
}

.ap-btn--whatsapp i {
  color: #25d366;
  font-size: 12px;
}

.ap-btn--email i {
  color: #888;
  font-size: 11px;
}

/* Pagination */
.ap-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ap-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--ap-gray-300);
  border-radius: 2px;
  background: #fff;
  color: var(--ap-gray-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.ap-page-btn--active {
  background: var(--ap-red);
  border-color: var(--ap-red);
  color: #fff;
}

.ap-page-btn--arrow {
  min-width: 36px;
}

.ap-page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--ap-gray-500);
  font-size: 14px;
}

/* No products */
.ap-no-products {
  text-align: center;
  padding: 60px 20px;
}

.ap-no-products__content i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 16px;
}

.ap-no-products__content h3 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 10px;
}

.ap-no-products__content p {
  color: #999;
}

/* Skeleton */
.ap-product-card--skeleton .ap-product-card__image {
  padding: 0;
}

.ap-skeleton {
  display: block;
  background: #e8e8e8;
  border-radius: 4px;
}

.ap-product-card--skeleton .ap-product-card__media {
  position: relative;
}

.ap-skeleton--badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 110px;
  height: 24px;
}

.ap-product-card--badges-left.ap-product-card--skeleton .ap-skeleton--badge {
  left: 8px;
  right: auto;
}

.ap-skeleton--heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.ap-skeleton--image {
  min-height: 168px;
  height: 168px;
  border-radius: 0;
}

.ap-skeleton--line {
  height: 12px;
  width: 70%;
  margin-bottom: 10px;
}

.ap-skeleton--title {
  height: 18px;
  width: 90%;
  margin-bottom: 8px;
}

.ap-skeleton--sku {
  height: 12px;
  width: 55%;
  margin-bottom: 16px;
}

.ap-skeleton--btn {
  height: 34px;
  width: 100%;
}

.ap-skeleton--btn-sm {
  height: 34px;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Responsive */
@media (max-width: 1200px) {
  .ap-filter__search-wrap {
    min-width: 190px;
    width: 190px;
  }
}

@media (max-width: 992px) {
  .ap-hero__inner {
    grid-template-columns: 1fr;
  }

  .ap-hero__media img {
    height: 180px;
    object-position: center;
  }

  .ap-filter__panel {
    flex-direction: column;
  }

  .ap-filter__main {
    padding-right: 0;
  }

  .ap-filter__controls,
  .ap-filter__selects {
    flex-wrap: wrap;
  }

  .ap-filter__select {
    flex: 1 1 calc(25% - 8px);
    width: auto;
  }

  .ap-filter__side {
    width: 100%;
    margin-top: 10px;
    padding-left: 0;
    padding-top: 10px;
    border-left: none;
    border-top: 1px solid var(--ap-gray-200);
    flex-wrap: wrap;
  }

  .ap-filter__search-wrap {
    flex: 1;
    min-width: 180px;
    width: auto;
  }

  .ap-products__toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ap-products__count {
    text-align: left;
    padding-bottom: 0;
  }

  .ap-products__actions {
    justify-content: space-between;
  }

  .ap-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ap-products__grid,
  .ap-products__grid--list .ap-product-card {
    grid-template-columns: 1fr;
  }

  .ap-products__grid--list .ap-product-card__media,
  .ap-products__grid--list .ap-product-card__body {
    grid-column: 1;
    grid-row: auto;
  }

  .ap-filter__selects {
    width: 100%;
  }

  .ap-filter__select {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .ap-filter__show-btn {
    width: 100%;
  }

  .ap-product-card__meta {
    flex-direction: column;
  }

  .ap-product-card__specs {
    text-align: left;
    max-width: none;
  }

  .ap-product-card__actions {
    grid-template-columns: 1fr;
  }
}

/* Skeleton Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  pointer-events: none;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 80px 0 60px;
  color: white;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 0;
}

/* Product Filter */
.product-filter {
  background: #f8f9fa;
  padding: 40px 0;
  border-bottom: 1px solid #e9ecef;
}

.filter-container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.filter-item {
  flex: 1;
  min-width: 200px;
}

.filter-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-select:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-clear,
.btn-search {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear {
  background: #6c757d;
  color: white;
}

.btn-clear:hover {
  background: #5a6268;
  transform: translateY(-2px);
}



.btn-search:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Products Grid */
.products-grid {
  padding: 60px 0;
  background: white;
}

.products-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.products-count {
  font-size: 1.1rem;
  color: #6c757d;
}

.sort-options {
  text-align: right;
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
  font-size: 14px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  min-height: 600px;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.product-card__media {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-card-divider {
  position: relative;
  height: 2px;
  background: #ececec;
}

.product-card-divider__accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 28%;
  height: 100%;
  background: var(--primary-color, #DC143C);
}

.product-badges {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.product-badge {
  display: inline-block;
  padding: 7px 18px 7px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.badge-new {
  background: #FFC247;
  color: #17212B;
  font-weight: 800;
  text-transform: uppercase;
  padding: 7px 21px 7px 14px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.badge-bestseller {
  background: #ff6b35;
  color: white;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.badge-discount {
  background: #dc3545;
  color: white;
  border-radius: 0 0 6px 0;
}

.product-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.product-breadcrumb__marker {
  width: 14px;
  height: 3px;
  background: var(--primary-color, #DC143C);
  flex-shrink: 0;
}

.product-breadcrumb__text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #1d1d1b);
  line-height: 1.3;
}

.breadcrumb-slash {
  color: var(--primary-color, #DC143C);
  font-weight: 700;
}

.product-code-box {
  background: #f2f2f2;
  border-left: 4px solid var(--primary-color, #DC143C);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.product-code-box span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #1d1d1b);
  line-height: 1.3;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #1d1d1b);
  margin: 0 0 14px;
  line-height: 1.35;
}

.product-name__link {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name__link:hover {
  color: var(--primary-color, #DC143C);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.price-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #DC143C;
}

.price-unit {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.product-actions__row {
  display: flex;
  gap: 8px;
}

.btn-get-info,
.btn-send-email,
.btn-explore-products {
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  line-height: 1;
  min-height: 40px;
  box-sizing: border-box;
}

.btn-get-info,
.btn-send-email {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: 8px 6px;
}

.btn-get-info {
  flex: 0.85 1 0;
}

.btn-send-email {
  flex: 1.15 1 0;
}

.btn-get-info i,
.btn-send-email i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  width: 1em;
  height: 1em;
}

.btn-get-info {
  background: var(--primary-color, #DC143C);
  color: white;
  border: 2px solid var(--primary-color, #DC143C);
}

.btn-get-info:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.25);
}

.btn-send-email {
  background: white;
  color: var(--text-primary, #1d1d1b);
  border: 2px solid var(--primary-color, #DC143C);
}

.btn-send-email i {
  color: var(--primary-color, #DC143C);
}

.btn-send-email:hover {
  background: #fff5f7;
}

.btn-explore-products {
  width: 100%;
  background: white;
  color: var(--text-primary, #1d1d1b);
  border: 2px solid var(--primary-color, #DC143C);
  padding: 8px 40px 8px 16px;
  position: relative;
  font-size: 0.78rem;
  white-space: nowrap;
}

.btn-explore-products i {
  position: absolute;
  right: 16px;
  color: var(--primary-color, #DC143C);
  font-size: 0.9rem;
}

.btn-explore-products:hover {
  background: #fff5f7;
}

.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, #DC143C 0%, #B01030 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, #B01030 0%, #8B0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  margin-top: 20px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #DC143C 0%, #B01030 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #B01030 0%, #8B0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.pagination-btn:disabled {
  background: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-info {
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

/* No Products */
.no-products {
  text-align: center;
  padding: 80px 20px;
}

.no-products-content i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.no-products-content h3 {
  font-size: 1.8rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.no-products-content p {
  color: #999;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-item {
    width: 100%;
    min-width: auto;
  }

  .filter-actions {
    width: 100%;
    justify-content: center;
  }

  .products-header .row {
    flex-direction: column;
    gap: 15px;
  }

  .sort-options {
    text-align: left;
  }

  .products-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 60px 0 40px;
  }

  .filter-container {
    padding: 20px;
    margin: 0 15px;
  }

  .product-info {
    padding: 20px;
  }
}

/* Brands and Partners Section */
.brands-partners-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.brands-partners-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Brands Part */
.brands-part,
.partners-part {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #d32f2f 0%, #f57c00 100%);
  border-radius: 2px;
}

.brands-grid,
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.brand-item,
.partner-item {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-item:hover,
.partner-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.brand-image-wrapper,
.partner-image-wrapper {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.brand-image,
.partner-image {
  max-width: 90%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: brightness(0.95);
}

.brand-item:hover .brand-image,
.partner-item:hover .partner-image {
  transform: scale(1.05);
  filter: brightness(1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .brands-partners-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .section-title {
    font-size: 2rem;
    text-align: center;
  }

  .section-title::after {
    width: 60px;
  }

  .brands-part,
  .partners-part {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .brands-partners-section {
    padding: 50px 20px;
  }

  .brands-partners-container {
    gap: 40px;
  }

  .brands-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .brand-item,
  .partner-item {
    padding: 20px;
    border-radius: 10px;
  }

.brand-item,
.partner-item {
  background: none !important;
  border-radius: 12px;
  padding: 30px;
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}


  .brand-image-wrapper,
  .partner-image-wrapper {
    height: 120px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
  }

  .section-title::after {
    width: 50px;
    height: 3px;
  }
}

@media (max-width: 640px) {
  .brands-partners-section {
    padding: 40px 15px;
  }

  .brands-partners-container {
    gap: 35px;
  }

  .brands-grid,
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .brand-item,
  .partner-item {
    padding: 15px;
    border-radius: 8px;
  }

  .brand-image-wrapper,
  .partner-image-wrapper {
    height: 100px;
  }

  .brand-image,
  .partner-image {
    max-width: 85%;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .section-title::after {
    width: 40px;
    height: 3px;
  }
}

/* Home page sliders + All Products grid: shared product card layout */
.products-slider .ap-product-card {
  flex: 0 0 calc(25% - 20px);
  margin: 0 10px;
  min-width: 250px;
  height: auto;
}

@media (max-width: 1200px) {
  .products-slider .ap-product-card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .products-slider .ap-product-card {
    flex: 0 0 calc(50% - 15px);
    margin: 0 7px;
  }
}

@media (max-width: 480px) {
  .products-slider .ap-product-card {
    flex: 0 0 calc(100% - 16px);
    margin: 0 8px;
  }
}

.products-container .product-info {
  padding: 20px;
  flex: 1;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .product-actions__row {
    flex-direction: column;
  }

  .btn-get-info,
  .btn-send-email {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brands-partners-section {
    padding: 30px 12px;
  }

  .brands-partners-container {
    gap: 30px;
  }

  .brands-grid,
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand-item,
  .partner-item {
    padding: 12px;
    border-radius: 8px;
  }

  .brand-image-wrapper,
  .partner-image-wrapper {
    height: 85px;
  }

  .brand-image,
  .partner-image {
    max-width: 63%;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-weight: 700;
  }

  .section-title::after {
    width: 35px;
    height: 2px;
  }
}
