@media (max-width: 768px) {
  .products-section {
    padding: 1.5rem 1rem;
  }

  .products-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    text-align: center;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns layout */
    gap: 1rem;
  }

  .flip-container {
    width: 100%;
    aspect-ratio: 3 / 5.2;
    perspective: 1000px;
  }

  .flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
  }


  .flip-front,
  .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 40% / 10%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    box-sizing: border-box;
  }

  .flip-front {
    z-index: 2;
  }

  .flip-front img {
    width: 100%;
    height: 140px; /* fixed height for image */
    object-fit: cover;
    border-top-left-radius: 40% 10%;
    border-top-right-radius: 40% 10%;
  }

  .flip-back {
    transform: rotateY(180deg);
    justify-content: center;
  }

  .product-details {
    flex-grow: .2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
   padding: 3% 0;
    width: 100%;
    margin-top: 0;
  }

  .product-details h3 {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    word-break: break-word;
  }

  .product-details p {
    font-size: 0.5rem;
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
  
    -webkit-box-orient: vertical;
  }

  .animated-buy-button {
    font-size: 0.5rem;
    padding-top: 0;
    white-space: nowrap;
    color: #c09f67;
    text-decoration: none;
    animation: textPulse 2.5s ease-in-out infinite;
    margin-top: 0%;
  }

  /* Show only first 6 cards */
  .product-grid .flip-container:nth-child(n+7) {
    display: none;
  }

.show-more-button {
  display: inline-block;
  margin: 2rem auto;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  
  color: #c09f67;
  background-color: transparent;
  border: 1px solid #c09f67;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}



  @keyframes textPulse {
    0%, 100% {
      opacity: 1;
      transform: translateY(0);
    }
    50% {
      opacity: 0.5;
      transform: translateY(-2px);
    }
  }
}
/* ==================================================
   Mobile Version (#tips-slider) - No Masks
================================================== */
@media (max-width: 768px) {
  #tips-slider {
    /* Keep the main background, no masks */
 background-image: url('../images/_DSC2915-min.jpg');

    background-size: cover;
    background-position: center;
    background-color: #0000009d;

    /* Remove any masks */
    -webkit-mask-image: none;
    mask-image: none;

    padding: 2rem 1rem;
  }

  #tips-slider h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .tips-container {
    max-width: 100%; /* Allow it to fill mobile screen */
    margin: 0 auto;
  }

  .tip-slide {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .tips-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .tips-buttons button {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
  }
}
