.pp-store { max-width: 920px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1f2733; }

/* Steps */
.pp-steps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.pp-step { font-size: 12.5px; font-weight: 600; color: #9aa4b2; padding: 6px 14px; border-radius: 999px; background: #eef1f5; cursor: default; }
.pp-step--active { background: #1e5b94; color: #fff; }
.pp-step--done { background: #2e7d32; color: #fff; cursor: pointer; }

/* Card */
.pp-card { background: #fff; border: 1px solid #e7ebf0; border-radius: 16px; box-shadow: 0 8px 26px rgba(0,0,0,.06); padding: 24px; min-height: 300px; }
.pp-panel { display: none; }
.pp-panel--active { display: block; }
.pp-panel__title { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: #14324f; }
.pp-hint, .pp-empty, .pp-loading { color: #6b7480; font-size: 14px; }
.pp-empty, .pp-loading { padding: 20px 0; }

/* Tiles (category + product) */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; margin-top: 16px; }
.pp-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border: 1.5px solid #e6ebf1; background: #fff; border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; font: inherit; }
.pp-tile:hover { border-color: #1e5b94; box-shadow: 0 6px 16px rgba(30,91,148,.12); transform: translateY(-2px); }
.pp-tile__img { width: 100%; aspect-ratio: 1/1; border-radius: 10px; background-size: cover; background-position: center; background-color: #f2f5f8; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #c2ccd6; }
.pp-tile__label { font-size: 15px; font-weight: 700; text-align: center; color: #21374d; }
.pp-tile__count { font-size: 11.5px; color: #9aa4b2; }

/* Vendors */
.pp-vendors { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pp-vendor { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid #e6ebf1; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s; }
.pp-vendor:hover { border-color: #1e5b94; box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.pp-vendor__name { font-size: 16px; font-weight: 800; color: #16324c; }
.pp-badge { font-size: 11px; font-weight: 700; color: #1b7a3d; background: #e4f6e9; padding: 2px 8px; border-radius: 999px; }
.pp-vendor__meta { font-size: 13px; color: #7a8492; margin-top: 3px; }
.pp-vendor__r { text-align: right; }
.pp-vendor__price { display: block; font-size: 16px; font-weight: 800; color: #16324c; }
.pp-vendor__go { display: inline-block; margin-top: 6px; background: #f5c518; color: #1c1c1c; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 8px; }

/* Detail */
.pp-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pp-detail__image { width: 100%; aspect-ratio: 1/1; border-radius: 14px; background: #f2f5f8 center/cover no-repeat; border: 1px solid #eef1f5; }
.pp-detail__title { font-size: 22px; font-weight: 800; margin: 0 0 6px; color: #14324f; }
.pp-detail__meta { color: #7a8492; font-size: 13px; margin: 0 0 12px; }
.pp-detail__desc { font-size: 13px; color: #5a6472; margin-top: 14px; line-height: 1.5; }
.pp-price { margin: 6px 0 16px; font-size: 15px; }
.pp-price__value { font-size: 22px; font-weight: 800; color: #16324c; }
.pp-price__each { color: #9aa4b2; font-size: 13px; }

/* Fields / options */
.pp-field { margin-bottom: 14px; }
.pp-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: #2b3948; }
.pp-dim, .pp-qty { width: 100%; max-width: 320px; padding: 11px 13px; border: 1px solid #d7dee6; border-radius: 10px; font-size: 14px; background: #fff; box-sizing: border-box; }
.pp-dim--hidden { display: none; }
.pp-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-swatch { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #e3e3e3; box-shadow: inset 0 0 0 2px #fff; cursor: pointer; padding: 0; }
.pp-swatch--active { border-color: #1e5b94; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #1e5b94; }

/* Artwork */
.pp-tabs { display: flex; gap: 8px; margin: 12px 0; }
.pp-tab { padding: 8px 16px; border: 1px solid #d7dee6; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
.pp-tab--active { background: #1e5b94; color: #fff; border-color: #1e5b94; }
.pp-upload { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px; border: 2px dashed #d3dae2; border-radius: 12px; cursor: pointer; text-align: center; }
.pp-upload:hover { border-color: #1e5b94; background: #f8fafc; }
.pp-upload__title { font-weight: 700; }
.pp-upload__hint { color: #9aa4b2; font-size: 12.5px; }
.pp-file { margin-top: 10px; font-weight: 600; color: #16324c; }
.pp-ai-prompt { width: 100%; padding: 12px; border: 1px solid #d7dee6; border-radius: 10px; box-sizing: border-box; }
.pp-ai-generate { margin-top: 10px; background: #1e5b94; color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; cursor: pointer; }
.pp-ai-img { max-width: 220px; border-radius: 12px; margin-top: 12px; }

/* Nav */
.pp-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.pp-back { background: transparent; border: 0; color: #6b7480; font-weight: 600; cursor: pointer; font-size: 15px; }
.pp-back:hover { color: #14324f; }
.pp-next, .pp-addcart { margin-left: auto; background: #f5c518; color: #1c1c1c; border: 0; border-radius: 999px; padding: 13px 30px; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .15s, opacity .15s; }
.pp-next:hover, .pp-addcart:hover:not(:disabled) { background: #e5b70f; }
.pp-addcart:disabled { opacity: .5; cursor: not-allowed; }
.pp-message { margin-top: 12px; font-weight: 600; }

@media ( max-width: 640px ) {
	.pp-detail { grid-template-columns: 1fr; gap: 18px; }
	.pp-card { padding: 16px; }
	.pp-vendor { flex-direction: column; align-items: flex-start; }
	.pp-vendor__r { text-align: left; }
}

/* Image gallery (product detail) */
.pp-gallery { position: relative; }
.pp-gallery__prev, .pp-gallery__next {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.18);
	font-size: 22px; line-height: 1; color: #14324f; font-weight: 700;
}
.pp-gallery__prev { left: 10px; } .pp-gallery__next { right: 10px; }
.pp-gallery__prev:hover, .pp-gallery__next:hover { background: #fff; }
.pp-gallery__count { text-align: center; margin-top: 8px; color: #9aa4b2; font-size: 12.5px; }

/* Review step */
.pp-review { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pp-review__img { width: 130px; height: 130px; border-radius: 12px; background: #f2f5f8 center/cover no-repeat; border: 1px solid #eef1f5; margin-bottom: 8px; }
.pp-review__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eef1f5; font-size: 14.5px; }
.pp-review__k { color: #7a8492; font-weight: 600; }
.pp-review__v { color: #16324c; font-weight: 600; text-align: right; }

/* Product card description + starting price */
.pp-tile__desc { font-size: 12px; color: #7a8492; line-height: 1.4; text-align: center; margin-top: 2px; }
.pp-tile__from { font-size: 14px; font-weight: 800; color: #16324c; margin-top: 4px; }

/* Instructions field */
.pp-instructions { width: 100%; padding: 11px 13px; border: 1px solid #d7dee6; border-radius: 10px; box-sizing: border-box; font: inherit; }
.pp-instructions-field { margin-top: 16px; }

/* Added-to-cart choice */
.pp-added { margin-top: 16px; padding: 18px; border: 1px solid #cfe3d4; background: #f2fbf5; border-radius: 12px; text-align: center; }
.pp-added__text { margin: 0 0 12px; font-weight: 700; color: #1b7a3d; }
.pp-added__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pp-continue-shopping { background: #fff; border: 1px solid #1e5b94; color: #1e5b94; border-radius: 999px; padding: 11px 24px; font-weight: 700; cursor: pointer; font-size: 14px; }
.pp-continue-shopping:hover { background: #eef4fa; }
.pp-goto-checkout { display: inline-block; background: #f5c518; color: #1c1c1c; border-radius: 999px; padding: 11px 26px; font-weight: 800; text-decoration: none; font-size: 14px; }
.pp-goto-checkout:hover { background: #e5b70f; color: #1c1c1c; }

/* Quantity dropdown shows tier pricing */
.pp-qty { font-variant-numeric: tabular-nums; }

/* ---- Layout safety: keep the store inside the theme's content width ---- */
.pp-store, .pp-store * { box-sizing: border-box; }
.pp-store { width: 100%; max-width: 100%; overflow-x: hidden; }
.pp-card { max-width: 100%; overflow: hidden; }
.pp-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-width: 100%; }
.pp-tile, .pp-tile__label, .pp-tile__excerpt { min-width: 0; overflow-wrap: break-word; }
.pp-detail { max-width: 100%; }
.pp-detail__info { min-width: 0; }
@media ( max-width: 782px ) {
	.pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---- Options step: readable description, smaller image ---- */
.pp-detail { grid-template-columns: 0.85fr 1.15fr; }
.pp-detail__media { max-width: 380px; }
.pp-detail__image { aspect-ratio: 1 / 1; }
.pp-detail__desc { font-size: 14.5px; line-height: 1.6; color: #4a5563; }
.pp-detail__list { margin: 10px 0 0; padding-left: 20px; }
.pp-detail__list li { margin-bottom: 6px; }
@media ( max-width: 640px ) {
	.pp-detail { grid-template-columns: 1fr; }
	.pp-detail__media { max-width: 100%; }
}

/* ---- Category / Product grids: 4 per row ---- */
.pp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media ( max-width: 1024px ) {
	.pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media ( max-width: 782px ) {
	.pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media ( max-width: 480px ) {
	.pp-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
