/* Base Section */
.offer-section {
  background: #222;
  color: #ddd;
  padding: 80px 20px;
  font-family: "Poppins", Arial, sans-serif;
  text-align: center;
}

/* Container centered for large screens */
.offer-container {
  max-width: 1100px;   /* Restricts width */
  margin: 0 auto;      /* Centers horizontally */
}

/* Headings */
.section-title {
  color: gold;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #aaa;
  margin-bottom: 2.5rem;
}

/* Grid layout */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;  /* centers the grid items */
  align-items: stretch;
}

/* Individual Card */
.card {
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 340px;     /* Prevents extra-wide cards */
  margin: 0 auto;       /* Keeps each card centered in its grid column */
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Card Image */
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Card Body */
.card-body {
  padding: 1.2rem;
}

.card-title {
  color: gold;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card-text {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.explore-btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(45deg, #daa520, #ffd700);
  color: #000;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  background: linear-gradient(45deg, #ffd700, #fff8dc);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}


/* Category Accent Borders */
.card.liquor { border-top: 3px solid #a0522d; }
.card.bar { border-top: 3px solid #708090; }
.card.cigar { border-top: 3px solid #8b4513; }

.no-items {
  color: #999;
  font-style: italic;
  text-align: center;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Medium Screens (Tablets) */
@media (max-width: 992px) {
  .section-title {
    font-size: 1.8rem;
  }
  .offer-container {
    max-width: 90%;
  }
}

/* Small Screens (Phones) */
@media (max-width: 600px) {
  .offer-section {
    padding: 60px 15px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    max-width: 100%;
  }
  .card-img {
    height: 180px;
  }
}
