/* ============================================
   SpongeBob Krusty Cook-Off - Switch Canada
   CloudFront Static Site Replica
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 300;
  color: #484848;
  background: #ffffff;
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  width: 100%;
  background-color: #2e1e3f;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  max-width: 100%;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  width: 200px;
  height: auto;
  display: block;
}

/* Hamburger Button */
.hamburger-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
  opacity: 0.8;
}

.hamburger-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 14px;
}

/* Backdrop (full-screen purple when menu open) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #2e1e3f;
  z-index: 9001;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-backdrop.is-visible {
  display: block;
}

.nav-backdrop.is-open {
  opacity: 1;
}

/* Dropdown Panel */
.nav-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  z-index: 9002;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 40px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:not([hidden]) {
  display: flex;
}

.nav-dropdown.is-open {
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  display: block;
  width: 100%;
  padding: 14px 28px;
  background-color: #ffffff;
  color: #2e1e3f;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 0 0 0 18px;
  border-bottom: 1px solid rgba(46, 30, 63, 0.08);
  transition: background-color 0.15s, color 0.15s;
  letter-spacing: 0.2px;
}

.nav-item:hover {
  background-color: #f0ebf6;
}

.nav-item.is-active {
  text-decoration: underline;
}

/* ---- PRODUCT SECTION ---- */
.product-section {
  background: #ffffff;
  padding: 40px 0 60px;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ---- GALLERY COLUMN ---- */
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f4fd;
}

.main-gallery-image {
  width: 100%;
  height: auto;
  aspect-ratio: 922/498;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

/* Gallery Dots */
.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.dot.active {
  background: #ffffff;
}

/* Thumbnails */
.thumbnails-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.thumb {
  width: 100%;
  aspect-ratio: 142/80;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, outline 0.2s;
}

.thumb:hover,
.thumb.active-thumb {
  opacity: 1;
  outline: 2px solid #E62A2E;
}

/* ESRB Row */
.esrb-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
}

.esrb-img {
  width: 70px;
  height: auto;
}

.ingame-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #484848;
  font-weight: 300;
}

/* NS2 Compatibility Box */
.ns2-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f5f5f7;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid #e8e8e8;
}

.ns2-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.ns2-text {
  flex: 1;
}

.ns2-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.ns2-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #484848;
  font-weight: 300;
}

/* ---- INFO COLUMN ---- */
.info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.product-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #484848;
  line-height: 1.35;
}

/* Option Rows (Version / Edition) */
.option-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.option-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #484848;
  min-width: 70px;
}

.option-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #484848;
  background: #f8f8f8;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.option-btn:hover {
  background: #efefef;
}

.option-btn.active-btn {
  border-color: #484848;
}

/* Sale Banner */
.sale-banner {
  background: #E62A2E;
  border-radius: 22px;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  max-width: fit-content;
}

.sale-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* Price Row */
.price-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.price-current {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #484848;
}

.price-original {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #888888;
  text-decoration: line-through;
}

.price-discount {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: #e60012;
  padding: 4px 12px;
  border-radius: 22px 8px 8px 22px;
}

/* CTA Button */
.cta-button {
  display: block;
  width: 100%;
  max-width: 440px;
  background: #e60012;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 16px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  letter-spacing: 0.3px;
}

.cta-button:hover {
  background: #cc0010;
  transform: translateY(-1px);
}

/* In-Game Purchases Row */
.ingame-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ingame-icon-img {
  width: 36px;
  height: auto;
}

.ingame-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #484848;
  font-weight: 300;
}

/* ---- DESCRIPTION SECTION ---- */
.description-section {
  background: #ffffff;
  padding: 60px 0 80px;
  border-top: 1px solid #f0f0f0;
}

.desc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Description Text Column */
.desc-text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desc-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #484848;
  line-height: 1.35;
  margin-bottom: 0.5em;
}

.desc-text-col p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #484848;
  line-height: 1.5;
  font-weight: 300;
}

.desc-text-col p strong {
  font-weight: 600;
  color: #333333;
}

.publisher-note {
  font-size: 14px !important;
  color: #777777 !important;
  font-style: italic;
}

.cta-button-desc {
  max-width: 380px;
}

/* Description Image Column */
.desc-image-col {
  position: sticky;
  top: 90px;
}

.desc-hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  display: block;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #2e1e3f;
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: center;
}

.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding: 6px 0;
}

.footer-nav a:hover {
  color: #ffcc00;
}

.footer-nav a.current-page {
  color: #ffcc00;
  text-decoration: underline;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .product-container,
  .desc-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-col {
    gap: 10px;
  }

  .thumbnails-row {
    grid-template-columns: repeat(6, 1fr);
    overflow-x: auto;
  }

  .product-title {
    font-size: 28px;
  }

  .desc-heading {
    font-size: 26px;
  }

  .cta-button {
    max-width: 100%;
  }

  .desc-image-col {
    position: static;
  }

  .product-container,
  .desc-container,
  .footer-inner {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 14px 20px;
  }

  .header-logo {
    width: 150px;
  }

  .nav-dropdown {
    width: 100vw;
  }

  .product-section {
    padding: 20px 0 40px;
  }

  .price-current {
    font-size: 34px;
  }

  .footer-nav a {
    font-size: 11px;
  }
}