/* ---------- Hero Section ---------- */
#lockout-products {
  position: relative;
  color: #fff;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 60vh;
  padding: 40px 10%;
  box-sizing: border-box;
}

/* ---------- Background Image ---------- */
#lockout-products img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: all 0.4s ease;
}

/* ---------- Overlay Tint ---------- */
#lockout-products::after {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 51, 0.6);
  z-index: 1;
}

/* ---------- Content ---------- */
.lockout-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 15px 25px;
}

/* ---------- Headline ---------- */
.lockout-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: rgb(255, 201, 5);
  line-height: 1.2;
}

/* ---------- Paragraph ---------- */
.lockout-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  color: white;
}

/* ---------- Button ---------- */
.lockout-btn {
  background: rgb(196, 150, 1);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lockout-btn:hover {
  background: #000840;
  transform: scale(1.05);
}

/* ---------- Fade Up Animation ---------- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.lockout-content h1,
.lockout-content p,
.lockout-btn {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}
.lockout-content h1 { animation-delay: 0.2s; }
.lockout-content p { animation-delay: 0.5s; }
.lockout-btn { animation-delay: 0.8s; }

/* ---------- Responsive Adjustments ---------- */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  #lockout-products {
    min-height: 50vh;
    padding: 30px 8%;
  }

  #lockout-products img {
    width: 160%;
    left: -30%;
  }

  .lockout-content h1 {
    font-size: 2.5rem;
  }

  .lockout-content p {
    font-size: 1rem;
  }
}

/* Large Phones (≤ 768px) */
@media (max-width: 768px) {
  #lockout-products {
    min-height: 50vh;
    padding: 30px 5%;
  }

  #lockout-products img {
    width: 200%;
    left: -80%;
  }

  .lockout-content {
    max-width: 90%;
    padding: 10px 15px;
  }

  .lockout-content h1 {
    font-size: 2rem;
  }

  .lockout-content p {
    font-size: 0.95rem;
  }

  .lockout-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* Small Phones (≤ 480px) */
@media (max-width: 480px) {
  #lockout-products {
    min-height: 25vh;
    padding: 25px 5%;
  }

  #lockout-products img {
    width: 220%;
    left: -80%;
  }

  .lockout-content {
    max-width: 100%;
    padding: 10px;
  }

  .lockout-content h1 {
    font-size: 1.6rem;
  }

  .lockout-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .lockout-btn {
    padding: 9px 14px;
    font-size: 0.9rem;
  }
}

/* Extra Small Devices (≤ 360px) */
@media (max-width: 360px) {
  #lockout-products {
    min-height: 10vh;
  }

  .lockout-content h1 {
    font-size: 1.4rem;
  }

  .lockout-content p {
    font-size: 0.85rem;
  }

  .lockout-btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* ---------- Products Section ---------- */
.section-title {
  text-align: center;
  color: #003366;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: block;
  margin-bottom: 0; /* removed extra space */
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #c5a803;
  border-radius: 2px;
}

/* Container adjustments */
#our-product-grid .container {
  padding: 0; /* removed extra padding */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Grid layout */
#our-product-grid .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

/* Product card */
#our-product-grid .product-card {
  position: relative;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: 1px solid #003366; /* full border */
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0; /* removed extra padding */
  width: 100%;
  max-width: 350px;
  height: 280px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out, box-shadow 0.3s, transform 0.3s;
}

#our-product-grid .product-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered fade-in */
#our-product-grid .products-grid .product-card:nth-child(1) { transition-delay: 0.1s; }
#our-product-grid .products-grid .product-card:nth-child(2) { transition-delay: 0.2s; }
#our-product-grid .products-grid .product-card:nth-child(3) { transition-delay: 0.3s; }
#our-product-grid .products-grid .product-card:nth-child(4) { transition-delay: 0.4s; }
#our-product-grid .products-grid .product-card:nth-child(5) { transition-delay: 0.5s; }
#our-product-grid .products-grid .product-card:nth-child(6) { transition-delay: 0.6s; }
#our-product-grid .products-grid .product-card:nth-child(7) { transition-delay: 0.7s; }
#our-product-grid .products-grid .product-card:nth-child(8) { transition-delay: 0.8s; }
#our-product-grid .products-grid .product-card:nth-child(9) { transition-delay: 0.9s; }
#our-product-grid .products-grid .product-card:nth-child(10) { transition-delay: 1s; }
#our-product-grid .products-grid .product-card:nth-child(11) { transition-delay: 1.1s; }
#our-product-grid .products-grid .product-card:nth-child(12) { transition-delay: 1.2s; }

/* Hover effect */
#our-product-grid .product-card:hover {
  box-shadow: 0 20px 35px rgba(0,0,0,0.25);
  transform: translateY(-5px);
}

/* Image container */
#our-product-grid .img-container {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#our-product-grid .product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.4s ease;
}

#our-product-grid .product-card:hover .product-img {
  transform: scale(1.05);
}

/* Overlay */
#our-product-grid .product-card .overlay {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: top 0.5s ease, opacity 0.8s ease;
  padding: 0; /* removed extra space */
  box-sizing: border-box;
  border-radius: 0;
  flex-direction: column;
  opacity: 0;
}

#our-product-grid .product-card:hover .overlay {
  top: 0;
  opacity: 1;
}

/* Overlay text */
#our-product-grid .product-card .overlay .overlay-text {
  display: flex;
  flex-direction: column;
  gap: 10px; /* reduced gap between h3 and button */
  opacity: 0;
  transform: translateY(0); /* removed extra spacing */
  transition: opacity 0.8s ease, transform 0.8s ease, color 0.8s ease;
  color: #FFD700;
}

#our-product-grid .overlay .product-title {
  color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Animate overlay text */
#our-product-grid .product-card:hover .overlay .overlay-text {
  opacity: 1;
  transform: translateY(0);
}

/* Circular Buttons */
#our-product-grid .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  font-size: 1.5rem;
  background: #d3b300;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #a78e00;
  opacity: 0;
  position: absolute;
  top: 70%; /* lowered button */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.8s ease, transform 0.3s ease;
}

#our-product-grid .product-card:hover .btn {
  opacity: 1;
  transform: translate(-50%, -50%);
}

#our-product-grid .btn:hover {
  background: #003366;
  color: #FFD700;
  transform: translate(-50%, -50%) translateY(-2px);
}

#our-product-grid .btn i {
  color: #ffffff;
  font-size: 20px;
}

#our-product-grid .btn:hover i {
  color: #FFD700;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  #our-product-grid .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #our-product-grid .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  #our-product-grid .products-grid {
    grid-template-columns: 1fr;
  }
  
  #our-product-grid .product-card {
    height: auto;
  }
  
  #our-product-grid .img-container {
    height: 180px;
  }
}   
