/*
 * Header/footer chrome shared in spirit with the blog's own header
 * (custom.webdemoprojects.com/pickwise), reimplemented under pv- prefixed
 * classes instead of reusing blog.css directly - the blog's utility classes
 * (.container, .py-1, .gap-1, .flex ...) collide with Bootstrap classes of
 * the same name already used by the rest of this page for unrelated values,
 * so loading both stylesheets together would corrupt the page body layout.
 */

.pv-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 15px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pv-header .pv-logo img {
  max-width: 150px;
  display: block;
}

.pv-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pv-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875em;
}

.pv-nav a {
  color: #141414;
  text-decoration: none;
}

.pv-nav a:hover {
  color: #7102fe;
}

.pv-search-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  color: #141414;
  padding: 0;
}

.pv-mbtn {
  display: none;
  width: 2.5em;
  height: 1.9em;
  cursor: pointer;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.pv-mbtn:before,
.pv-mbtn:after {
  content: "";
  display: block;
  width: 100%;
  transition: transform 200ms linear, border-bottom-color 200ms linear;
}

.pv-mbtn:before {
  border-top: solid 2px #141414;
}

.pv-mbtn:after {
  border: solid #141414;
  border-width: 2px 0 2px;
  margin-top: 0.6rem;
  height: 0.6rem;
}

.pv-mbtn.open:before {
  transform: translate(0px, 13px) rotate(45deg);
}

.pv-mbtn.open:after {
  transform: translate(4px, -1px) rotate(-45deg);
  border-bottom-color: transparent;
}

.pv-search-box {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-height: 100vh;
  overflow-y: auto;
  background: #fff;
  z-index: 1001;
  padding: 2rem 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pv-search-box.open {
  display: block;
}

.pv-search-input-row {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.pv-search-input-row input {
  font-size: 1.4em;
  width: 100%;
  padding: 0.4em 3rem 0.4em 0;
  border: none;
  border-bottom: 2px solid #7102fe;
  outline: none;
}

.pv-search-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  font-size: 1.5em;
  line-height: 1;
  color: #141414;
  cursor: pointer;
}

.pv-search-results {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.pv-search-col h3 {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #141414;
  padding-bottom: 0.5rem;
  margin: 0 0 1rem;
  border-bottom: 2px solid #7102fe;
}

.pv-search-empty {
  color: #777;
  font-size: 0.9em;
}

.pv-search-offer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  text-decoration: none;
  color: #141414;
}

.pv-search-offer-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pv-search-offer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pv-search-offer-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pv-search-offer-store {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  color: #7102fe;
}

.pv-search-offer-title {
  font-size: 0.95em;
  font-weight: 600;
}

.pv-search-offer-badge {
  display: inline-block;
  width: fit-content;
  background: #7102fe;
  color: #fff;
  font-size: 0.75em;
  font-weight: 600;
  padding: 0.15rem 0.75rem;
  border-radius: 9999px;
}

.pv-search-brand {
  display: block;
  padding: 0.6rem 0;
  text-decoration: none;
}

.pv-search-brand-name {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  color: #7102fe;
}

.pv-search-brand-count {
  display: block;
  font-size: 0.8em;
  color: #666;
}

.pv-search-viewall {
  display: block;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  background: #7102fe;
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
}

.pv-search-viewall:hover {
  background: #5a02cc;
}

@media (max-width: 640px) {
  .pv-search-results {
    grid-template-columns: 1fr;
  }
}

.pv-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.pv-search-overlay.open {
  display: block;
}

@media (max-width: 768px) {
  .pv-mbtn {
    display: flex;
  }

  .pv-header-right {
    gap: 0.5rem;
  }

  .pv-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    left: -230px;
    top: 0;
    height: 100vh;
    width: 230px;
    background: #fff;
    padding: 1.5rem;
    z-index: 1002;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: left 200ms linear;
    overflow-y: auto;
  }

  .pv-nav.open {
    left: 0;
  }
}
.w-fit {
  width: fit-content;
}

.min-h-full {
  min-height: 100vh;
}

/*
 * Breadcrumb styling matching the main site's own breadcrumb component
 * (.breadcrumb in blog.css) - overrides the coupons template's boxy
 * rotated-border chevron with a plain ">" separator and the same
 * black-link/purple-active color treatment used everywhere else in the app.
 */
.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875em;
}

.breadcrumbs ul li {
  font-weight: 500;
  color: #7102fe;
}

.breadcrumbs ul li:before {
  content: none;
  display: none;
}

.breadcrumbs ul li + li:before {
  content: ">";
  display: inline;
  width: auto;
  height: auto;
  border: none;
  transform: none;
  position: static;
  top: auto;
  margin: 0 0.5rem;
  font-weight: 500;
  color: #7102fe;
}

.breadcrumbs ul li a {
  font-size: 1em;
  font-weight: 400;
  color: #000;
  transition: color 200ms linear;
}

.breadcrumbs ul li a:hover,
.breadcrumbs ul li a.active {
  color: #7102fe;
}
