/* PopParcels
   Deep navy / teal consumer e-shop look, mobile-first */

:root {
  --navy: #0b1f33;
  --navy-2: #12304a;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --sand: #f4f7f9;
  --ink: #1a2332;
  --muted: #5b6b7c;
  --line: #d7e0e8;
  --white: #ffffff;
  --gold: #c9a227;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand__logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.brand__sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  color: var(--navy-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--sand);
  }

  .brand__sub {
    max-width: 160px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--light:hover {
  background: var(--teal-soft);
  border-color: var(--teal-soft);
  color: var(--navy);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.linkish {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}

.linkish:hover {
  color: var(--teal-dark);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(13, 148, 136, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0a3d4a 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 0 0.85rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: 0.75rem;
}

.hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-panel h2 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stats div {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0.9rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--teal-soft);
}

.hero-stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--sand {
  background: var(--sand);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 0;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid--catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-card__visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8f5f3, #edf2f7);
  display: grid;
  place-items: center;
  color: var(--teal);
}

.product-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__cat {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.product-card p {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.price {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}

.price small {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Blurb / about strip */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--teal);
}

.panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-card h3 {
  margin-top: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.35rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

/* Page hero (inner) */
.page-hero {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 0.4rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  border-color: var(--teal);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-details dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 1rem;
}

.contact-details dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.contact-details a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Cart */
.cart-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1.4fr 0.75fr;
    align-items: start;
  }
}

.cart-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.cart-table th,
.cart-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--sand);
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}

.cart-summary h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.65rem;
}

.cart-summary .btn,
.cart-summary .paypal-buttons {
  margin-top: 0.85rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--sand);
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy);
}

.qty span {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--sand);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.paypal-notice {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  color: #9a3412;
  font-size: 0.9rem;
}

.paypal-notice code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.paypal-buttons {
  min-height: 45px;
}

.pay-success {
  text-align: left;
  padding: 0.5rem 0;
}

.pay-success h3 {
  color: var(--teal-dark);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal-soft);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Timeline / about extras */
.timeline {
  border-left: 3px solid var(--teal-soft);
  padding-left: 1.25rem;
  margin: 1.5rem 0 0;
}

.timeline h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.timeline p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
