.custom-logo {
  max-width: 150px;
  height: auto;
}

.offer-bazaar-page {
  padding: 40px 0;
}

.offer-bazaar-filter-form {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr auto 220px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.offer-bazaar-filter-form input,
.offer-bazaar-filter-form select,
.offer-bazaar-submit input,
.offer-bazaar-submit select,
.offer-bazaar-submit textarea,
.offer-bazaar-auth input,
.offer-bazaar-manage input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
}

.offer-bazaar-pagination {
  margin: 28px 0 50px;
}

.offer-bazaar-logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
}

.offer-bazaar-logo-strip button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 110px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.05);
}

.offer-bazaar-logo-strip img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}

.offer-bazaar-brochure-heading {
  margin-top: 48px;
}

.offer-bazaar-brochure-grid {
  margin-top: 20px;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pdf-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(20, 20, 20, 0.10);
}

.cover-wrap {
  display: block;
}

.offer-bazaar-cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.offer-bazaar-pdf-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f5f5;
  pointer-events: none;
}

.offer-bazaar-cover-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pdf-cover {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #c53c62, #f1a43a);
}

.corner-fold {
  position: absolute;
  top: 0;
  right: 0;
  border-top: 46px solid rgba(255, 255, 255, 0.75);
  border-left: 46px solid transparent;
}

.cover-badge,
.tag-row span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.cover-badge,
.tag-row span {
  background: rgba(255, 255, 255, 0.18);
}

.cover-title {
  margin-top: 42px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
}

.cover-lines {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.cover-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.cover-lines span:nth-child(2) {
  width: 76%;
}

.cover-lines span:nth-child(3) {
  width: 58%;
}

.tag-row {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.card-body {
  position: relative;
  min-height: 140px;
  padding: 18px 14px 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #777;
  font-size: 13px;
}

.card-body h2 {
  max-width: calc(100% - 82px);
  margin: 0 0 8px;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.card-desc {
  max-width: calc(100% - 82px);
  margin: 0 0 18px;
  color: #777;
  font-weight: 700;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.offer-bazaar-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.offer-bazaar-brochure-logo {
  position: absolute;
  right: 14px;
  top: -52px;
  width: 76px;
  height: 76px;
  padding: 5px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
}

.offer-bazaar-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.offer-bazaar-card-actions .button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--primary-color, #f91942);
  font-size: 13px;
  font-weight: 700;
}

.offer-bazaar-card-actions .view-button::before {
  content: "";
  position: static;
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  filter: none;
}

.offer-bazaar-card-actions .view-button::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: -16px;
  margin-right: 12px;
  border-radius: 50%;
  background: currentColor;
}

.download-button {
  color: #333;
  background: #f4f4f4;
}

.offer-bazaar-single {
  padding: 38px 0 60px;
}

.offer-bazaar-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.offer-bazaar-gallery {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  background: #f5f5f5;
}

.offer-bazaar-gallery > img {
  display: none;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.offer-bazaar-gallery > img.active {
  display: block;
}

.offer-bazaar-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: #fff;
}

.offer-bazaar-thumbs button {
  flex: 0 0 74px;
  border: 0;
  padding: 0;
  background: transparent;
}

.offer-bazaar-thumbs img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}

.offer-bazaar-quick-details,
.offer-bazaar-submit,
.offer-bazaar-auth,
.offer-bazaar-manage-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.offer-bazaar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.offer-bazaar-shop-content,
.offer-bazaar-map,
#offers {
  margin-top: 38px;
}

.offer-bazaar-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
}

.offer-bazaar-dashboard {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 0;
}

.offer-bazaar-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.offer-bazaar-submit label {
  display: block;
  margin: 14px 0;
  font-weight: 700;
}

.offer-bazaar-submit textarea,
.offer-bazaar-submit .button {
  margin-top: 12px;
}

.offer-bazaar-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #eaf7ee;
  color: #176c2f;
}

.offer-bazaar-notice.error {
  background: #fff0f0;
  color: #9b1c1c;
}

.offer-bazaar-manage {
  margin-top: 28px;
}

.offer-bazaar-manage-card {
  margin-top: 14px;
}

.offer-bazaar-manage-card h3 span {
  color: #777;
  font-size: 13px;
  font-weight: 600;
}

.offer-bazaar-edit-details {
  margin: 14px 0;
}

.offer-bazaar-edit-details summary {
  cursor: pointer;
  color: var(--primary-color, #f91942);
  font-weight: 700;
}

.offer-bazaar-edit-details .offer-bazaar-submit {
  margin-top: 12px;
  box-shadow: none;
}

.offer-bazaar-inline-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.offer-bazaar-inline-form button {
  min-width: 96px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--primary-color, #f91942);
}

.offer-bazaar-inline-form .danger {
  background: #8b1d1d;
}

@media (max-width: 900px) {
  .offer-bazaar-filter-form,
  .offer-bazaar-shop-hero,
  .offer-bazaar-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .offer-bazaar-cover-wrap {
    aspect-ratio: 3 / 4;
  }
}
