* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: #f6f6f6;
  color: #111;
}

.apex-products {
  max-width: 1380px;
  margin: 60px auto 80px;
  padding: 0 24px;
}

.apex-brand-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
  padding: 28px 34px;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(220, 38, 38, 0.18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
  overflow: hidden;
}

.apex-brand-box h1 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px;
  color: #dc2626;
  text-align: center;
}

.apex-brand-box h4 {
  margin: 0 0 12px;
  color: #666;
  font-weight: 700;
  text-align: center;
}

.apex-brand-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px auto 0;
  width: 100%;
}

.apex-brand-highlights .highlight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-radius: 14px;
}

.apex-brand-highlights i {
  color: #dc2626;
  font-size: 20px;
  margin-top: 2px;
}

.apex-brand-highlights strong {
  display: block;
  font-size: 14px;
  color: #111;
  margin-bottom: 4px;
}

.apex-brand-highlights p {
  margin: 0;
  font-size: 13.5px;
  color: #555;
  line-height: 1.55;
}

.apex-brand-logo {
  max-width: 140px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.apex-brand-box p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #444;
  margin: 0;
  word-break: normal;
}

.apex-brand-box strong {
  color: #dc2626;
  font-weight: 900;
}

@media (max-width: 900px) {
  .apex-brand-box {
    text-align: center;
  }
}

.apex-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.apex-filters select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
  background: #fff;
}

.apex-filters select:hover,
.apex-filters select:focus {
  border-color: #dc2626;
}

.apex-filters button {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 14.5px;
  background: linear-gradient(135deg, #111, #000);
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
}

.apex-filters button:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.35);
}

.apex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
  justify-items: center;
}

.apex-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 18px auto 10px;
  flex-wrap: wrap;
}

.apex-pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #444;
  transition: 0.2s ease;
  padding: 0 12px;
}

.apex-pagination button:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.apex-pagination button.is-active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}

.apex-card {
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(220, 38, 38, 0.14);
  padding: 22px 22px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.apex-card:hover {
  transform: translateY(-6px);
  border-color: #dc2626;
  box-shadow:
    0 20px 70px rgba(220, 38, 38, 0.18),
    0 0 22px rgba(220, 38, 38, 0.12);
}

.apex-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.apex-card-image img {
  max-height: 100%;
  object-fit: contain;
  transition: 0.3s ease;
}

.apex-card:hover img {
  transform: scale(1.06);
}

.apex-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #666;
  justify-content: center;
}

.apex-card-meta i {
  color: #dc2626;
}

.apex-card-title {
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.45;
  margin: 10px 0 6px;
}

.apex-card-price {
  font-size: 20px;
  font-weight: 900;
  color: #dc2626;
  margin-bottom: 14px;
}

.apex-card-codes {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #333;
}

.apex-card-meta-line {
  display: flex;
  gap: 6px;
  align-items: center;
}

.apex-cart-btn {
  margin-top: auto;
  width: auto;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111, #000);
  color: white;
  border: none;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.apex-cart-btn:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.35);
}

.apex-bundle {
  margin: 80px auto 0;
  padding: 40px;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(220, 38, 38, 0.18);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.08);
  max-width: 1080px;
  text-align: center;
}

.apex-bundle h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 24px;
}

.apex-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.apex-bundle-item {
  position: relative;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.apex-bundle-item:hover {
  transform: translateY(-4px);
  border-color: #dc2626;
  box-shadow: 0 14px 50px rgba(220, 38, 38, 0.2);
}

.apex-bundle-item input {
  position: absolute;
  top: 10px;
  right: 10px;
  accent-color: #dc2626;
}

.apex-bundle-item img {
  height: 88px;
  object-fit: contain;
  margin-bottom: 8px;
}

.apex-bundle-item span {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.apex-bundle-item strong {
  color: #dc2626;
  font-weight: 900;
}

.apex-bundle-btn {
  margin-top: 28px;
  padding: 16px 26px;
  background: linear-gradient(135deg, #111, #000);
  color: white;
  border-radius: 18px;
  border: none;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.apex-bundle-btn:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.35);
}

@media (max-width: 900px) {
  .apex-brand-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .apex-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal for full image */
.apex-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.apex-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.apex-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.apex-modal__content img {
  display: block;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

.apex-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.apex-bundle-grid.clean {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 18px;
}

/* each bundle row stays horizontal */
.bundle-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid #eee;
	border-radius: 14px;
	cursor: pointer;
	transition: .25s ease;
	background: #fff;
}

.bundle-row:hover {
	border-color: #dc2626;
	background: #fff5f5;
}

/* checkbox */
.bundle-row input {
	transform: scale(1.15);
	accent-color: #dc2626;
}

/* thumbnail */
.bundle-thumb img {
	width: 64px;
	height: auto;
}

/* text */
.bundle-info strong {
	font-size: 14px;
	line-height: 1.35;
}

.bundle-price {
	color: #dc2626;
	font-weight: 700;
	font-size: 14px;
}

/* responsive */
@media (max-width: 768px) {
	.apex-modal__content.apex-modal__wide {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
		padding: 10px;
	}

	#apex-bundle-modal-content {
		max-height: calc(100vh - 76px);
	}

	.apex-bundle-grid.clean {
		grid-template-columns: 1fr;
	}
}
/* MODAL CSS */
.apex-modal__wide {
	max-width: 900px;
	width: 90vw;
	max-height: min(90vh, 900px);
}

#apex-bundle-modal-content {
	max-height: calc(90vh - 36px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding-right: 4px;
}

.apex-bundle-modal-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
}

.apex-bundle-skip {
	background: none;
	border: none;
	color: #555;
	cursor: pointer;
	font-size: 14px;
}

.apex-bundle-skip:hover {
	color: #dc2626;
}
/* ===============================
   SUCCESS BLOCK – PREMIUM
================================ */
.apex-bundle-success {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;

	padding: 18px 24px;
	margin-bottom: 12px;

	border-bottom: 1px solid #eee;
	text-align: center;
}

/* green check */
.success-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 900;
	flex-shrink: 0;
}

.success-info {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* title */
.success-info strong {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 10px;
}

/* product row */
.success-product {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* BIGGER IMAGE (main change) */
.success-product img {
	width: 88px;                 /* ⬅ bigger */
	height: auto;
	border-radius: 10px;
	border: 1px solid #eee;
	background: #fafafa;
	padding: 6px;
}

/* product text */
.success-product h4 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 4px;
	line-height: 1.3;
}

.success-product span {
	color: #dc2626;
	font-weight: 800;
	font-size: 15px;
}
/* ===============================
   BUNDLE HEADER – TIGHT
================================ */
.apex-bundle-clean h3 {
	margin-top: 8px;
	margin-bottom: 6px;
	text-align: center;
}

.apex-bundle-sub {
	margin-bottom: 12px;
	text-align: center;
	color: #666;
}

.apex-bundle-grid.clean {
	margin-top: 6px;
}
#apex-bundle-modal-content 
.apex-bundle.apex-bundle-clean.apex-bundle-modal {
	margin-top: 8px;   /* adjust: 4px / 6px / 8px */
}
/* ===============================
   BRAND HIGHLIGHTS – ONE ROW
================================ */

.apex-brand-highlights {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 👈 ONE ROW */
	gap: 28px;
	margin-top: 32px;
}

.apex-brand-highlights .highlight {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.apex-brand-highlights .highlight i {
	font-size: 28px;
	color: #dc2626; /* Apex red */
	flex-shrink: 0;
	margin-top: 4px;
}

.apex-brand-highlights .highlight strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 6px;
}

.apex-brand-highlights .highlight p {
	font-size: 14px;
	line-height: 1.5;
	color: #666;
	margin: 0;
}
.apex-bundle-btn {
	display: block;
	margin: 28px auto 0; /* ⬅ centers horizontally */
}
/* ===============================
   TABLET
================================ */
@media (max-width: 1024px) {
	.apex-brand-highlights {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 640px) {
	.apex-brand-highlights {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}
