:root {
  --bg: #080808;
  --surface: #121212;
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-3: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --accent: rgba(255, 0, 0, 0.9);
  --accent-solid: #ff2a2a;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --nav-height: 72px;
  --container: 1280px;
}

@keyframes navGlowPulse {

  0%,
  100% {
    text-shadow: 0 0 6px rgba(255, 42, 42, 0.5), 0 0 12px rgba(255, 42, 42, 0.28);
  }

  50% {
    text-shadow: 0 0 10px rgba(255, 42, 42, 0.9), 0 0 20px rgba(255, 42, 42, 0.52);
  }
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

main {
  padding-top: var(--nav-height);
}

nav,
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: rgba(10, 10, 10, 0.76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 3000;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: clamp(96px, 9vw, 120px);
  height: auto;
  cursor: pointer;
}

#navLinks,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
  margin-left: 78px;
}

#navLinks a,
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

#navLinks a:hover,
#navLinks a.active,
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-solid);
  text-shadow: 0 0 8px rgba(255, 42, 42, 0.65);
}

#navLinks a.active,
.nav-links a.active {
  animation: navGlowPulse 1.8s ease-in-out infinite;
}

.search {
  flex: 1 1 500px;
  min-width: 180px;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 42px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search input::placeholder {
  color: var(--muted);
}

.icons {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  margin-left: 54px;
}

.icon-btn,
.profileicon-btn {
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.profileicon-btn {
  width: 52px;
  height: 52px;
}

.icon-btn:hover,
.profileicon-btn:hover {
  transform: scale(1.12);
  filter: brightness(1.24);
}

.search #searchIcon.icon-btn {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cart-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cartCount {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-solid);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.hamburger {
  display: none;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.mobile-profile-entry {
  display: none;
}

.outfit {
  position: relative;
  overflow: hidden;
}

.outfit+.outfit {
  margin-top: 20px;
}

.outfit>img,
.outfit img {
  width: 100%;
  height: 88vh;
  max-height: 920px;
  object-fit: cover;
  object-position: center;
}

.buy-btn,
.promo-banner {
  position: absolute;
}

.buy-btn {
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  padding: 16px 42px;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.buy-btn.light {
  background: #fff;
  color: #000;
  border-color: #000;
}

.buy-btn:hover {
  background: var(--accent);
  border-color: var(--accent-solid);
  transform: translateX(-50%) scale(1.06);
}

.promo-banner {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 980px);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #fff;
  backdrop-filter: blur(8px);
}

.promo-banner p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.promo-copy-mobile {
  display: none;
}

.promo-copy-desktop {
  color: var(--text);
}

.promo-copy-highlight {
  margin-left: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-solid);
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.45);
}

.promo-btn {
  flex-shrink: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

.promo-btn::after {
  content: " \2192";
}

.promo-btn:hover {
  color: var(--accent-solid);
  text-shadow: 0 0 8px rgba(255, 42, 42, 0.65);
  transform: scale(1.03);
}

.tops-section {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 28px) 40px 64px;
}

.tops-header {
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tops-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.tops-description {
  max-width: 72ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.divider {
  margin: 24px auto 0;
  border: 0;
  border-top: 1px solid var(--border);
  width: min(100%, 1120px);
  max-width: 1120px;
}

.tops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 22px;
}

.top-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111;
}

.top-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.top-card:hover .top-img {
  transform: scale(1.04);
}

.add-btn {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: auto;
  min-width: 170px;
  max-width: calc(100% - 28px);
  padding: 14px 26px;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.top-card:hover .add-btn,
.img-wrapper:hover .add-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.add-btn:hover {
  background: var(--accent);
  border-color: var(--accent-solid);
  transform: translateX(-50%) scale(1.04);
}

.top-name,
.top-price {
  margin: 0;
}

.top-name {
  font-size: 1rem;
  font-weight: 700;
}

.top-price {
  color: var(--muted);
  font-size: 0.96rem;
}

.top-colors,
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

#overlayColors .color-dot {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

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

.overlay-content,
.cart-content {
  width: min(100%, 940px);
  max-height: min(90vh, 860px);
  overflow-y: auto;
  background: #fff;
  color: #111;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.overlay-content {
  position: relative;
}

.close-btn,
.close-cart {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.close-btn:hover,
.close-cart:hover {
  background: var(--accent-solid);
}

.overlay-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.overlay-img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.overlay-info h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.price {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 700;
}

.label {
  margin: 20px 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-options button {
  min-width: 52px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.size-options button:hover {
  background: var(--accent-solid);
  transform: translateY(-1px);
}

.overlay-cart-btn {
  margin-top: 24px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.overlay-cart-btn:hover {
  background: var(--accent-solid);
  transform: translateY(-1px);
}

.cart-content {
  position: relative;
  width: min(100%, 560px);
}

.cart-content h2 {
  margin: 0 0 20px;
}

#cartItemsList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#cartItemsList li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f4f4f4;
}

#cartItemsList img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

#buyAllBtn,
#clearCartBtn {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

#buyAllBtn {
  background: #111;
  color: #fff;
}

#clearCartBtn {
  background: #dedede;
  color: #111;
}

#buyAllBtn:hover,
#clearCartBtn:hover {
  transform: translateY(-1px);
}

#buyAllBtn:hover {
  background: var(--accent-solid);
}

#clearCartBtn:hover {
  background: #cfcfcf;
}

footer {
  padding: 26px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-brand {
  display: inline-block;
  letter-spacing: 0.22em;
}

.apps {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apps img {
  width: 30px;
  height: 30px;
}

@media (max-width: 1024px) {

  nav,
  .navbar {
    gap: 14px;
    padding-inline: 14px;
  }

  #navLinks,
  .nav-links {
    gap: 18px;
    margin-left: 8px;
  }

  .search {
    flex-basis: 240px;
    max-width: 320px;
  }

  .icons {
    margin-left: 8px;
  }

  .tops-section {
    padding-inline: 24px;
  }

  .promo-banner {
    width: min(78%, 520px);
    padding: 10px 14px;
    gap: 8px;
  }

  .promo-banner p,
  .promo-banner span,
  .promo-btn {
    font-size: 0.82rem;
  }

  .outfit>img,
  .outfit img {
    height: 74vh;
    max-height: 760px;
  }
}

@media (min-width: 1280px) {

  #navLinks,
  .nav-links {
    margin-left: 110px;
  }

  .search {
    flex-basis: 580px;
    max-width: 760px;
    margin-left: 56px;
  }

  .icons {
    margin-left: 70px;
  }

  .divider {
    width: min(100%, 1220px);
    max-width: 1220px;
  }

  .promo-banner {
    width: min(92%, 1120px);
    padding: 22px 36px;
    border-radius: 16px;
  }

  .promo-banner p {
    font-size: 1.2rem;
  }

  .promo-banner span {
    font-size: 1.18rem;
  }

  .promo-btn {
    font-size: 1.08rem;
  }

  .apps img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  nav,
  .navbar {
    gap: 10px;
    padding: 8px 10px;
  }

  .logo img {
    width: clamp(58px, 18vw, 72px);
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 4;
    width: 36px;
    height: 36px;
    margin-left: 0;
    z-index: 3003;
  }

  .search {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    padding: 4px 10px;
  }

  .search input {
    height: 24px;
    font-size: 13px;
  }

  .search #searchIcon.icon-btn {
    width: 16px;
    height: 16px;
  }

  .icons {
    order: 3;
    gap: 12px;
  }

  .icons .profileicon-btn,
  .icons #profileIcon,
  .icons [data-profile-icon] {
    display: none !important;
  }

  #navLinks,
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 10px;
    left: auto;
    width: min(280px, calc(100vw - 20px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 0 10px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 3002;
  }

  #navLinks.active,
  .nav-links.active {
    display: flex;
  }

  #navLinks li,
  .nav-links li {
    width: 100%;
  }

  #navLinks a,
  .nav-links a {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #navLinks li:last-child a,
  .nav-links li:last-child a {
    border-bottom: 0;
  }

  .mobile-profile-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-profile-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .auth-links {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .tops-section {
    padding: calc(var(--nav-height) + 18px) 20px 42px;
  }

  .tops-header {
    margin-bottom: 28px;
  }

  .tops-description {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .tops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .add-btn {
    opacity: 1;
    bottom: 12px;
    font-size: 12px;
    min-width: 148px;
    padding: 11px 18px;
  }

  .overlay-content,
  .cart-content {
    padding: 20px;
    border-radius: 20px;
  }

  .overlay-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .outfit>img,
  .outfit img {
    height: 56vh;
    min-height: 280px;
    max-height: 400px;
  }

  .outfit+.outfit {
    margin-top: 16px;
  }

  .buy-btn {
    bottom: 18px;
    padding: 11px 18px;
    font-size: 14px;
  }

  .promo-banner {
    top: 10px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .promo-banner p,
  .promo-banner span,
  .promo-btn {
    font-size: 0.8rem;
  }

  .promo-btn {
    color: var(--accent-solid);
    text-shadow: 0 0 8px rgba(255, 42, 42, 0.4);
  }

  .promo-copy-desktop {
    display: none;
  }

  .promo-copy-mobile {
    display: inline;
    font-weight: 700;
    color: var(--text);
    margin-left: 0;
    text-align: center;
  }

  .promo-banner p {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .promo-banner span {
    margin-left: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {

  nav,
  .navbar {
    padding-inline: 8px;
  }

  .icons {
    gap: 10px;
  }

  .icons .icon-btn {
    width: 22px;
    height: 22px;
  }

  .search input {
    font-size: 12px;
  }

  #navLinks,
  .nav-links {
    width: min(240px, calc(100vw - 18px));
    right: 8px;
  }

  .tops-section {
    padding-inline: 16px;
  }

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

  .tops-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .outfit>img,
  .outfit img {
    height: 40vh;
    min-height: 220px;
    max-height: 300px;
  }

  .buy-btn {
    min-width: 140px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .promo-banner {
    top: 8px;
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    max-width: none;
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .promo-banner p,
  .promo-banner span,
  .promo-btn {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .promo-banner p {
    flex: 1 1 100%;
    min-width: 0;
    text-align: center;
  }

  .promo-banner span {
    margin-left: 10px;
  }

  .promo-btn {
    flex-shrink: 0;
    margin-inline: auto;
    color: var(--accent-solid);
    text-shadow: 0 0 8px rgba(255, 42, 42, 0.4);
  }

  .overlay-content,
  .cart-content {
    padding: 18px;
  }

  #cartItemsList li {
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  .promo-copy-desktop {
    color: var(--text) !important;
  }

  .promo-copy-desktop .promo-copy-highlight {
    color: var(--accent-solid) !important;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.45);
  }
}
