* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #050609;
  color: #f5f7fb;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Announcement bar */

.announcement {
  background: linear-gradient(90deg, #006cff, #00a8ff);
  color: white;
  text-align: center;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 9, 0.96);
  border-bottom: 1px solid #1c2635;
  backdrop-filter: blur(12px);
}

nav {
  width: min(1180px, 100%);
  margin: auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo,
.brand-logo {
  display: block;
  width: 150px;
  max-width: 42vw;
  height: auto;
}

nav img {
  display: block;
  width: 150px;
  max-width: 42vw;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a,
nav > a:not(:first-child) {
  color: #d8e0eb;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
nav > a:not(:first-child):hover {
  color: #27a8ff;
}

.cart-button,
.basket-button,
#basketBtn {
  border: 1px solid #168fff;
  background: #0879e8;
  color: white;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  white-space: nowrap;
}

/* Main layout */

main {
  width: min(1180px, 100%);
  margin: auto;
  padding: 0 18px 60px;
}

section {
  padding: 50px 0;
}

/* Hero */

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 45px;
}

.hero h1 {
  margin: 10px 0 18px;
  max-width: 700px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -3px;
}

.hero p {
  max-width: 650px;
  color: #b7c1cf;
  font-size: 18px;
}

.eyebrow,
.kicker {
  color: #25a9ff;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.btn,
.button,
.cta,
.hero a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary,
.primary,
.hero a:first-of-type {
  background: linear-gradient(135deg, #0879e8, #00a8ff);
  color: white;
  border: 1px solid #2caaff;
}

.btn-secondary,
.secondary,
.hero a:nth-of-type(2) {
  background: #10151d;
  border: 1px solid #263344;
  color: #eaf2ff;
}

.btn:hover,
.button:hover,
.cta:hover {
  transform: translateY(-1px);
}

/* Trust points */

.trust,
.features,
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 20px;
  color: #d9e2ef;
}

.trust span,
.features span,
.benefits span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Headings */

h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
}

.section-title {
  margin-bottom: 28px;
}

.section-title p,
section > p {
  color: #9da9b8;
}

/* Product grid */

.products,
.product-grid,
#products,
#productGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.card {
  overflow: hidden;
  background: linear-gradient(180deg, #10151d, #0a0e14);
  border: 1px solid #1d2938;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.card:hover {
  transform: translateY(-3px);
  border-color: #168fff;
}

.product-card img,
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0c1118;
}

.product-card > div,
.card-body,
.product-info {
  padding: 16px;
}

.product-card h3,
.card h3 {
  margin: 5px 0 8px;
  font-size: 18px;
}

.product-card p,
.card p {
  color: #9faaba;
  font-size: 14px;
}

.price {
  color: white !important;
  font-size: 20px !important;
  font-weight: 900;
}

.product-card button,
.card button,
.add-to-cart {
  width: 100%;
  border: 1px solid #188fff;
  border-radius: 9px;
  padding: 10px 12px;
  background: #0879e8;
  color: white;
  font-weight: 800;
}

/* Categories */

.categories,
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category,
.category-card {
  min-height: 120px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, rgba(0, 145, 255, 0.25), transparent 45%),
    #0d1219;
  border: 1px solid #1d2a3a;
  font-size: 18px;
  font-weight: 900;
}

/* Information sections */

.about,
.contact,
.info-box {
  background: #0c1118;
  border: 1px solid #1c2837;
  border-radius: 18px;
  padding: 28px;
}

.about p,
.contact p {
  color: #aeb8c6;
}

/* Forms */

input,
select,
textarea {
  width: 100%;
  background: #090d13;
  color: white;
  border: 1px solid #283547;
  border-radius: 9px;
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #168fff;
  border-color: transparent;
}

/* Basket / modal */

.modal,
.basket,
.cart-drawer {
  background: #0c1118;
  color: white;
}

.modal-content,
.basket-content,
.cart-content {
  background: #0c1118;
  border: 1px solid #243246;
  border-radius: 16px;
}

/* Footer */

footer {
  border-top: 1px solid #1a2431;
  background: #07090d;
  color: #8f9aaa;
  padding: 30px 18px;
  text-align: center;
  font-size: 13px;
}

/* Mobile */

@media (max-width: 800px) {
  .announcement {
    font-size: 10px;
    padding: 7px 10px;
  }

  nav {
    padding: 9px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  nav img,
  .logo,
  .brand-logo {
    width: 105px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    padding: 7px 0 2px;
  }

  .nav-links a,
  nav > a:not(:first-child) {
    font-size: 12px;
  }

  .cart-button,
  .basket-button,
  #basketBtn {
    margin-left: auto;
    padding: 8px 11px;
    font-size: 12px;
  }

  main {
    padding: 0 15px 45px;
  }

  section {
    padding: 35px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 45px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    margin: 22px 0;
  }

  .hero-actions a,
  .hero-actions button {
    flex: 1;
    min-width: 140px;
  }

  .products,
  .product-grid,
  #products,
  #productGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .product-card,
  .card {
    border-radius: 12px;
  }

  .product-card > div,
  .card-body,
  .product-info {
    padding: 11px;
  }

  .product-card h3,
  .card h3 {
    font-size: 15px;
  }

  .product-card p,
  .card p {
    font-size: 12px;
  }

  .price {
    font-size: 17px !important;
  }

  .categories,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category,
  .category-card {
    min-height: 90px;
    padding: 15px;
    font-size: 15px;
  }

  .about,
  .contact,
  .info-box {
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .nav-links {
    gap: 11px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .products,
  .product-grid,
  #products,
  #productGrid {
    grid-template-columns: 1fr 1fr;
  }
}
/* FuseyGames header logo fix */
img[src="/fuseygames-logo.png"],
img[src="fuseygames-logo.png"] {
  width: 120px !important;
  height: auto !important;
  max-width: 120px !important;
  display: block;
}

@media (max-width: 800px) {
  img[src="/fuseygames-logo.png"],
  img[src="fuseygames-logo.png"] {
    width: 90px !important;
    max-width: 90px !important;
  }
}
/* Basket drawer fix */
.drawer {
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #0b1017;
  border-left: 1px solid #243246;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
  padding: 22px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.drawer.open {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid #223044;
}

.drawer-head h2 {
  margin: 0;
  font-size: 30px;
}

#closeCart {
  width: 42px;
  height: 42px;
  border: 1px solid #2b394d;
  border-radius: 10px;
  background: #121a24;
  color: white;
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  padding: 18px 0;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #1d2938;
}

.cart-row strong {
  display: block;
}

.cart-row small {
  display: block;
  margin-top: 4px;
  color: #9eabbc;
}

.remove {
  border: 1px solid #334257;
  border-radius: 8px;
  padding: 8px 10px;
  background: #121923;
  color: #dce6f4;
}

.drawer-foot {
  padding-top: 14px;
  border-top: 1px solid #223044;
}

.drawer-foot label {
  display: block;
  margin-bottom: 18px;
}

.drawer-foot select {
  margin-top: 8px;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 20px;
}

.total strong {
  font-size: 26px;
}

#paypalNote {
  display: block;
  margin-top: 12px;
  color: #8f9cac;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .drawer {
    width: 94vw;
    padding: 18px;
  }
}
/* Mobile category layout fix */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 32px;
}

.category-card {
  min-height: auto;
  padding: 16px 12px;
  border-radius: 14px;
  text-align: center;
}

@media (min-width: 700px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
/* Correct category button layout */
.categories {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 20px 30px !important;
}

.category {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 18px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  color: #fff !important;
  cursor: pointer;
}
/* Force the category filter buttons into rows */
div:has(> button.category),
section:has(> button.category) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  height: auto !important;
  min-height: 0 !important;
}

button.category {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 16px !important;
  margin: 0 !important;
}
/* Remove excess space above category filters */
div:has(> button.category),
section:has(> button.category) {
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* PRODUCT PHOTO GALLERY */

.product-photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-photo-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #080b10;
  border-radius: 12px;
}

.photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-modal.open {
  display: flex;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.gallery-panel {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #1c4265;
  border-radius: 18px;
  background: #05080d;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid #34516d;
  border-radius: 50%;
  background: #0d1722;
  color: white;
  font-size: 30px;
  line-height: 1;
}

.gallery-title {
  margin: 0 50px 15px 0;
  color: white;
  font-size: 20px;
}

.gallery-main-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
  border-radius: 14px;
  background: #020305;
}

.gallery-main {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 54px;
  border: 1px solid #42607c;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 38px;
  line-height: 1;
}

.gallery-prev {
  left: 8px;
}

.gallery-next {
  right: 8px;
}

.gallery-counter {
  padding: 10px 0;
  text-align: center;
  color: #a9bed0;
  font-size: 14px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
}

.gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #0b1118;
}

.gallery-thumb.active {
  border-color: #149cff;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .gallery-panel {
    padding: 14px;
  }

  .gallery-main-wrap {
    min-height: 250px;
  }

  .gallery-arrow {
    width: 40px;
    height: 48px;
  }

  .gallery-thumb {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
  }
}
/* ADMIN PRODUCT PHOTO THUMBNAILS */

.admin-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.admin-photo-thumb {
  width: 78px !important;
  height: 78px !important;
  object-fit: cover !important;
  border-radius: 10px;
  border: 2px solid #1f8fff;
  background: #080b10;
  display: block;
}
/* MOBILE PRODUCT CARD WIDTH */

@media (max-width: 700px) {
  .product-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .product-card {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  .product-image {
    width: 100% !important;
  }

  .product-photo-button {
    width: 100% !important;
  }

  .product-photo-button img {
    width: 100% !important;
    max-height: 500px;
    object-fit: contain !important;
  }
}
