:root {
  --black: #0a0a0a;
  --ink: #141414;
  --gold: #F2B52E;
  --gold2: #E8A317;
  --silver: #EDEFF2;
  --silver2: #C9CCD1;
  --paper: #F5F5F2;
  --red: #CE1126;
  --green: #006B3F;
  --gy: #FCD116;
  --r: 10px;
  --sh: 0 1px 2px #0006, 0 12px 32px #0007;
  --t: .25s;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font: 16px/1.6 Inter, system-ui, sans-serif;
  background: var(--black);
  color: var(--silver2);
  min-height: 100vh;
}

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: Orbitron, Rajdhani, sans-serif;
  letter-spacing: .04em;
  line-height: 1.2;
}

h1, h2 {
  margin-bottom: .5rem;
}

p {
  margin-bottom: .5rem;
}

.metal {
  background: linear-gradient(
    110deg,
    #8d9198,
    #fff 30%,
    #b9bdc4 55%,
    #fff 80%,
    #9a9ea5
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.sec {
  padding: 4rem 0;
}

.light {
  background: var(--paper);
  color: #222;
}

.light h1,
.light h2,
.light h3 {
  color: #111;
}

.light a {
  color: #7a5500;
}

.flag {
  height: 4px;
  width: 96px;
  margin: .6rem 0 1.4rem;
  background: linear-gradient(
    90deg,
    var(--red) 33%,
    var(--gy) 33% 66%,
    var(--green) 66%
  );
}

/* HEADER AND NAVIGATION */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0a0aee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #F2B52E44;
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
  flex-wrap: wrap;
  padding-top: .4rem;
  padding-bottom: .4rem;
}

header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-left: auto;
}

nav a {
  color: var(--silver);
  text-decoration: none;
  position: relative;
  padding: .7rem 0;
  min-height: 44px;
}

nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .4rem;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

nav a:hover:after,
nav a[aria-current]:after {
  transform: scaleX(1);
}

/* BUTTONS */

button,
.btn {
  font: 600 .95rem Inter, system-ui, sans-serif;
  min-height: 44px;
  padding: .6rem 1.2rem;
  border-radius: var(--r);
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--t),
    box-shadow var(--t),
    background var(--t);
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px #F2B52E44;
}

.btn.p,
button.p {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #111 !important;
}

.light button,
.light .btn {
  color: #7a5500;
  border-color: #7a5500;
}

.light button.p,
.light .btn.p {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #111 !important;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background: radial-gradient(
    circle at 70% 30%,
    #2a2108,
    #0a0a0a 60%
  );
}

.hero:before {
  content: "";
  position: absolute;
  inset: -50% -20%;
  pointer-events: none;
  background: repeating-linear-gradient(
    100deg,
    transparent 0 120px,
    #F2B52E22 120px 122px
  );
  animation: road 8s linear infinite;
  transform: rotate(-8deg);
}

@keyframes road {
  to {
    transform: rotate(-8deg) translateX(-122px);
  }
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.hero .ring {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 60px #F2B52E33;
}

/* PRODUCT GRIDS */

.grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 250px), 1fr)
  );
  align-items: stretch;
}

.card {
  min-width: 0;
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition:
    transform var(--t),
    box-shadow var(--t);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--gold), 0 14px 34px #0004;
}

.card > a {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
}

/* IMPORTANT: PRODUCT IMAGES */

.card > a > img {
  display: block;
  width: 100%;
  height: 250px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: #fff;
  transition: transform .35s ease;
}

.card:hover > a > img {
  transform: scale(1.035);
}

/* SAMPLE / FALLBACK PLACEHOLDER */

.ph {
  width: 100%;
  min-height: 250px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: var(--gold);
  font: 700 .9rem Orbitron, sans-serif;
  text-align: center;
  padding: 1rem;
}

.card .b {
  padding: 1rem;
}

.card h3 {
  font-size: 1rem;
  margin: .4rem 0;
  overflow-wrap: anywhere;
}

.card .b p {
  overflow-wrap: anywhere;
}

.price {
  font-weight: 700;
  color: #7a5500;
  font-size: 1.15rem;
  margin: .6rem 0;
}

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 99px;
  background: #111;
  color: var(--gold);
  margin-bottom: .4rem;
}

/* PRODUCT DETAIL IMAGE */

.sec .two > div > img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: var(--r);
  padding: 12px;
}

/* FEATURE TILES */

.tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 220px), 1fr)
  );
}

.tile {
  border: 1px solid #F2B52E55;
  border-radius: var(--r);
  padding: 1.5rem;
  background: var(--ink);
  text-decoration: none;
  color: var(--silver);
  transition:
    transform var(--t),
    box-shadow var(--t);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px #F2B52E44;
}

.tile h3 {
  color: var(--gold);
  margin-bottom: .6rem;
}

/* SEARCH AND FILTERS */

.bar {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

input,
select,
textarea {
  max-width: 100%;
  font: inherit;
  min-height: 44px;
  padding: .5rem .8rem;
  border-radius: 8px;
  border: 1px solid #888;
  background: #fff;
  color: #111;
}

.bar input[type="search"] {
  flex: 2 1 200px;
}

.bar select,
.bar input[type="number"] {
  flex: 1 1 140px;
}

form label {
  display: block;
  margin: .8rem 0 .2rem;
}

form input,
form textarea {
  width: 100%;
}

textarea {
  resize: vertical;
}

.err {
  color: #ff8a8a;
  font-size: .85rem;
  min-height: 1.2em;
}

/* SHOP TABS */

.tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tabs [aria-selected="true"] {
  background: var(--gold);
  color: #111;
}

/* TABLES */

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  padding: .7rem;
  border-bottom: 1px solid #8884;
  text-align: left;
  overflow-wrap: anywhere;
}

/* GENERAL LAYOUT */

.two {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 300px), 1fr)
  );
  align-items: start;
}

.note {
  border-left: 4px solid var(--gold);
  padding: .8rem 1rem;
  background: #F2B52E18;
  margin: 1rem 0;
  overflow-wrap: anywhere;
}

/* FOOTER */

footer {
  background: #000;
  border-top: 1px solid #F2B52E44;
  padding: 3rem 0;
  font-size: .9rem;
}

footer img {
  height: auto;
  object-fit: cover;
  margin-bottom: .8rem;
}

footer a {
  overflow-wrap: anywhere;
}

/* TOAST MESSAGE */

#toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: calc(100vw - 2rem);
  background: var(--gold);
  color: #111;
  padding: .8rem 1.2rem;
  border-radius: 8px;
  transform: translateY(160%);
  transition: transform var(--t);
  z-index: 99;
}

#toast.on {
  transform: none;
}

/* LOADING SCREEN */

#load {
  position: fixed;
  inset: 0;
  background: #000;
  display: grid;
  place-items: center;
  z-index: 100;
  animation: out .6s 1s forwards;
  pointer-events: none;
}

#load img {
  width: 160px;
  max-width: 60vw;
  border-radius: 50%;
}

@keyframes out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* REVEAL ANIMATION */

.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* TABLET AND DESKTOP */

@media (min-width: 800px) {
  .hero .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

/* MOBILE */

@media (max-width: 799px) {
  .sec {
    padding: 2.8rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  header .wrap {
    gap: .6rem;
  }

  nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: .5rem 1rem;
    padding-bottom: .4rem;
  }

  nav a {
    font-size: .9rem;
  }

  .card > a > img {
    height: 230px;
  }

  .ph {
    min-height: 230px;
  }

  .bar > * {
    min-width: 0;
  }

  table {
    font-size: .9rem;
  }

  td,
  th {
    padding: .5rem .35rem;
  }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }
}
