:root {
  --bg: #000;
  --text: #7CFC00;
  --muted: #7CFC00;
  --border: rgba(124, 252, 0, 0.22);
  --font: "Courier New", Courier, "Lucida Console", Monaco, Consolas, monospace;
  --header-height: 64px;
  --lime: #7CFC00;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: url("./images/cbaworld-home.gif") center top / cover no-repeat fixed;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: rgba(0, 0, 0, 0.35);
}

.top-banner {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.65);
}

.top-banner--second {
  border-bottom: 1px solid var(--border);
}

.top-banner__inner {
  display: flex;
  width: max-content;
  animation: banner-scroll 18s linear infinite;
  white-space: nowrap;
}

.top-banner__inner span {
  display: inline-block;
  padding: 10px 20px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes banner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.container,
.collection-hero,
.collection-main,
.checkout-main,
.subject-holder,
.product-card,
.product-card__info,
.checkout-summary,
.checkout-form-wrap {
  background: transparent !important;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.brand {
  font-weight: 800;
  font-size: 22px;
  color: var(--lime);
  text-decoration: none;
  text-transform: lowercase;
}

.main-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.main-nav a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.95;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--lime);
  cursor: pointer;
  font-size: 20px;
  position: relative;
}

.cart-count {
  font-size: 12px;
  margin-left: 4px;
  vertical-align: top;
  color: var(--lime);
}

.collection-hero {
  padding: 24px 0 24px;
  text-align: center;
}

.site-logo-hero {
  display: block;
  margin: 0 auto 12px;
  max-width: 180px;
  width: 30%;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--lime);
}

.hero-breadcrumb {
  margin: 0;
  color: var(--lime);
  font-size: 14px;
}

.collection-main {
  padding: 80px 0;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.results-count {
  color: var(--lime);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: none;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  overflow: hidden;
  height: 350px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 4px;
}

.product-card__add-to-cart {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(10px);
  background: transparent;
  border: none;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 5;
}

.product-card__media:hover .product-card__add-to-cart {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.size-selector-overlay {
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 6;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 252, 0, 0.3);
}

.product-card__media:hover .size-selector-overlay {
  opacity: 1;
  bottom: 55px;
}

.size-btn-overlay {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(124, 252, 0, 0.5);
  background: rgba(0, 0, 0, 0.7);
  color: var(--lime);
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
}

.size-btn-overlay:hover {
  background: rgba(124, 252, 0, 0.2);
  border-color: var(--lime);
}

.size-btn-overlay.selected {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
  font-weight: 800;
}

.product-card__info {
  padding: 12px 0;
}

.product-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--lime);
}

.product-card__price {
  font-size: 14px;
}

.price-regular {
  color: var(--lime);
}

.size-selected {
  font-size: 12px;
  color: var(--lime);
  margin-top: 8px;
  display: block;
}

.size-selected .selected-size {
  font-weight: 700;
}

.subject-holder {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.subject-holder--main {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.subject-holder--second {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.subject-image {
  width: 100%;
  max-width: 800px;
  display: block;
}

.subject-image--large {
  width: min(52vw, 820px);
  max-width: 820px;
  height: auto;
  display: block;
}

.subject-image--small {
  width: min(18vw, 260px);
  max-width: 260px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.subject-image--left,
.subject-image--right {
  align-self: flex-end;
}

@media (max-width: 900px) {
  .subject-holder--main {
    flex-wrap: wrap;
  }

  .subject-image--large {
    order: 1;
    width: 100%;
    max-width: 700px;
  }

  .subject-image--left {
    order: 2;
  }

  .subject-image--right {
    order: 3;
  }
}

.lab-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.lab-popup-overlay.is-hidden {
  display: none;
}

.lab-popup {
  position: relative;
  width: min(92vw, 760px);
  min-height: min(82vh, 620px);
  border-radius: 24px;
  overflow: hidden;
  background-image: url("./images/cba-community-popup.gif");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(124, 252, 0, 0.18);
}

.lab-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.lab-popup__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-decoration: none;
  text-align: center;
}

.lab-popup__text {
  color: #7CFC00;
  font-family: var(--font);
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  text-transform: lowercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  max-width: 20ch;
}

.lab-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 252, 0, 0.2);
  background: rgba(0, 0, 0, 0.6);
  color: #7CFC00;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lab-popup__close:hover {
  background: rgba(124, 252, 0, 0.2);
}

.lab-popup.is-hidden {
  display: none;
}

@media (max-width: 600px) {
  .lab-popup {
    min-height: 72vh;
    border-radius: 18px;
  }

  .lab-popup__text {
    max-width: 18ch;
  }
}

.whatsapp-float-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: #7CFC00;
  color: #000;
  border: none;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.popup-overlay.show {
  display: flex;
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: url("images/cba-community-popup.gif") center center / cover no-repeat;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.popup-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.popup-content {
  position: relative;
  z-index: 1;
  padding: 34px 28px;
  color: #7CFC00;
  font-family: "Courier New", Courier, monospace;
}

.popup-content h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
}

.popup-content p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

#communityForm {
  display: grid;
  gap: 12px;
}

#communityForm input[type="text"],
#communityForm input[type="email"],
#communityForm input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(124, 252, 0, 0.35);
  background: rgba(0, 0, 0, 0.6);
  color: #7CFC00;
  outline: none;
}

#communityForm input::placeholder {
  color: rgba(124, 252, 0, 0.75);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lime);
}

.consent-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #7CFC00;
}

.consent-row span {
  flex: 1;
  line-height: 1.5;
}

.popup-submit {
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #7CFC00;
  color: #000;
  font-weight: 800;
  cursor: pointer;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #7CFC00;
  font-size: 24px;
  cursor: pointer;
}

.checkout-main {
  padding: 60px 0;
  scroll-margin-top: 90px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.checkout-summary,
.checkout-form-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.checkout-summary h2,
.checkout-form-wrap h2 {
  margin-top: 0;
  color: var(--lime);
}

.checkout-items {
  margin-top: 10px;
}

.checkout-empty {
  color: var(--lime);
  padding: 12px 0;
  font-size: 14px;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(124, 252, 0, 0.16);
  align-items: center;
}

.checkout-item-main {
  flex: 1;
}

.checkout-item-name {
  color: var(--lime);
  font-weight: 700;
  font-size: 15px;
}

.checkout-item-price {
  color: var(--lime);
  font-size: 13px;
  margin-top: 4px;
}

.checkout-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qty-btn,
.cancel-btn {
  border: 1px solid rgba(124, 252, 0, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: var(--lime);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.cancel-btn {
  border-color: rgba(255, 80, 80, 0.45);
  color: #ff7a7a;
}

.checkout-total {
  margin-top: 16px;
  font-weight: 700;
  color: var(--lime);
}

.checkout-form-wrap input,
.checkout-form-wrap textarea,
.checkout-form-wrap select {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 252, 0, 0.25);
  background: rgba(0, 0, 0, 0.5);
  color: var(--lime);
  font-family: var(--font);
}

.checkout-form-wrap input::placeholder,
.checkout-form-wrap textarea::placeholder,
.checkout-form-wrap select {
  color: rgba(124, 252, 0, 0.75);
}

.checkout-form-wrap textarea {
  min-height: 110px;
  resize: vertical;
}

.payment-label {
  display: block;
  margin: 6px 0 8px;
  color: var(--lime);
  font-weight: 700;
}

.checkout-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: var(--lime);
  color: #000;
  font-weight: 800;
  cursor: pointer;
}

.paystack-note {
  margin-top: 12px;
  color: var(--lime);
  font-size: 13px;
}

.momo-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
}

.momo-box h3 {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 22px;
}

.momo-box p {
  margin: 8px 0;
  color: var(--lime);
}

.momo-number {
  display: inline-block;
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #7CFC00;
  color: #000;
  font-weight: 800;
  letter-spacing: 0.4px;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
