/* =============================================
   PACKTECH — OUR PRODUCTS HEADER SECTION
   ============================================= */

.products-section {
  position: relative;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  padding-bottom: 60px;
}

.products-header {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.products-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Optional slight parallax effect */
  transform: scale(1.05);
  transition: transform 1s ease;
}

/* .products-bg:hover {
  transform: scale(1.08);
} */

.products-content {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.products-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.products-title-wrap {
  position: relative;
  display: inline-block;
  padding: 20px 80px;
  margin-bottom: 30px;
}

.title-torn-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.products-main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #5a3520;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* Divider styling */
.products-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.divider-icon {
  color: #ffffff;
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.divider-icon:hover {
  transform: rotate(360deg) scale(1.2);
}

/* ─── Product Grid Styling ───────────────────── */

.product-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(580px, 1fr));
  gap: 40px;
}

.product-card {
  background: #f1f6f9;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.5s ease;
  min-height: 400px;
  border: 1px solid rgba(0,0,0,0.02);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.07);
}

.product-info {
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  font-size: 40px;
  line-height: 0.8;
  color: #6a2900;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #7d7d7d;
  line-height: 1.45;
  margin-bottom: 35px;
  max-width: 340px;
}

/* Torn Shape Button */
.button-wrap {
  position: relative;
  display: inline-block;
  padding: 10px 48px;
  width: fit-content;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button-wrap:hover {
  transform: scale(1.08) rotate(-1deg);
}

.btn-torn-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}

.view-btn, .customize-btn {
  position: relative;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #6a2900;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrow {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}

.button-wrap:hover .arrow {
  transform: translateX(5px);
}

/* Product Visual */
.product-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px 0 0 0;
}

.product-visual img {
  max-width: 115%;
  height: auto;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translateX(12%) translateY(5%);
}

.product-card:hover .product-visual img {
  transform: translateX(2%) translateY(0) scale(1.08);
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .products-header {
    min-height: 320px;
  }

  .products-title-wrap {
    padding: 15px 40px;
  }

  .products-subtitle {
    font-size: 0.95rem;
  }

  .products-divider {
    max-width: 80%;
  }

  .product-grid-container {
    padding: 40px 15px;
  }

  .product-card {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .product-info {
    padding: 40px 25px;
    align-items: center;
  }

  .product-desc {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .product-visual {
    justify-content: center;
    padding: 0 20px 20px;
  }

  .product-visual img {
    max-width: 90%;
    transform: none !important;
  }
}