/* Printing MH — bridge VistaPrint-inspired storefront
   Reuses Bootstrap grid; custom chrome for promo / header / hero / tiles. */

:root {
  --pmh-blue: #0b5fff;
  --pmh-blue-dark: #0847c7;
  --pmh-navy: #0c1b33;
  --pmh-sale: #c8102e;
  --pmh-ink: #1a1a1a;
  --pmh-muted: #5c6570;
  --pmh-line: #e4e8ee;
  --pmh-bg: #f3f5f8;
  --pmh-white: #ffffff;
  --pmh-radius: 12px;
  --pmh-shadow: 0 8px 28px rgba(12, 27, 51, 0.08);
  --pmh-font: "Outfit", system-ui, sans-serif;
  --pmh-max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pmh-body {
  margin: 0;
  font-family: var(--pmh-font);
  color: var(--pmh-ink);
  background: var(--pmh-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pmh-blue); text-decoration: none; }
a:hover { color: var(--pmh-blue-dark); }

.pmh-container {
  width: min(100% - 2rem, var(--pmh-max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Promo bar */
.pmh-promo {
  background: var(--pmh-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.pmh-promo__inner {
  display: flex;
  justify-content: center;
  padding: 0.55rem 0;
  text-align: center;
}
.pmh-promo__text { margin: 0; }
.pmh-promo a {
  color: #9ec5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Header */
.pmh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pmh-white);
  border-bottom: 1px solid var(--pmh-line);
}
.pmh-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.85rem 0;
}

.pmh-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--pmh-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pmh-logo:hover { color: var(--pmh-navy); }
.pmh-logo__mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: var(--pmh-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}
.pmh-logo__text {
  font-size: 1.2rem;
  white-space: nowrap;
}

.pmh-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  border: 2px solid var(--pmh-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--pmh-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pmh-search:focus-within {
  border-color: var(--pmh-blue);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
  background: #fff;
}
.pmh-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}
.pmh-search button {
  border: 0;
  background: transparent;
  color: var(--pmh-muted);
  padding: 0 1rem;
  cursor: pointer;
}
.pmh-search button:hover { color: var(--pmh-blue); }

.pmh-header__tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pmh-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  color: var(--pmh-navy);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
}
.pmh-tool:hover {
  background: var(--pmh-bg);
  color: var(--pmh-navy);
}
.pmh-cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--pmh-sale);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1.1rem;
  text-align: center;
}

.pmh-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}
.pmh-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pmh-navy);
}

.pmh-main-nav {
  border-top: 1px solid var(--pmh-line);
  background: #fff;
}
.pmh-main-nav__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pmh-main-nav__list a {
  display: block;
  padding: 0.75rem 0.85rem;
  color: var(--pmh-navy);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.pmh-main-nav__list a:hover {
  color: var(--pmh-blue);
  border-bottom-color: var(--pmh-blue);
}

/* Hero */
.pmh-hero {
  position: relative;
  min-height: min(62vh, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(12, 27, 51, 0.88) 0%, rgba(11, 95, 255, 0.72) 55%, rgba(12, 27, 51, 0.55) 100%),
    url("../img/hero/shop4_home_slider1.jpg") center / cover no-repeat;
  color: #fff;
}
.pmh-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 40rem);
  text-align: center;
  padding: 3.5rem 0;
}
.pmh-hero__brand {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}
.pmh-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.pmh-hero p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  font-size: 1.05rem;
  opacity: 0.92;
}
.pmh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.pmh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pmh-btn:active { transform: translateY(1px); }
.pmh-btn--primary {
  background: #fff;
  color: var(--pmh-navy);
}
.pmh-btn--primary:hover {
  background: #f0f4ff;
  color: var(--pmh-navy);
}
.pmh-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.pmh-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.pmh-btn--solid {
  background: var(--pmh-blue);
  color: #fff;
}
.pmh-btn--solid:hover {
  background: var(--pmh-blue-dark);
  color: #fff;
}
.pmh-btn--outline {
  background: transparent;
  color: var(--pmh-navy);
  border-color: var(--pmh-line);
}
.pmh-btn--outline:hover {
  border-color: var(--pmh-blue);
  color: var(--pmh-blue);
}

/* Daily deal strip */
.pmh-deal {
  background: var(--pmh-bg);
  border-bottom: 1px solid var(--pmh-line);
}
.pmh-deal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pmh-navy);
}
.pmh-deal a { font-weight: 700; }

/* Sections */
.pmh-section {
  padding: 3.25rem 0;
}
.pmh-section--muted { background: var(--pmh-bg); }
.pmh-section__head {
  margin-bottom: 1.75rem;
}
.pmh-section__head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pmh-navy);
}
.pmh-section__head p {
  margin: 0;
  color: var(--pmh-muted);
  max-width: 36rem;
}

/* Category tiles */
.pmh-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pmh-cat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--pmh-radius);
  overflow: hidden;
  border: 1px solid var(--pmh-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}
.pmh-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--pmh-shadow);
  color: inherit;
}
.pmh-cat__media {
  aspect-ratio: 1;
  background: #eef1f6;
  overflow: hidden;
}
.pmh-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pmh-cat:hover .pmh-cat__media img { transform: scale(1.05); }
.pmh-cat__name {
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pmh-navy);
  text-align: center;
}

/* How it works */
.pmh-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pmh-step {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--pmh-radius);
  border: 1px solid var(--pmh-line);
}
.pmh-step__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--pmh-blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.pmh-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--pmh-navy);
}
.pmh-step p {
  margin: 0;
  color: var(--pmh-muted);
  font-size: 0.95rem;
}

/* Design CTA */
.pmh-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem;
  border-radius: calc(var(--pmh-radius) + 4px);
  background: linear-gradient(135deg, var(--pmh-navy), #163a6b 50%, var(--pmh-blue));
  color: #fff;
}
.pmh-cta h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
}
.pmh-cta p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}
.pmh-cta__aside {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--pmh-radius);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 600;
}

/* Page stubs */
.pmh-page-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--pmh-bg);
  border-bottom: 1px solid var(--pmh-line);
}
.pmh-page-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--pmh-navy);
}
.pmh-page-hero p { margin: 0; color: var(--pmh-muted); }
.pmh-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--pmh-muted);
}

.pmh-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pmh-navy);
}
.pmh-form .form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--pmh-line);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
}
.pmh-form .form-control:focus {
  outline: none;
  border-color: var(--pmh-blue);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12);
}

/* Footer */
.pmh-footer {
  margin-top: 2rem;
  background: var(--pmh-navy);
  color: rgba(255,255,255,0.82);
}
.pmh-footer a { color: rgba(255,255,255,0.88); }
.pmh-footer a:hover { color: #fff; }
.pmh-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 2.25rem;
}
.pmh-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.pmh-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pmh-footer li { margin-bottom: 0.45rem; }
.pmh-footer li a { font-size: 0.925rem; }
.pmh-logo--footer { margin-bottom: 0.75rem; color: #fff; }
.pmh-logo--footer .pmh-logo__text { color: #fff; }
.pmh-footer__brand p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.pmh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
  font-size: 0.85rem;
}
.pmh-footer__bottom p { margin: 0; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .pmh-hero__content {
    animation: pmh-rise 0.7s ease both;
  }
  .pmh-cat {
    animation: pmh-rise 0.55s ease both;
  }
  .pmh-cat:nth-child(1) { animation-delay: 0.05s; }
  .pmh-cat:nth-child(2) { animation-delay: 0.1s; }
  .pmh-cat:nth-child(3) { animation-delay: 0.15s; }
  .pmh-cat:nth-child(4) { animation-delay: 0.2s; }
  .pmh-cat:nth-child(5) { animation-delay: 0.25s; }
  .pmh-cat:nth-child(6) { animation-delay: 0.3s; }
  .pmh-cat:nth-child(7) { animation-delay: 0.35s; }
  .pmh-cat:nth-child(8) { animation-delay: 0.4s; }
}
@keyframes pmh-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .pmh-cats { grid-template-columns: repeat(3, 1fr); }
  .pmh-footer__grid { grid-template-columns: 1fr 1fr; }
  .pmh-cta { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pmh-header__row {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }
  .pmh-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    order: 3;
  }
  .pmh-header__row {
    display: flex;
    flex-wrap: wrap;
  }
  .pmh-logo { order: 1; }
  .pmh-header__tools { order: 2; margin-left: auto; }
  .pmh-search { order: 3; width: 100%; }
  .pmh-tool__label { display: none; }
  .pmh-nav-toggle { display: flex; }
  .pmh-main-nav {
    display: none;
    border-top: 1px solid var(--pmh-line);
  }
  .pmh-main-nav.is-open { display: block; }
  .pmh-main-nav__list {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }
  .pmh-cats { grid-template-columns: repeat(2, 1fr); }
  .pmh-steps { grid-template-columns: 1fr; }
  .pmh-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
