:root {
  --primary: #0057B8;
  --secondary: #E31B23;
  --dark: #0F172A;
  --light: #F8FAFC;
  --muted: #64748B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(circle at 15% 25%, rgba(0,87,184,.07), transparent 28%),
    radial-gradient(circle at 85% 65%, rgba(227,27,35,.06), transparent 30%),
    linear-gradient(180deg, #F8FAFC, #EEF4FF);
  color: var(--dark);
}

/* PRODUCTS HERO */
.products-hero {
  min-height: 78vh;
  padding: 170px 8% 100px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 70px;
  color: white;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 12% 25%, rgba(227,27,35,.20), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(0,87,184,.42), transparent 32%),
    linear-gradient(135deg, #0F172A, #1E293B 45%, #003E8A);
}

.products-hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -260px;
  top: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  filter: blur(60px);
}

.products-hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.products-hero-content > span {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 50px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: #BFDBFE;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

.products-hero h1 {
  font-size: 72px;
  line-height: 1.02;
  margin: 28px 0 22px;
}

.products-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: 19px;
  line-height: 1.8;
}

.hero-categories {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-categories small {
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  font-weight: 600;
}

.hero-product-card {
  position: relative;
  z-index: 2;
  padding: 32px;
  border-radius: 38px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
  overflow: hidden;
}

.hero-product-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: rgba(227,27,35,.18);
  filter: blur(55px);
}

.hero-product-top,
.hero-product-bottom,
.hero-product-card img {
  position: relative;
  z-index: 2;
}

.hero-product-top span {
  color: #93C5FD;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-product-top p {
  font-size: 15px;
  margin-top: 6px;
}

.hero-product-card img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  margin: 20px 0;
  filter: drop-shadow(0 30px 35px rgba(0,0,0,.28));
  animation: productFloat 5s ease-in-out infinite;
}

.hero-product-bottom {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

.hero-product-bottom h3 {
  font-size: 26px;
}

.hero-product-bottom p {
  font-size: 15px;
  margin-top: 5px;
}

.hero-product-card img{

    transition:
        opacity .45s,
        transform .45s;

}



@keyframes productFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 900px) {
  .products-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .products-hero h1 {
    font-size: 44px;
  }

  .hero-categories {
    justify-content: center;
  }
}

.catalog {
  width: 90%;
  margin: 70px auto;
  padding: 55px;
  border-radius: 42px;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0,87,184,.12);
  box-shadow: 0 28px 70px rgba(15,23,42,.08);
}

.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 35px;
}

.catalog-top span {
  color: var(--secondary);
}

.catalog-top h2 {
  font-size: 42px;
  margin-top: 10px;
}

.search-box input {
  width: 320px;
  padding: 16px 22px;
  border-radius: 50px;
  border: 1px solid rgba(0,87,184,.16);
  outline: none;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.search-box input:focus {
  border-color: var(--primary);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 12px 22px;
  border: 0;
  border-radius: 50px;
  background: rgba(0,87,184,.08);
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
  transition: .3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-3px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  position: relative;
  padding: 28px;
  border-radius: 30px;
  background: white;
  border: 1px solid rgba(0,87,184,.10);
  box-shadow: 0 18px 45px rgba(15,23,42,.07);
  cursor: pointer;
  transition: .35s;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,87,184,.08), rgba(227,27,35,.06));
  opacity: 0;
  transition: .35s;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 65px rgba(0,87,184,.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card img,
.product-card span,
.product-card h3,
.product-card p {
  position: relative;
  z-index: 2;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 20px 25px rgba(15,23,42,.12));
  transition: .35s;
}

.product-card {
  position: relative;
  padding: 28px;
  min-height: 390px;
  border-radius: 30px;
  background: white;
  border: 1px solid rgba(0,87,184,.10);
  box-shadow: 0 18px 45px rgba(15,23,42,.07);
  cursor: pointer;
  overflow: hidden;
  transition: .35s;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: .45s;
}

.product-card span,
.product-card h3,
.product-card p {
  position: relative;
  z-index: 2;
}

.product-card::after {
  content: "View Details";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -60px;
  padding: 14px;
  border-radius: 50px;
  text-align: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: .35s;
  z-index: 4;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(15,23,42,.16);
}

.product-card:hover img {
  transform: translateY(-18px) scale(.92);
  opacity: .45;
}

.product-card:hover::after {
  bottom: 24px;
}

.product-card:hover h3 {
  color: var(--primary);
}

.product-card span {
  display: inline-block;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.6;
}

.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.product-modal.show {
  display: flex;
}

.modal-box {
  width: 520px;
  max-width: 100%;
  padding: 38px;
  border-radius: 34px;
  background: white;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: modalPop .35s ease;
}

.modal-box img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  margin-bottom: 20px;
}

.modal-box span {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.modal-box h2 {
  font-size: 34px;
  margin: 12px 0;
}

.modal-box p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: var(--dark);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(25px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .products-hero h1 {
    font-size: 44px;
  }

  .catalog {
    padding: 30px 22px;
  }

  .catalog-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box input {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}