/* Version: 1.020 stevo*/

/* -----------------------------
   Offer Box Styles
------------------------------*/
.top-offers-section {
  padding: 30px 15px 10px;
  background-color: transparent;
  text-align: center;
}

.offer-row-wrapper {
  display: flex;
  justify-content: center;
}

.offer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.offer-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
  transition: transform 0.2s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.offer-box:hover {
  transform: translateY(-5px);
}

.image-container {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.brand-logo {
  position: absolute;
  bottom: 13px;
  left: 8px;
  width: 60px;
  height: 40px;
  z-index: 2;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.offer-content {
  padding: 10px 12px 4px;
}

.offer-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #333;
}

.offer-title a {
  text-decoration: none;
  color: #333;
}

.offer-title a:hover {
  text-decoration: underline;
}

/* -----------------------------
   Badge Styles
------------------------------*/
.nhs-badge,
.exclusive-badge,
.hot-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  line-height: 1;
}

.nhs-badge {
  background-color: #005AAE;
  color: #fff;
}

.exclusive-badge {
  background-color: #FFCC00;
  color: #000;
}

.hot-badge {
  background-color: #E53935;
  color: #fff;
}

/* -----------------------------
   Responsive Offer Grid
------------------------------*/
@media (max-width: 900px) {
  .offer-box {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .offer-box {
    width: 100%;
  }
}

/* -----------------------------
   Category Page Layout
------------------------------*/
.content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 50px;
}

.site-main {
  flex: 1 1 70%;
  min-width: 300px;
}

.sidebar {
  flex: 1 1 25%;
  min-width: 250px;
}

/* Mobile stacking layout */
@media (max-width: 900px) {
  .content-area {
    flex-direction: column;
    padding-top: 30px;
  }

  .site-main,
  .sidebar {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* -----------------------------
   PAGINATION STYLING
   FINAL FIXED VERSION
------------------------------*/

/* Container */
.tod-pagination,
.pagination {
  margin-top: 40px !important;
  text-align: center !important;
}

/* UL = inline row */
.tod-pagination ul,
.pagination ul {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  list-style: none !important;
}

/* LI */
.tod-pagination li,
.pagination li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Page numbers */
.tod-pagination a,
.tod-pagination span,
.pagination a,
.pagination span {
  display: inline-block !important;
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #333 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Active page */
.tod-pagination .current,
.pagination .current {
  background-color: #005AAE !important;
  color: #fff !important;
  border-color: #005AAE !important;
}

/* Hover */
.tod-pagination a:hover,
.pagination a:hover {
  background-color: #f4f4f4 !important;
}

/* Mobile responsive */
@media (max-width: 600px) {

  .tod-pagination ul,
  .pagination ul {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .tod-pagination a,
  .pagination a,
  .tod-pagination span,
  .pagination span {
    width: auto !important;
    padding: 8px 14px !important;
    margin-bottom: 6px !important;
  }
}
