/*
Theme Name: Peppy Storefront
Template: twentytwentyfive
Description: Demo theme for the PeppyCommerce WooCommerce dev site. Mirrors the hosted storefront (peppycommerce-web apps/store). Not shipped with the plugin.
Version: 0.1.0
Text Domain: peppy-storefront
*/

:root {
	--peppy-label: #000;
	--peppy-secondary: #6c6c70;
	--peppy-tertiary: #8e8e93;
	--peppy-grouped: #f2f2f7;
	--peppy-gray-5: #e5e5ea;
	--peppy-gray-4: #d1d1d6;
	--peppy-fill: rgba(118, 118, 128, 0.12);
	--peppy-separator: rgba(60, 60, 67, 0.29);
	--peppy-blue: #1e6ef4;
	--peppy-red: #e9152d;
	--peppy-green: #008932;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks {
	padding: 0 !important;
}

/* ---- Store shell: sidebar + content (StoreShell.tsx) ---- */

.peppy-shell {
	display: grid;
	max-width: 1240px;
	margin: 0 auto !important;
	padding: 16px;
	gap: 24px 32px;
}

@media (min-width: 768px) {
	.peppy-shell {
		grid-template-columns: 220px 1fr;
		padding: 16px 24px;
	}
	.peppy-shell > .wp-block-template-part {
		position: sticky;
		top: 16px;
		align-self: start;
	}
	.admin-bar .peppy-shell > .wp-block-template-part {
		top: 48px;
	}
}

.peppy-shell > *,
.peppy-main > * {
	margin-block-start: 0 !important;
}

.peppy-sidebar {
	font-size: 13px;
	line-height: 20px;
}

.peppy-sidebar > * + * {
	margin-block-start: 28px !important;
}

.peppy-store-name {
	font-size: 15px !important;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}

.peppy-store-name a {
	text-decoration: none;
}

.peppy-label,
.peppy-meta,
.peppy-footer,
.peppy-hint {
	font-size: 12px;
	color: var(--peppy-tertiary);
	margin: 0;
}

.peppy-label {
	margin-bottom: 6px !important;
}

.peppy-categories p,
.peppy-categories ul {
	margin: 0;
}

.peppy-categories ul {
	list-style: none;
	padding: 0;
}

.peppy-categories li,
.peppy-all {
	margin-top: 4px !important;
}

.peppy-categories a {
	text-decoration: none;
	text-underline-offset: 4px;
}

.peppy-categories a:hover {
	text-decoration: underline;
}

.peppy-description {
	color: var(--peppy-secondary);
	font-size: 13px;
	white-space: pre-line;
}

.peppy-cart a {
	color: var(--peppy-blue);
	font-weight: 500;
}

/* ---- Product grid (ProductCard.tsx) ---- */

.peppy-category-title {
	font-size: 13px !important;
	font-weight: 400;
	color: var(--peppy-secondary);
	margin: 0 0 16px !important;
}

.peppy-grid .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 16px;
	margin: 0;
	padding: 0;
}

@media (min-width: 1024px) {
	.peppy-grid .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.peppy-grid .wc-block-product {
	width: auto !important;
	margin: 0 !important;
	text-align: left;
}

.peppy-grid .wc-block-product > * {
	margin: 0 !important;
}

.peppy-stage-link {
	display: block;
	text-decoration: none !important;
}

.peppy-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 16px;
	background: var(--peppy-grouped);
	padding: 32px;
	transition: background-color 150ms ease;
}

.peppy-stage-link:hover .peppy-stage {
	background: var(--peppy-gray-5);
}

.peppy-stage--single {
	padding: 40px;
}

.peppy-stage .peppy-photo {
	max-width: 70%;
	max-height: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.peppy-stage--single .peppy-photo {
	max-width: 80%;
	max-height: 80%;
}

.peppy-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	border-radius: 999px;
	background: #fff;
	padding: 2px 8px;
	font-size: 11px;
	color: var(--peppy-secondary);
}

.peppy-sku-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: 64px;
	height: 96px;
	border: 1px solid var(--peppy-gray-4);
	border-radius: 6px;
	background: #fff;
	padding-bottom: 8px;
}

.peppy-stage--single .peppy-sku-tile {
	width: 88px;
	height: 132px;
}

.peppy-sku-tile span {
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 9px;
	color: var(--peppy-tertiary);
}

.peppy-grid .peppy-meta {
	margin-top: 12px !important;
}

.peppy-card-line {
	gap: 12px;
	font-size: 14px;
}

.peppy-card-name {
	font-size: 14px !important;
	font-weight: 500;
	letter-spacing: 0;
	margin: 0 !important;
}

.peppy-card-name a {
	text-decoration: none;
}

.peppy-card-price,
.peppy-card-price .wc-block-components-product-price {
	font-size: 14px !important;
	color: var(--peppy-secondary);
	font-variant-numeric: tabular-nums;
	margin: 0 !important;
	white-space: nowrap;
	text-align: right !important;
}

.peppy-empty {
	padding: 64px 0;
	text-align: center;
	font-size: 13px;
	color: var(--peppy-secondary);
}

/* ---- Product page (ProductStage.tsx) ---- */

.peppy-back {
	font-size: 13px;
	color: var(--peppy-secondary);
	margin: 0 0 24px !important;
}

.peppy-back a {
	text-decoration: none;
	text-underline-offset: 4px;
}

.peppy-back a:hover {
	text-decoration: underline;
}

.peppy-product {
	gap: 32px !important;
	margin: 0 !important;
}

.peppy-product-info {
	padding-top: 8px;
}

.peppy-product-info > * {
	margin: 0 !important;
}

.peppy-product-name {
	font-size: 22px !important;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-top: 4px !important;
}

.peppy-product-price,
.peppy-product-price .wc-block-components-product-price {
	font-size: 17px !important;
	font-variant-numeric: tabular-nums;
	margin-top: 4px !important;
}

.peppy-product-description {
	margin-top: 20px !important;
	max-width: 65ch;
	font-size: 14px;
	line-height: 24px;
	color: var(--peppy-secondary);
}

.peppy-product-description p {
	margin: 0;
}

.peppy-buy {
	margin-top: 20px !important;
}

.peppy-buy .wp-element-button {
	display: inline-block;
	min-width: 192px;
	text-align: center;
	text-decoration: none !important;
}

.peppy-buy .peppy-hint {
	margin-top: 8px;
}

/* ---- Plain pages (My account and the like) ---- */

.peppy-page-title {
	font-size: 22px !important;
	margin: 0 0 24px !important;
}

/* ---- Checkout, cart, order received (apps/store/app/pay) ---- */

body:has(.peppy-checkout-page) {
	background: var(--peppy-grouped);
}

.peppy-checkout-page {
	max-width: 1040px;
	margin: 0 auto !important;
	padding: 16px 16px 64px;
}

.peppy-checkout-header {
	padding: 4px 0 24px;
	margin: 0 !important;
}

.peppy-checkout-header .peppy-back {
	margin: 0 !important;
}

.peppy-checkout-main > * {
	margin-block-start: 0 !important;
}

.peppy-checkout-main .wp-block-woocommerce-checkout,
.peppy-checkout-main .wp-block-woocommerce-cart {
	margin: 0 !important;
	padding: 0 !important;
}

.peppy-checkout-main .wc-block-checkout__main,
.peppy-checkout-main .wc-block-cart__main {
	background: #fff;
	border-radius: 16px;
	padding: 24px !important;
}

.peppy-checkout-main .wc-block-checkout__sidebar,
.peppy-checkout-main .wc-block-cart__sidebar {
	background: #fff;
	border-radius: 16px;
	padding: 8px 24px 24px !important;
	align-self: start;
}

.peppy-checkout-main .wc-block-components-checkout-step__heading .wc-block-components-title,
.peppy-checkout-main .wc-block-components-title {
	font-size: 15px !important;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.peppy-checkout-main .wc-block-components-checkout-step__description,
.peppy-checkout-main .wc-block-components-checkout-step__heading-content {
	font-size: 13px;
	color: var(--peppy-secondary);
}

/* Inputs: gray fills, no borders, like the hosted checkout. */
.peppy-checkout-main .wc-block-components-text-input input,
.peppy-checkout-main .wc-block-components-text-input textarea,
.peppy-checkout-main .wc-blocks-components-select__select,
.peppy-checkout-main .wc-block-components-combobox .components-combobox-control__input,
.peppy-checkout-main .wc-block-components-address-form select {
	background: var(--peppy-fill) !important;
	border: 0 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	font-size: 15px !important;
}

.peppy-checkout-main .wc-block-components-text-input.is-active input,
.peppy-checkout-main .wc-block-components-text-input input:focus {
	box-shadow: 0 0 0 2px var(--peppy-blue) !important;
}

.peppy-checkout-main .wc-block-components-text-input label,
.peppy-checkout-main .wc-blocks-components-select__label {
	color: var(--peppy-secondary) !important;
}

.peppy-checkout-main .wc-blocks-components-select__container {
	background: transparent !important;
	border: 0 !important;
}

/* Payment method choice and the order summary. */
.peppy-checkout-main .wc-block-components-radio-control-accordion-option,
.peppy-checkout-main .wc-block-components-radio-control__option {
	border-radius: 12px;
	box-shadow: none !important;
}

.peppy-checkout-main .wc-block-components-radio-control--highlight-checked::after,
.peppy-checkout-main .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--peppy-blue) !important;
	border-radius: 12px;
}

.peppy-checkout-main .wc-block-components-radio-control__input:checked {
	border-color: var(--peppy-blue) !important;
}

.peppy-checkout-main .wc-block-components-radio-control__input:checked::before {
	background: var(--peppy-blue) !important;
}

.peppy-checkout-main .wc-block-components-order-summary-item__image img {
	border-radius: 8px;
}

.peppy-checkout-main .wc-block-components-totals-item__value,
.peppy-checkout-main .wc-block-formatted-money-amount {
	font-variant-numeric: tabular-nums;
}

.peppy-checkout-main .wc-block-components-totals-footer-item {
	font-size: 17px;
}

/* Buttons: the blue rounded primary button. */
.peppy-checkout-main .wc-block-components-button:not(.is-link),
.peppy-checkout-main .wc-block-components-checkout-place-order-button {
	background: var(--peppy-blue) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	font-weight: 500;
	min-height: 48px;
}

.peppy-checkout-main .wc-block-components-button:not(.is-link):hover {
	background: #1a5fd4 !important;
}

.peppy-checkout-main .wc-block-components-checkout-return-to-cart-button {
	color: var(--peppy-secondary);
	font-size: 13px;
}

.peppy-checkout-main .wc-block-checkout__terms {
	font-size: 12px;
	color: var(--peppy-tertiary);
}

/* Order received. */
.peppy-checkout-main .wc-block-order-confirmation-status,
.peppy-checkout-main .wc-block-order-confirmation-summary,
.peppy-checkout-main .wc-block-order-confirmation-totals-wrapper,
.peppy-checkout-main .wp-block-woocommerce-order-confirmation-additional-information {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	margin: 0 0 16px !important;
}

.peppy-checkout-main .wc-block-order-confirmation-status h1 {
	font-size: 22px;
	margin: 0 0 4px;
}

.peppy-checkout-main .wc-block-order-confirmation-summary-list {
	border: 0;
	padding: 0;
	font-size: 13px;
}

/* Notices. */
.wc-block-components-notice-banner {
	border-radius: 12px !important;
	font-size: 13px;
}

/* The storefront names a category only when one is picked: no "Shop" heading on the home grid. */
body:not(.tax-product_cat) .peppy-category-title {
	display: none;
}

.peppy-categories .wc-block-product-categories {
	margin: 0 !important;
}

/* Woo frames the order summary; our white card already does. */
.peppy-checkout-main .wp-block-woocommerce-checkout-order-summary-block {
	border: 0 !important;
	border-radius: 0;
}

.peppy-checkout-main .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
	display: none;
}
