#pc-guide {
  background-color: #f8f9fa; /* Background color for the entire page, even margins */
}

/* Mobile */
@media (max-width: 767px) {
  body {
    background-color: #f8f9fa; /* Overwrite full ALTERNATE background on mobile */
  }
}

#pc-guide .row > * {
  background-color: transparent; /* Makes image visible behind the services cards */
}

/* GRAY BACKGROUND ---------------------------------- */

.gray-background {
  background-color: #f8f9fa;
  padding-top: 1px;
}

/* HERO ---------------------------------- */

.hero-banner {
  height: 300px;
  background: linear-gradient(to right, #f00028, #c5001d);
  position: relative;
  margin: 30px;
  margin-bottom: 0px;
  border-radius: 5px;
  overflow: hidden;
}

.hero-overlay {
  display: none; /* Disabled: image has transparent parts, overlay would show through */
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 30px;
}

.hero-left {
  color: white;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-left h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-left .subtitle {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.feature img {
  margin-right: 10px;
}

.feature span {
  font-size: 24px;
  font-weight: 500;
}

.hero-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40%;
  max-width: 100%;
  padding-right: 30px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-right img {
  max-height: 200px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.deco {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(255, 151, 175, 0.3);
  z-index: 1;
}

.deco-1 {
  right: 130px;
  top: 67px;
}

.deco-2 {
  right: 375px;
  bottom: 36px;
}

.deco-3 {
  right: 300px;
  top: 43px;
}

.deco-4 {
  right: 115px;
  top: 27px;
}

@media (max-width: 768px) {
  .hero-banner {
    height: auto;
    min-height: 200px;
    margin: 15px 0 0;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-left h1 {
    font-size: 24px;
  }

  .hero-left .subtitle,
  .feature span {
    font-size: 16px;
  }

  .hero-right,
  .deco {
    display: none;
  }
}

/* PC LINEUP ---------------------------------- */

#pc-guide .pc-lineup {
  padding: 30px 30px 0;
}

#pc-guide .pc-lineup-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

#pc-guide .pc-lineup-link:hover {
  transform: translateY(-4px);
}

#pc-guide .pc-lineup-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  transition: box-shadow 0.2s ease;
}

#pc-guide .pc-lineup-link:hover .pc-lineup-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#pc-guide .pc-lineup-media {
  margin-top: auto;
  flex-shrink: 0;
}

#pc-guide .pc-lineup-media img {
  display: block;
  margin: 0 auto;
  background: #fff;
}

#pc-guide .pc-lineup-cta {
  margin-top: 1rem;
  display: inline-block;
}

@media (max-width: 767px) {
  #pc-guide .pc-lineup {
    padding: 15px 0 0;
  }

  #pc-guide .pc-lineup-card {
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  #pc-guide .pc-lineup-link:active .pc-lineup-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  #pc-guide .pc-lineup-title {
    font-size: 1.25rem;
  }

  #pc-guide .pc-lineup-desc {
    font-size: 15px;
    line-height: 1.45;
  }
}

/* PC SERVICES ----------------------------------*/

#pc-guide .pc-services {
  --pc-services-padding-top: 150px;
  position: relative;
  padding: 30px;
  padding-bottom: 0;
  padding-top: var(--pc-services-padding-top);
  margin-top: 30px;
  background-color: #f8f9fa;
}

/* Banner image reaches to 30px below where the first row of cards starts */
#pc-guide .pc-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--pc-services-padding-top) + 60px);
  background-image: url("../download/b2c_be_nl/pic/pcguide/page-main/services-banner.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

#pc-guide .pc-services .row {
  position: relative;
  z-index: 1;
  background-color: transparent;
}

#pc-guide .pc-services-card {
  background-color: white;

  border-color: #e2e2e2;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;

  padding: 30px; /* Card padding */
  text-align: center;

  /* To ensure all cards have the same height */
  display: flex;
  flex-direction: column;
  justify-content: center; /* So the content is centered vertically */
  width: 100%;
  height: 100%;
}

#pc-guide .pc-services-card img {
  align-self: center; /* So the svg dont become huge */
}

#pc-guide .pc-services-card .service-title {
  margin-top: 20px; /* Space between svg and title */
  margin-bottom: 20px;
}

#pc-guide .pc-services-card p {
  background-color: transparent;
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .pc-services {
    padding: 15px;
    padding-top: var(--pc-services-padding-top);
  }

  #pc-guide .pc-services-card {
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  #pc-guide .pc-services-card .service-title {
    font-size: 1.1rem;
    margin-top: 16px;
    margin-bottom: 12px;
  }

  #pc-guide .pc-services-card p {
    font-size: 14px;
    line-height: 1.45;
  }
}

/*PCB BANNER ----------------------------------*/

#pc-guide .pcb-banner {
  padding: 15px 30px 0;
}

/* Show desktop banner by default, hide mobile */
#pc-guide .pcb-banner .pcb-desktop {
  display: block;
}

#pc-guide .pcb-banner .pcb-mobile {
  display: none;
}

/* On mobile screens (below 768px), show mobile banner and hide desktop */
@media (max-width: 767px) {
  #pc-guide .pcb-banner {
    padding: 15px 0 0;
  }

  #pc-guide .pcb-banner .pcb-desktop {
    display: none;
  }

  #pc-guide .pcb-banner .pcb-mobile {
    display: block;
  }
}

/* PRODUCTS ---------------------------------- */

#pc-guide .products {
  padding: 30px 30px 30px;
  padding-top: 0px;
  padding-bottom: 30px;
}

#pc-guide .products-heading {
  margin-bottom: 10px;
}

#pc-guide .products-container {
  position: relative;
}

/* Products Navigation Arrows */
#pc-guide .products-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e2e2e2;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #333;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#pc-guide .products-nav-prev {
  left: 10px;
}

#pc-guide .products-nav-next {
  right: 10px;
}

#pc-guide .products-nav-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

#pc-guide .products-nav-btn:hover:not(:disabled) {
  background: #e3000c;
  border-color: #e3000c;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#pc-guide .products-nav-btn:disabled {
  display: none;
}

#pc-guide .products-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  gap: 30px;
  padding-top: 10px;
}

#pc-guide .products-grid::-webkit-scrollbar {
  display: none;
}

#pc-guide .products-grid.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Prevent image dragging and text selection in products */
#pc-guide .products-grid img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#pc-guide .products-grid a {
  user-select: none;
  -webkit-user-drag: none;
}

#pc-guide .products-grid * {
  user-select: none;
}

#pc-guide .products-grid > * {
  flex: 0 0 calc(25% - 22.5px); /* Shows exactly 4 cards with 30px gaps */
  min-width: calc(25% - 22.5px);
  max-width: calc(25% - 22.5px);
  display: flex;
  flex-direction: column;
}

/* Product Cards */

#pc-guide .product-item {
  display: flex;
  height: 100%;
}

#pc-guide .product-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

#pc-guide .product-card {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: grid;
  grid-template-rows:
    auto /* Image */
    auto /* Brand */
    minmax(44px, auto) /* Title - min 2 lines */
    minmax(40px, auto) /* Addon */
    auto; /* Prices */
  align-items: start;
}

#pc-guide .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#pc-guide .product-image {
  padding: 30px 24px 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

#pc-guide .product-image img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

#pc-guide .product-info {
  padding: 24px;
  display: contents;
}

#pc-guide .product-brand {
  font-size: 12px;
  font-weight: 600;
  color: #7c7c7c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0 24px;
}

#pc-guide .product-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin: 0;
  padding: 8px 24px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#pc-guide .product-addon {
  font-size: 14px;
  color: #7c7c7c;
  margin: 0;
  padding: 8px 24px 0;
}

#pc-guide .product-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: auto;
  padding: 12px 24px 24px;
  align-self: end;
}

#pc-guide .product-price-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin: 0;
}

#pc-guide .product-price {
  font-size: 20px;
  font-weight: 700;
  color: #ad0109;
  margin: 0;
}

#pc-guide .product-category {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #001424;
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 0 5px 0 5px;
  z-index: 2;
}

/* Tablet */
@media (max-width: 1199.98px) {
  #pc-guide .products-grid > * {
    flex: 0 0 calc((100% - 60px) / 3.25); /* Shows 3.25 cards: 3 full + 0.25 peek */
    min-width: calc((100% - 60px) / 3.25);
    max-width: calc((100% - 60px) / 3.25);
  }
}

@media (max-width: 991.98px) {
  #pc-guide .products-grid {
    gap: 20px;
  }

  #pc-guide .products-grid > * {
    flex: 0 0 calc((100% - 40px) / 2.25); /* Shows 2.25 cards: 2 full + 0.25 peek */
    min-width: calc((100% - 40px) / 2.25);
    max-width: calc((100% - 40px) / 2.25);
  }
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .products {
    padding: 15px 0 15px;
  }

  #pc-guide .products-heading {
    padding: 0 15px;
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  #pc-guide .products-grid {
    gap: 20px;
    padding: 10px 0;
  }

  #pc-guide .products-grid > * {
    flex: 0 0 calc((100% - 20px) / 1.25); /* Shows 1.25 cards: 1 full + 0.25 peek */
    min-width: calc((100% - 20px) / 1.25);
    max-width: calc((100% - 20px) / 1.25);
  }

  #pc-guide .product-image {
    padding: 24px 20px 16px;
    min-height: 180px;
  }

  #pc-guide .product-image img {
    max-height: 160px;
  }

  #pc-guide .product-info {
    padding: 20px;
  }

  #pc-guide .product-title {
    font-size: 15px;
    min-height: 40px;
  }
}

/* GENERAL ----------------------------------*/

/* Buttons */
#pc-guide .basic-button {
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;

  padding: 5px 30px;

  background-color: #e3000c;
  color: white;
}

#pc-guide .basic-button:hover {
  transition: 0.25s ease;
  transform: translateY(-2px);

  background-color: #b90009;
}
