/*! Bento service cards — the pkg-card storefronts
 * andsocialmedia.in · digmarketing.in · simplyads.in
 *
 * 2026-09-25: every service, package and boost card reshaped to the same bento
 * language used on indiagram.in — cream tile, ink outline, hard offset shadow,
 * orange action tile, uppercase micro labels, tactile press states.
 *
 * Loads after assets/css/style.css. Card markup is untouched:
 *   article.pkg-card
 *     .pkg-top      .pkg-mark svg + .pkg-badge
 *     h3.pkg-product .pkg-qty + .pkg-name
 *     .pkg-features  .pkg-speed + check lines
 *     .pkg-bottom    .pkg-total-label + .pkg-price + button.pkg-btn.js-order-open
 *
 * The order button keeps its own classes and data attributes, so checkout.js and
 * shop-whatsapp.js behave exactly as before. Only the skin changes.
 */

article.pkg-card {
  --b-cream: #fffdf6;
  --b-warm: #f2e8d5;
  --b-ink: #0c0c0c;
  --b-orange: #ff5a17;
  --b-orange-hot: #ff7d3d;
  --b-muted: #6b6252;
  --b-shadow: #0c0c0c;

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  padding: 14px;
  border: 2px solid var(--b-ink);
  border-radius: 18px;
  background: var(--b-cream);
  box-shadow: 5px 6px 0 var(--b-shadow);
  color: var(--b-ink);
  transition: transform .18s ease, box-shadow .18s ease;
}

article.pkg-card:hover {
  transform: translate(-1px, -1px);
  border-color: var(--b-ink);
  box-shadow: 7px 8px 0 var(--b-shadow);
}

article.pkg-card > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------ spotlight for the pick -- */
article.pkg-card.highlight {
  background: var(--b-cream);
  color: var(--b-ink);
  border-color: var(--b-ink);
  box-shadow: 5px 6px 0 var(--b-orange);
}

article.pkg-card.highlight:hover {
  border-color: var(--b-ink);
  box-shadow: 7px 8px 0 var(--b-orange);
}

article.pkg-card.highlight::before {
  content: "IN THE SPOTLIGHT";
  position: absolute;
  top: -11px;
  right: 12px;
  z-index: 3;
  padding: 4px 8px;
  border: 1.5px solid var(--b-ink);
  border-radius: 6px;
  background: var(--b-orange);
  color: #12100c;
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .13em;
  transform: rotate(-2.5deg);
  box-shadow: 2px 2px 0 var(--b-shadow);
}

/* --------------------------------------------- platform mark and badge ---- */
article.pkg-card .pkg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

article.pkg-card .pkg-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--b-ink);
  border-radius: 11px;
  background: var(--b-orange);
  color: #ffffff;
  box-shadow: 2px 3px 0 var(--b-shadow);
}

article.pkg-card .pkg-mark svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

article.pkg-card .pkg-badge {
  padding: 5px 9px;
  border: 1.5px solid var(--b-ink);
  border-radius: 6px;
  background: var(--b-cream);
  color: var(--b-ink);
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------------------------------- quantity block -- */
article.pkg-card .pkg-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

article.pkg-card .pkg-qty {
  order: 1;
  font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--b-ink);
}

article.pkg-card .pkg-qty::before {
  content: "Quantity";
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--b-muted);
}

article.pkg-card .pkg-name {
  order: 2;
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--b-ink);
  opacity: .88;
}

/* ------------------------------------------------------ feature chips ---- */
article.pkg-card .pkg-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

article.pkg-card .pkg-features > * {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1.5px solid var(--b-ink);
  border-radius: 999px;
  background: var(--b-warm);
  color: var(--b-ink);
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

article.pkg-card .pkg-features > .pkg-speed.is-fast {
  background: var(--b-orange);
  color: #12100c;
}

article.pkg-card .pkg-features b {
  font-weight: 700;
}

/* ----------------------------------------------- price tile and action --- */
article.pkg-card .pkg-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

article.pkg-card .pkg-bottom > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--b-ink);
  border-radius: 13px;
  background: var(--b-orange);
  box-shadow: 2px 3px 0 var(--b-shadow);
}

article.pkg-card .pkg-total-label {
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #12100c;
}

article.pkg-card .pkg-price {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: #12100c;
}

article.pkg-card .pkg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--b-ink);
  border-radius: 13px;
  background: var(--b-orange);
  color: #12100c;
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 3px 4px 0 var(--b-shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

article.pkg-card .pkg-btn::after {
  content: "\2192";
  font-size: 15px;
  line-height: 1;
}

article.pkg-card .pkg-btn:hover {
  background: var(--b-orange-hot);
  transform: translate(-1px, -1px);
  box-shadow: 4px 5px 0 var(--b-shadow);
}

article.pkg-card .pkg-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--b-shadow);
}

article.pkg-card .pkg-btn:focus-visible {
  outline: 3px solid var(--b-orange);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- narrow -- */
@media (max-width: 520px) {
  article.pkg-card .pkg-bottom > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  article.pkg-card .pkg-qty {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  article.pkg-card,
  article.pkg-card .pkg-btn {
    transition: none;
  }

  article.pkg-card:hover,
  article.pkg-card .pkg-btn:hover,
  article.pkg-card .pkg-btn:active {
    transform: none;
  }
}
