/* why build from corsair section */
#why-buy-from-corsair-panels {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  justify-content: center;
  gap: 2rem;
  margin: 0 auto;
  color: white;
}

#why-buy-from-corsair-panels .why-buy-from-corsair-panel {
  background: #191919;
  border: 1px solid #5f626b;
  position: relative;
  padding: 56px;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 16px;
}

#why-buy-from-corsair-panels .why-buy-from-corsair-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(to right, white 2px, transparent 2px) 0 0,
    linear-gradient(to right, white 2px, transparent 2px) 0 100%,
    linear-gradient(to left, white 2px, transparent 2px) 100% 0,
    linear-gradient(to left, white 2px, transparent 2px) 100% 100%,
    linear-gradient(to bottom, white 2px, transparent 2px) 0 0,
    linear-gradient(to bottom, white 2px, transparent 2px) 100% 0,
    linear-gradient(to top, white 2px, transparent 2px) 0 100%,
    linear-gradient(to top, white 2px, transparent 2px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

#why-buy-from-corsair-panels h3 {
  text-align: left;
  background: linear-gradient(90deg, #ffffff 0%, #f1e67e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Saira", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  text-transform: uppercase;
}

#why-buy-from-corsair-panels .why-buy-from-corsair-image {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

#why-buy-from-corsair-learn-more {
  padding: 0.5rem 2rem;
  background-color: rgba(236, 232, 26);
  color: black;
  font-weight: 600;
  margin-top: 24px;
}

@media (min-width: 768px) {
  #why-buy-from-corsair-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #why-buy-from-corsair-panels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #why-buy-from-corsair-panels .why-buy-from-corsair-image {
    height: 78px;
    width: 78px;
  }

  #why-buy-from-corsair-panels h3 {
    font-size: 24px;
  }
}

/*  CUSTOMIZE YOUR SETUP - START WITH A PRODUCT */

.tab-container {
  margin-top: 44px;
  overflow: hidden;
}

.tab-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  justify-content: center;
}

/* Navigation Arrow Styles */
.arrow-button {
  background: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: none;
  z-index: 10;
}

.arrow-button:hover:not(.slick-disabled) svg {
  opacity: 0.7;
}

.arrow-button.slick-disabled {
  visibility: hidden;
}

/* Tab List Container Styles */
.tab-list-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tab-list {
  display: flex;
  gap: 72px;
  padding: 0 50px;
  align-items: center;
}

/* Tab Button Styles */
.tab-button {
  background: none;
  border: none;
  font-size: 18px;
  padding: 10px 15px;
  cursor: pointer;
  position: relative;
  color: #8c8c8e;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 28px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-button:hover {
  color: #ece81a;
}

.tab-button.slick-active {
  color: #ece81a;
  position: relative;
}

.tab-button.slick-active::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ece81a;
}

/* Tab Content Styles */
.tab-content {
  display: none;
  width: 100%;
  height: auto;
  max-height: 644px;
}

.tab-content.active {
  display: block !important;
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Product Display Styles */
.product-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 644px;
  height: 100%;
  width: 100%;
  position: relative;
}

.product-image-wrapper {
  width: 100%;
  min-height: 300px;
}

.tab-container .product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  max-height: 644px;
}

.customize-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.product-image-wrapper:hover .customize-overlay {
  opacity: 1;
}

.customize-link {
  background-color: #ece81a;
  border: 2px solid #ece81a;
  color: black;
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 225ms;
}

.customize-link:hover {
  background: #bdba15;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .tab-container {
    margin-top: 50px;
  }

  .tab-button {
    font-size: 16px;
    padding: 8px 12px;
  }

  .tab-wrapper {
    gap: 10px;
  }

  a.customize-link {
    font-size: 18px;
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .tab-container {
    margin-top: 30px;
  }

  .tab-button {
    font-size: 14px;
    padding: 6px 10px;
  }

  .tab-wrapper {
    gap: 5px;
  }

  .tab-list {
    gap: 40px;
    padding: 0 20px;
  }

  a.customize-link {
    font-size: 16px;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .tab-container {
    margin-top: 20px;
  }

  .tab-button {
    font-size: 12px;
    padding: 4px 8px;
  }

  .tab-list {
    gap: 20px;
    padding: 0 10px;
  }

  .tab-container .product-image {
    max-height: 300px;
  }

  a.customize-link {
    font-size: 14px;
    padding: 6px 32px;
  }
}

/*  CUSTOMIZE YOUR SETUP - START WITH A COLLECTION  */

#ccl-collections-tabs .tab-container {
  margin-top: 24px;
}

.tab-list.collection-tab-list {
  gap: 30px;
  padding: unset;
  justify-content: center;
}

.tab-list-container {
  max-width: 950px;
}

.collection-sprite {
  max-width: 75px;
  max-height: 75px;
  border: 2px solid transparent;
}

.collection-tab-button {
  padding-right: 15px;
  padding-left: 15px;
  justify-items: center;
}

.collection-tab-button:hover .collection-sprite,
.collection-tab-button.slick-current.slick-active .collection-sprite {
  border: 2px solid #ece81a;
}

.collection-tab-button .collection-sprite {
  border-radius: 100%;
}

.collection-badge {
  position: absolute;
  bottom: 2px;
  transform: translateX(-50%);
  background: #ece81a;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  white-space: nowrap;
  border-radius: 10px;
  text-transform: uppercase;
  z-index: 10;
}

.collection-tab-content {
  display: none;
  width: 100%;
  height: auto;
  max-height: 644px;
}

.collection-tab-content.active {
  display: block !important;
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Arrow Styles */
.arrow-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.arrow-button.slick-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.arrow-button.slick-disabled svg {
  stroke: #666;
}
