:root {
  --navy: #0b3475;
  --deep-navy: #06245a;
  --blue: #0075ff;
  --sky: #8ec5ff;
  --orange: #fe951c;
  --soft-bg: #eef3f9;
}

body {
  background:
    radial-gradient(
      circle at top left,
      rgba(142, 197, 255, 0.28),
      transparent 34%
    ),
    linear-gradient(135deg, #f8fbff 0%, var(--soft-bg) 45%, #ffffff 100%);
  padding-top: 90px;
  color: var(--navy);
}

.product-detail-page {
  background:
    linear-gradient(90deg, rgba(142, 197, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  background-size:
    42px 42px,
    auto;
  min-height: calc(100vh - 90px);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  padding: 36px 0 48px;
  animation: detailEnter 0.7s ease both;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  position: relative;
  align-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.detail-gallery::after {
  content: "FALCONS";
  position: absolute;
  top: 32px;
  left: 34px;
  color: rgba(11, 52, 117, 0.18);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.32em;
  z-index: 3;
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
  animation: thumbsEnter 0.7s ease both;
  position: relative;
  z-index: 4;
  padding: 0;
}

.thumbs img,
.main-product-img {
  width: 100%;
  object-fit: cover;
  background: #f3f5f8;
}

.thumbs img {
  aspect-ratio: 1;
  height: auto;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  filter: saturate(0.88) brightness(0.82);
  outline: 2px solid var(--sky);
  outline-offset: 0;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.thumbs img:hover,
.thumbs img.active-thumb {
  outline: 2px solid var(--orange);
  box-shadow:
    0 0 0 2px rgba(142, 197, 255, 0.75),
    0 0 18px rgba(254, 149, 28, 0.45);
  filter: saturate(1.16) brightness(1);
  transform: translateX(4px);
}

.main-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  border: 0;
  outline: 3px solid transparent;
  box-shadow:
    0 0 0 2px var(--sky),
    0 0 0 4px var(--blue),
    0 0 0 6px var(--orange),
    0 24px 54px rgba(6, 36, 90, 0.18);
  z-index: 2;
  height: 650px;
}

.main-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(6, 36, 90, 0.42),
      transparent 42%,
      rgba(142, 197, 255, 0.24)
    ),
    radial-gradient(
      circle at bottom left,
      rgba(254, 149, 28, 0.14),
      transparent 36%
    );
  pointer-events: none;
  z-index: 1;
}

.main-image-frame::after {
  content: "FW";
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 80px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  z-index: 2;
}

.main-product-img {
  height: 650px;
  display: block;
  object-fit: cover;
  transition:
    opacity 0.18s ease,
    transform 0.4s ease,
    filter 0.4s ease;
  animation: imageReveal 0.65s ease both;
  filter: contrast(1.04) saturate(0.9);
}

.main-product-img.image-changing {
  opacity: 0.25;
  transform: scale(0.985);
  filter: blur(4px);
}

.detail-info {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(142, 197, 255, 0.32);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 18px 44px rgba(6, 36, 90, 0.12);
  overflow: hidden;
  animation: infoEnter 0.7s 0.08s ease both;
}

.detail-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--orange));
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--orange);
  font-size: 18px;
  line-height: 1;
}

.rating span {
  color: var(--navy);
  font-size: 13px;
  margin-left: 4px;
}

.product-badge {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(1, 13, 53, 0.22);
}

.template-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 14px 0 8px;
}

.detail-info h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--navy);
}

.detail-price {
  font-size: 30px;
  color: var(--blue);
  line-height: 1;
  margin: 0 0 8px;
}

.tax-note {
  color: #26324f;
  font-size: 16px;
  margin-bottom: 36px;
}

.tax-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(1, 13, 53, 0.16);
  padding-top: 30px;
  margin-bottom: 24px;
}

.category-tab {
  min-height: 52px;
  border: 1px solid rgba(1, 13, 53, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #1d1d1d;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(6, 36, 90, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.category-tab:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
  box-shadow: 0 12px 24px rgba(105, 184, 255, 0.16);
}

.category-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 117, 255, 0.26);
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #007b20;
  font-weight: 800;
  margin: 26px 0 18px;
}

.stock-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #007b20;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.quantity-row label {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 46px 70px 46px;
  min-height: 46px;
  border: 1px solid rgba(142, 197, 255, 0.55);
  border-radius: 14px;
  overflow: hidden;
  background: #f8fcff;
  box-shadow: 0 10px 24px rgba(6, 36, 90, 0.08);
}

.qty-btn,
.quantity-stepper input {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.qty-btn {
  font-size: 22px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.qty-btn:hover {
  background: var(--sky);
  color: #fff;
}

.quantity-stepper input {
  border-left: 1px solid rgba(142, 197, 255, 0.45);
  border-right: 1px solid rgba(142, 197, 255, 0.45);
  font-size: 18px;
  outline: none;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.purchase-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1477ff 0%, #16c7d9 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 28px rgba(20, 119, 255, 0.22);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.cart-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(20, 119, 255, 0.3);
  filter: saturate(1.05);
}

.cart-btn i {
  font-size: 18px;
}

.cart-action-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.16));
}

.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  border: 2px solid var(--blue);
  border-radius: 24px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.secondary-action:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 117, 255, 0.22);
}

.product-description-card {
  border: 1px solid rgba(142, 197, 255, 0.35);
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(11, 52, 117, 0.05),
    rgba(142, 197, 255, 0.14)
  );
  padding: 20px;
  margin: 0 0 28px;
}

.product-description-inline {
  margin: 14px 0 34px;
}

.product-description-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 8px;
}

.product-description-card i {
  color: var(--orange);
  font-size: 15px;
}

.product-description-card p {
  color: #26324f;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.product-extra-section {
  position: relative;
  margin: 0 0 56px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(142, 197, 255, 0.32);
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(6, 36, 90, 0.12);
  animation: detailEnter 0.7s 0.12s ease both;
  overflow: hidden;
}

.product-extra-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--orange));
}

.info-panel {
  margin-bottom: 30px;
}

.info-panel .product-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(1, 13, 53, 0.14);
}

.explore-panel {
  margin-top: 28px;
  padding: 22px;
  border: 2px solid var(--orange);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(11, 52, 117, 0.96),
    rgba(6, 36, 90, 0.92)
  );
  box-shadow: 0 20px 42px rgba(6, 36, 90, 0.18);
}

.explore-header {
  margin-bottom: 16px;
}

.explore-header span {
  display: inline-block;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.explore-header h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

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

.explore-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--orange);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.explore-card:hover {
  color: #fff;
  border-color: var(--sky);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 117, 255, 0.2);
}

.explore-card img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.explore-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.06);
}

.explore-card div {
  padding: 10px 10px 12px;
}

.explore-card h3 {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 700;
}

.explore-card p {
  color: var(--sky);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.product-services {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.product-services a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #26324f;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.product-services a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

.product-services i {
  color: var(--blue);
  font-size: 22px;
}

.detail-section {
  border-top: 1px solid rgba(1, 13, 53, 0.14);
  padding: 24px 0;
}

.detail-section h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin: 0 0 16px;
}

.detail-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.detail-section li {
  position: relative;
  padding-left: 18px;
  color: #26324f;
}

.detail-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--orange);
  border-radius: 50%;
}

@keyframes detailEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes infoEnter {
  from {
    opacity: 0;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes thumbsEnter {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gear-list {
  display: grid;
  gap: 14px;
}

.gear-card {
  display: grid;
  grid-template-columns: 112px 1fr 112px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(142, 197, 255, 0.28);
  background: linear-gradient(
    90deg,
    rgba(142, 197, 255, 0.12),
    rgba(255, 255, 255, 0.72)
  );
  box-shadow: 0 10px 26px rgba(6, 36, 90, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.gear-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 117, 255, 0.34);
  box-shadow: 0 16px 34px rgba(6, 36, 90, 0.13);
}

.gear-card img {
  width: 112px;
  height: 92px;
  object-fit: cover;
  background: #f3f5f8;
  border-radius: 0;
}

.gear-card span {
  display: inline-block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gear-card h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.gear-card p {
  margin: 0;
  color: #26324f;
}

.gear-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #69b8ff, #9fd4ff);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(105, 184, 255, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gear-card a:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(105, 184, 255, 0.34);
}

@media (max-width: 991px) {
  .detail-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .main-product-img {
    height: 520px;
  }

  .main-image-frame {
    height: 520px;
  }

  .detail-gallery {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 98px;
  }

  .detail-shell {
    padding: 18px 0 32px;
  }

  .product-detail-page .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-gallery {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 0;
    border-radius: 0;
  }

  .thumbs {
    order: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
  }

  .thumbs img {
    height: auto;
    border-radius: 8px;
    border-width: 2px;
  }

  .main-product-img {
    height: 300px;
    min-height: 300px;
  }

  .main-image-frame {
    border-radius: 8px;
    height: 300px;
    box-shadow:
      0 0 0 1px var(--sky),
      0 0 0 3px var(--blue),
      0 0 0 5px var(--orange),
      0 18px 34px rgba(6, 36, 90, 0.14);
  }

  .main-image-frame::after {
    font-size: 46px;
    right: 14px;
    bottom: 10px;
  }

  .detail-gallery::after {
    top: 22px;
    left: 22px;
    font-size: 10px;
  }

  .detail-info h1 {
    font-size: 26px;
  }

  .detail-price {
    font-size: 24px;
  }

  .detail-top {
    align-items: center;
  }

  .category-tabs {
    gap: 8px;
    padding-top: 22px;
  }

  .category-tab {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .cart-btn {
    min-height: 50px;
    border-radius: 16px;
    font-size: 13px;
  }

  .quantity-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .quantity-stepper {
    width: 100%;
    grid-template-columns: 48px 1fr 48px;
  }

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

  .cart-btn,
  .secondary-action {
    min-height: 48px;
    border-radius: 16px;
    font-size: 13px;
  }

  .product-extra-section {
    margin: 0 0 34px;
    padding: 22px 16px;
  }

  .info-panel .product-services {
    grid-template-columns: 1fr;
  }

  .explore-panel {
    padding: 16px;
  }

  .explore-header h2 {
    font-size: 26px;
  }

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

  .explore-card h3 {
    font-size: 13px;
  }

  .explore-card p {
    font-size: 13px;
  }

  .gear-card {
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .gear-card img {
    width: 86px;
    height: 86px;
  }

  .gear-card img:last-child {
    display: none;
  }
}
