@import url(
  'https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap'
);

:root {
  --background: #174f91;
  --background-deep: #0d3264;
  --panel: rgba(25, 84, 150, 0.78);
  --panel-light: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #d5e4f6;
  --purple: #3c9cff;
  --purple-light: #91d2ff;
  --orange: #ff9d3d;
  --orange-light: #ffc46b;
  --green: #46dda7;
  --shadow: 0 28px 80px rgba(8, 24, 65, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #12467f;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

.purchase-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 14% 8%,
      rgba(104, 190, 255, 0.52),
      transparent 34%
    ),
    radial-gradient(
      circle at 91% 22%,
      rgba(255, 169, 73, 0.30),
      transparent 31%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(25, 123, 211, 0.25),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #0f3c73 0%,
      #1765a7 52%,
      #0b376b 100%
    );
}

.background-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow-one {
  top: 100px;
  left: -180px;
  width: 430px;
  height: 430px;
  background: rgba(124, 176, 255, 0.42);
}

.glow-two {
  top: 280px;
  right: -160px;
  width: 420px;
  height: 420px;
  background: rgba(255, 171, 80, 0.25);
}

.glow-three {
  bottom: -250px;
  left: 38%;
  width: 520px;
  height: 520px;
  background: rgba(47, 164, 255, 0.24);
}

.math-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.math-symbol {
  position: absolute;
  color: rgba(255, 255, 255, 0.035);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 700;
  transform: rotate(-12deg);
  user-select: none;
}

.symbol-one {
  top: 16%;
  left: 4%;
}

.symbol-two {
  top: 38%;
  right: 3%;
  transform: rotate(10deg);
}

.symbol-three {
  bottom: 18%;
  left: 7%;
  transform: rotate(7deg);
}

.symbol-four {
  top: 10%;
  right: 15%;
}

.symbol-five {
  bottom: 7%;
  right: 12%;
  transform: rotate(-8deg);
}

.symbol-six {
  top: 60%;
  left: 45%;
}

.navbar {
  position: relative;
  z-index: 20;
  width: min(1200px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
}

.navbar-logo {
  display: block;
  width: 104px;
  max-height: 58px;
  object-fit: contain;
}

.navigation-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navigation-links > a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.navigation-links > a:not(.cart-button)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.navigation-links > a:hover {
  color: #ffffff;
}

.navigation-links > a:not(.cart-button):hover::after {
  width: 100%;
}

.cart-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cart-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
}

#cart-count {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--orange),
    var(--orange-light)
  );
  color: #17203a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

.purchase-hero {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 70px;
  align-items: center;
}

.product-gallery {
  position: relative;
  min-width: 0;
}

.gallery-badge {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 24px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(7, 19, 43, 0.78);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gallery-badge i {
  color: var(--orange);
}

.main-product-image {
  position: relative;
  min-height: 610px;
  padding: 70px 55px;
  border: 1px solid var(--border);
  border-radius: 36px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.main-product-image::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 27px;
  pointer-events: none;
}

.image-glow {
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(71, 169, 255, 0.42) 0%,
      rgba(45, 126, 220, 0.16) 46%,
      transparent 72%
    );
  filter: blur(18px);
  z-index: -1;
}

.main-product-image img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 470px;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.35));
  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}

.main-product-image img:hover {
  transform: translateY(-7px) rotate(-1deg) scale(1.015);
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 82px;
  border: 2px solid rgba(255, 255, 255, 0.23);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(31, 126, 220, 0.96),
      rgba(13, 72, 147, 0.96)
    );
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.card-one {
  top: 85px;
  right: 38px;
  transform: rotate(12deg);
}

.card-two {
  bottom: 65px;
  left: 35px;
  background:
    linear-gradient(
      145deg,
      #ffad45,
      #e66a28
    );
  transform: rotate(-13deg);
}

.card-three {
  right: 58px;
  bottom: 90px;
  transform: rotate(8deg);
}

.product-thumbnails {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.thumbnail-button {
  width: 83px;
  height: 83px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.thumbnail-button:hover,
.thumbnail-button.active {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: rgba(255, 157, 61, 0.12);
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-information {
  min-width: 0;
}

.product-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(81, 180, 255, 0.30);
  border-radius: 999px;
  background: rgba(47, 151, 255, 0.12);
  color: var(--purple-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-information h1 {
  margin-top: 22px;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.product-information h1 span {
  display: block;
  background:
    linear-gradient(
      100deg,
      var(--orange-light),
      var(--orange)
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-description {
  max-width: 610px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.rating-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--orange);
  font-size: 0.88rem;
}

.feature-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-item {
  min-height: 88px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  gap: 13px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      rgba(52, 163, 255, 0.30),
      rgba(28, 103, 190, 0.14)
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  color: #ffffff;
  font-size: 0.88rem;
}

.feature-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.purchase-panel {
  margin-top: 28px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(
      145deg,
      rgba(41, 91, 174, 0.8),
      rgba(18, 73, 139, 0.76)
    );
  box-shadow:
    0 24px 60px rgba(8, 21, 60, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.price-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.price {
  margin-top: 2px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1;
}

.currency {
  margin-top: 5px;
  margin-right: 3px;
  color: var(--orange-light);
  font-size: 1.45rem;
}

.stock-badge {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(56, 211, 159, 0.22);
  border-radius: 999px;
  background: rgba(56, 211, 159, 0.09);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.quantity-section {
  margin-top: 21px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quantity-section label {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.quantity-section > div:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.77rem;
}

.quantity-control {
  height: 46px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
}

.quantity-control button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.quantity-control button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--orange);
}

.quantity-control input {
  width: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
}

.total-row {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.total-row strong {
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
}

.purchase-actions {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 11px;
}

.buy-now-button,
.add-cart-button {
  min-height: 54px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.buy-now-button {
  background:
    linear-gradient(
      135deg,
      var(--orange),
      var(--orange-light)
    );
  color: #17203a;
  box-shadow: 0 15px 30px rgba(255, 157, 61, 0.2);
}

.buy-now-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(255, 157, 61, 0.28);
}

.add-cart-button {
  border: 1px solid rgba(100, 194, 255, 0.34);
  background: rgba(47, 151, 255, 0.14);
  color: #ffffff;
}

.add-cart-button:hover {
  transform: translateY(-3px);
  background: rgba(47, 151, 255, 0.22);
}

.secure-payment {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
}

.secure-payment > div {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(56, 211, 159, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.secure-payment p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.secure-payment strong {
  display: block;
  color: #ffffff;
  font-size: 0.8rem;
}

.purchase-details {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.025)
    );
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 157, 61, 0.22),
      rgba(47, 151, 255, 0.18)
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-light);
  font-size: 1.15rem;
}

.detail-card h3 {
  margin-top: 21px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
}

.detail-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  min-height: 130px;
  margin: 70px auto 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  width: 37px;
  height: 37px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.cart-notification {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 48px));
  padding: 15px;
  border: 1px solid rgba(56, 211, 159, 0.24);
  border-radius: 18px;
  background: rgba(7, 26, 45, 0.96);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.cart-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(56, 211, 159, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.cart-notification strong,
.cart-notification span {
  display: block;
}

.cart-notification strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.cart-notification span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.77rem;
}

@media (max-width: 1020px) {
  .purchase-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-gallery {
    width: min(650px, 100%);
    margin: 0 auto;
  }

  .product-information {
    width: min(720px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 800px) {
  .navbar {
    width: min(100% - 32px, 1200px);
    min-height: 80px;
  }

  .navbar-logo {
    width: 90px;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navigation-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(5, 16, 38, 0.97);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    backdrop-filter: blur(20px);
  }

  .navigation-links.active {
    display: flex;
  }

  .navigation-links > a {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
  }

  .navigation-links > a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .navigation-links > a::after {
    display: none;
  }

  .cart-button {
    justify-content: center;
  }

  .purchase-hero,
  .purchase-details,
  .footer {
    width: min(100% - 32px, 1200px);
  }

  .purchase-hero {
    margin-top: 24px;
  }

  .main-product-image {
    min-height: 500px;
    padding: 70px 40px;
  }

  .purchase-details {
    grid-template-columns: 1fr;
    margin-top: 65px;
  }

  .footer {
    padding: 30px 0;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .purchase-page {
    overflow: hidden;
  }

  .purchase-hero {
    gap: 38px;
  }

  .main-product-image {
    min-height: 410px;
    padding: 62px 30px 40px;
    border-radius: 27px;
  }

  .gallery-badge {
    top: 16px;
    left: 16px;
    font-size: 0.68rem;
  }

  .floating-card {
    width: 48px;
    height: 63px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .card-one {
    top: 70px;
    right: 18px;
  }

  .card-two {
    bottom: 42px;
    left: 18px;
  }

  .card-three {
    right: 28px;
    bottom: 55px;
  }

  .thumbnail-button {
    width: 70px;
    height: 70px;
  }

  .product-information h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .product-description {
    font-size: 0.96rem;
  }

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

  .purchase-panel {
    padding: 20px;
  }

  .quantity-section {
    align-items: flex-start;
  }

  .purchase-actions {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: auto;
  }

  .cart-notification {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }
}