/*
Theme Name: Theme Core POD Memory Keepsake
Theme URI: https://dapadzn.com/
Author: Dapadzn
Description: Photo gift and keepsake POD customer template.
Version: 1.0.0
Text Domain: theme-core
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pt-body { margin: 0; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.pt-product-card { min-width: 0; }
.pt-product-card__media { display: block; overflow: hidden; background: #f1eef5; aspect-ratio: 4 / 5; border: 1px solid rgba(34, 38, 57, .1); }
.pt-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.pt-product-card:hover .pt-product-card__media img { transform: scale(1.025); }
.pt-product-card__copy { display: grid; grid-template-columns: 1fr; gap: 5px; padding-top: 10px; font-size: 13px; line-height: 1.35; }
.pt-product-card__copy a { min-width: 0; display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt-product-card__copy span { color: inherit; opacity: .68; white-space: normal; }
.pt-product-card--feature .pt-product-card__media { aspect-ratio: 1 / 1; }
.pt-product-card--wide .pt-product-card__media { aspect-ratio: 16 / 10; }
.pt-archive, .pt-page, .pt-product-detail { padding: 44px 28px 60px; background: #fbf7f6; }
.pt-archive__hero { display: grid; gap: 8px; margin-bottom: 24px; }
.pt-archive__hero p { margin: 0; color: #c23b30; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.pt-archive__hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 4vw, 62px); line-height: 1; font-weight: 400; }
.pt-archive__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pt-product-detail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr); gap: 28px; align-items: start; }
.pt-product-detail__media { width: 100%; max-width: 620px; justify-self: end; }
.pt-product-detail__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; border: 1px solid rgba(34, 38, 57, .12); }
.pt-product-detail__summary { background: #fff; border: 1px solid rgba(34, 38, 57, .12); padding: 24px; align-self: start; }
.pt-kicker { margin: 0 0 10px; color: #c23b30; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.pt-product-detail h1 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; font-weight: 400; }
.pt-product-detail__price { margin-bottom: 18px; font-weight: 900; color: #222639; }
.pt-product-detail__form form.cart { display: grid; gap: 12px; }
.pt-product-detail__form table.variations { width: 100%; border-collapse: collapse; }
.pt-product-detail__form table.variations tr { display: grid; gap: 7px; margin-bottom: 12px; }
.pt-product-detail__form table.variations th, .pt-product-detail__form table.variations td { display: block; padding: 0; text-align: left; }
.pt-product-detail__form table.variations label { color: #222639; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.pt-product-detail__form .quantity { display: grid; gap: 7px; }
.pt-product-detail__form select,
.pt-product-detail__form input[type="text"],
.pt-product-detail__form input[type="number"],
.pt-product-detail__form textarea { width: 100%; min-height: 44px; border: 1px solid rgba(34, 38, 57, .16); padding: 10px 12px; background: #fff; }
.pt-product-detail__form button.single_add_to_cart_button,
.pt-product-detail__form .button { min-height: 46px; border: 0; background: #c23b30; color: #fff; padding: 12px 18px; font-weight: 900; }
.pt-product-detail__description { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(34, 38, 57, .1); color: #665f68; line-height: 1.65; }
.pt-product-detail__description h2, .pt-product-detail__description h3 { margin: 22px 0 8px; color: #222639; font-size: 18px; line-height: 1.2; }
.pt-product-detail__description p { margin: 0 0 12px; }
.pt-product-detail__description ul { margin: 0 0 14px; padding-left: 20px; }
.pt-page__content { max-width: 920px; margin: 0 auto; padding: 36px; background: #fff; border: 1px solid rgba(34, 38, 57, .12); color: #665f68; line-height: 1.7; }
.pt-page__content h1 { margin: 0 0 18px; color: #222639; font-family: Georgia, serif; font-size: clamp(36px, 4vw, 62px); line-height: 1; font-weight: 400; }
.pt-page__content h2 { margin: 26px 0 10px; color: #222639; font-size: 22px; }

body.pt-body--memory { background: #fbf7f6; color: #222639; }
.mk-deals-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; min-height: 40px; padding: 9px 28px; background: #c23b30; color: #fff; font-size: 12px; font-weight: 900; }
.mk-deals-bar span { color: rgba(255,255,255,.82); white-space: nowrap; }
.mk-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 18px; align-items: center; padding: 16px 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(34, 38, 57, .1); backdrop-filter: blur(16px); }
.mk-header__brand { font-family: Georgia, serif; font-size: 32px; font-weight: 700; white-space: nowrap; }
.mk-header__search { display: grid; border: 1px solid rgba(34, 38, 57, .2); background: #fff; }
.mk-header__search input { min-width: 0; border: 0; padding: 12px 14px; outline: none; }
.mk-header__nav { display: flex; justify-content: flex-end; gap: 8px; overflow-x: auto; align-items: center; }
.mk-header__nav a, .mk-header__bag { border: 1px solid rgba(34, 38, 57, .12); background: #fff; padding: 9px 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.mk-header__bag { color: #c23b30; }
.mk-photo-nav { position: sticky; top: 73px; z-index: 25; display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid rgba(34, 38, 57, .1); }
.mk-photo-nav a { flex: 0 0 auto; padding: 13px 18px; border-right: 1px solid rgba(34, 38, 57, .08); font-size: 13px; font-weight: 900; }
.mk-home { background: #fbf7f6; }
.mk-memory-hero { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); gap: 26px; align-items: stretch; min-height: 540px; height: auto; padding: 28px; }
.mk-memory-hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 42px; background: #fff; border: 1px solid rgba(34, 38, 57, .1); }
.mk-memory-hero__copy p, .mk-section-title p, .mk-photo-book-builder__copy p, .mk-story-strip p { margin: 0; font-size: 12px; font-weight: 900; color: #c23b30; text-transform: uppercase; }
.mk-memory-hero__copy h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; font-weight: 400; overflow-wrap: normal; word-break: normal; }
.mk-memory-hero__copy > span { max-width: 580px; color: #665f68; font-size: 17px; line-height: 1.6; }
.mk-memory-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-memory-hero__actions a { background: #222639; color: #fff; padding: 14px 18px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.mk-memory-hero__actions a:nth-child(2) { background: #f4d8d4; color: #222639; }
.mk-memory-hero__collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 14px; min-height: 0; align-content: start; }
.mk-memory-hero__collage .pt-product-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; background: #fff; padding: 10px; box-shadow: 0 22px 60px rgba(34, 38, 57, .12); }
.mk-memory-hero__collage .pt-product-card:nth-child(n+5) { display: none; }
.mk-memory-hero__collage .pt-product-card:first-child { grid-row: auto; }
.mk-memory-hero__collage .pt-product-card__media { height: auto; aspect-ratio: 4 / 3; }
.mk-memory-hero__collage .pt-product-card__copy a { -webkit-line-clamp: 1; }
.mk-deal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 28px 48px; }
.mk-deal-grid a { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; padding: 16px; background: #fff; border: 1px solid rgba(34, 38, 57, .1); }
.mk-deal-grid small { color: #c23b30; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.mk-deal-grid strong { max-width: none; font-family: Georgia, serif; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.05; font-weight: 400; overflow-wrap: anywhere; }
.mk-deal-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f1eef5; }
.mk-recipient-tiles, .mk-keepsake-grid { padding: 56px 28px; background: #fff; }
.mk-section-title { display: grid; grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 24px; }
.mk-section-title h2, .mk-photo-book-builder__copy h2, .mk-story-strip h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 58px); line-height: 1.05; font-weight: 400; }
.mk-recipient-tiles__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.mk-recipient-tiles__grid a { display: grid; gap: 12px; padding: 10px; background: #fbf7f6; border: 1px solid rgba(34, 38, 57, .1); min-width: 0; }
.mk-recipient-tiles__grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1eef5; }
.mk-recipient-tiles__grid strong { font-size: 16px; line-height: 1.15; }
.mk-photo-book-builder { display: grid; grid-template-columns: minmax(280px, .56fr) minmax(220px, .44fr) minmax(0, .9fr); gap: 20px; padding: 58px 28px; background: #222639; color: #fff; }
.mk-photo-book-builder__copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.mk-photo-book-builder__copy p { color: #ffb2a9; }
.mk-photo-book-builder__copy span { color: rgba(255,255,255,.72); line-height: 1.6; }
.mk-photo-book-builder__copy a { width: fit-content; background: #ffb2a9; color: #222639; padding: 13px 16px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.mk-photo-book-builder__steps { display: grid; align-content: center; gap: 10px; }
.mk-photo-book-builder__steps article { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.mk-photo-book-builder__steps small { color: #ffb2a9; font-weight: 900; }
.mk-photo-book-builder__steps strong { font-size: 20px; }
.mk-photo-book-builder__steps span { color: rgba(255,255,255,.72); line-height: 1.4; }
.mk-photo-book-builder__products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-photo-book-builder__products .pt-product-card { background: rgba(255,255,255,.08); padding: 8px; }
.mk-photo-book-builder__products .pt-product-card__copy a { color: #fff; }
.mk-photo-book-builder__products .pt-product-card__copy span { color: rgba(255,255,255,.72); }
.mk-photo-book-builder__products .pt-product-card:first-child { grid-column: span 2; }
.mk-keepsake-grid__categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.mk-keepsake-grid__categories a { display: grid; gap: 12px; padding: 10px; background: #fbf7f6; border: 1px solid rgba(34, 38, 57, .1); min-width: 0; }
.mk-keepsake-grid__categories img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mk-keepsake-grid__categories strong { font-size: 18px; line-height: 1.15; }
.mk-keepsake-grid__categories span { color: #c23b30; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.mk-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mk-story-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 46px 28px; background: #f4d8d4; color: #222639; }
.mk-story-strip a { background: #222639; color: #fff; padding: 13px 16px; font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.mk-service-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border-top: 1px solid rgba(34, 38, 57, .1); }
.mk-service-strip article { padding: 28px; border-right: 1px solid rgba(34, 38, 57, .1); }
.mk-service-strip h3 { margin: 0 0 8px; font-size: 18px; }
.mk-service-strip p { margin: 0; color: #665f68; line-height: 1.55; }
.mk-footer { background: #222639; color: #fff; padding: 38px 28px 24px; }
.mk-footer__brand { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
.mk-footer__brand strong { font-family: Georgia, serif; font-size: 32px; }
.mk-footer__brand p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.55; }
.mk-footer__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.mk-footer__columns div { display: grid; gap: 8px; align-content: start; }
.mk-footer__columns h3 { margin: 0 0 4px; font-size: 12px; color: #ffb2a9; text-transform: uppercase; }
.mk-footer__columns a, .mk-footer__columns span { color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.mk-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.6); font-size: 12px; }

@media (max-width: 1060px) {
  .mk-deals-bar { padding-inline: 20px; }
  .mk-header { grid-template-columns: auto minmax(260px, 1fr); gap: 12px; padding: 14px 20px; }
  .mk-header__nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  .mk-photo-nav { top: 130px; }
  .mk-memory-hero { min-height: 0; grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
  .mk-memory-hero__copy { min-height: 220px; padding: 28px; }
  .mk-memory-hero__copy h1 { font-size: clamp(36px, 5vw, 56px); }
  .mk-memory-hero__collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .mk-memory-hero__collage .pt-product-card:first-child { grid-row: auto; }
  .mk-memory-hero__collage .pt-product-card__media { height: auto; aspect-ratio: 4 / 5; }
  .mk-section-title, .mk-photo-book-builder { grid-template-columns: 1fr; }
  .mk-recipient-tiles__grid, .mk-keepsake-grid__categories, .mk-product-grid, .pt-archive__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .mk-header, .mk-memory-hero, .mk-photo-book-builder, .mk-section-title, .mk-footer__brand { grid-template-columns: 1fr; }
  .mk-recipient-tiles__grid, .mk-keepsake-grid__categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-photo-nav { top: 145px; }
  .mk-header__nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .mk-deals-bar, .mk-memory-hero__collage, .mk-deal-grid, .mk-photo-book-builder__steps, .mk-product-grid, .mk-service-strip, .mk-footer__columns, .pt-archive__grid, .pt-product-detail { grid-template-columns: 1fr; }
  .mk-recipient-tiles__grid, .mk-keepsake-grid__categories, .mk-photo-book-builder__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-photo-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-top: 10px; padding-bottom: 10px; }
  .mk-photo-nav a { min-width: 0; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(34, 38, 57, .12); padding: 9px 10px; background: #fff; font-size: 11px; line-height: 1.15; text-align: center; white-space: normal; }
  .mk-header, .mk-photo-nav, .mk-memory-hero, .mk-recipient-tiles, .mk-photo-book-builder, .mk-keepsake-grid, .mk-story-strip, .mk-footer { padding-left: 16px; padding-right: 16px; }
  .mk-header__nav { display: flex; flex-wrap: wrap; overflow: visible; scrollbar-width: none; }
  .mk-header__nav a, .mk-header__bag { flex: 1 1 112px; justify-content: center; min-width: 0; padding: 8px 10px; font-size: 11px; }
  .mk-memory-hero { min-height: 0; }
  .mk-memory-hero__copy { padding: 26px; }
  .pt-product-detail { padding: 18px 16px 44px; gap: 16px; }
  .pt-product-detail__media { max-width: min(100%, 460px); justify-self: center; }
  .pt-product-detail__media img { max-height: min(460px, 54vh); object-fit: contain; background: #fff; }
  .pt-product-detail__summary { padding: 18px; }
  .mk-memory-hero__collage .pt-product-card:first-child, .mk-photo-book-builder__products .pt-product-card:first-child { grid-row: auto; grid-column: auto; }
  .mk-story-strip { grid-template-columns: 1fr; }
  .mk-footer__bottom { display: grid; }
}
