/*
Theme Name: Parking
Description: Lightweight block theme for the parking store.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: parking
*/

/* Product cards: white card, rounded image, soft shadow (Shop-style). */
.wc-block-product-template .wc-block-product,
.wc-block-product-template > li {
	background: var(--park-card);
	border-radius: 24px;
	padding: 8px 8px 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
}
.wc-block-components-product-image img { border-radius: var(--wp--custom--radius--image); }

/* Classic product loops ([products] shortcode, archives): same card look as the blocks. */
ul.products li.product {
	background: var(--park-card);
	border-radius: 24px;
	padding: 8px 8px 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
	text-align: center;
}
ul.products li.product img { border-radius: var(--wp--custom--radius--image); }
ul.products li.product .woocommerce-loop-product__title { font-size: var(--wp--preset--font-size--small); font-weight: 500; }
ul.products li.product .button { border-radius: var(--wp--custom--radius--pill); }
ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product { width: auto; margin: 0; float: none; }
ul.products li.product a { text-decoration: none; }
ul.products li.product img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
ul.products li.product .price { display: block; margin: 4px 0 8px; font-weight: 600; }
ul.products li.product .button { display: inline-block; padding: 8px 16px; background: var(--park-accent); color: #fff; font-size: var(--wp--preset--font-size--small); font-weight: 500; }

/* Home page „Начало“ (prototype home.src.html: .search, .chips). The glass search overlaps the scene's bottom edge;
   Home::glassSearch (parking-core) makes its pill .glass with data-glass for the refraction. */
.wp-block-search.park-search { position: relative; z-index: 7; max-width: 560px; margin: -34px auto 0; }
.park-search .wp-block-search__inside-wrapper { height: 64px; padding: 0 10px 0 8px; border-radius: 999px; align-items: center; gap: 4px; color: var(--park-muted); }
.park-search .wp-block-search__input { order: 2; flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--park-fg);
	font: inherit; font-size: 17px; outline: 0; transition: color var(--park-theme); }
.park-search .wp-block-search__input::placeholder { color: var(--park-muted); opacity: 1; transition: color var(--park-theme); }
.park-search .wp-block-search__button { order: 1; flex: none; width: 46px; height: 46px; margin: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%;
	background: transparent; color: var(--park-muted); cursor: pointer; transition: color var(--park-theme), background-color .2s; }
.park-search .wp-block-search__button:hover { background: var(--park-glass); color: var(--park-fg); }
.park-search .wp-block-search__button svg { width: 22px; height: 22px; min-width: 22px; fill: currentColor; }
.park-search .wp-block-search__inside-wrapper:focus-within { box-shadow: inset 0 1px 0 var(--park-rim), inset 0 0 0 1.5px var(--park-accent), 0 18px 50px var(--park-drop), 0 2px 8px var(--park-drop); }
.park-search .wp-block-search__input:focus-visible { outline: 0; }
/* Live search (@parking/live-search): the glass dropdown under a .park-search field, and the product rows in the categories panel. */
.park-ls.glass { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 8; box-sizing: border-box; padding: 8px; border-radius: 24px; overflow: auto; overscroll-behavior: contain;
	box-shadow: inset 0 1px 0 var(--park-rim), 0 18px 50px var(--park-drop), 0 2px 8px var(--park-drop); }
.park-ls[hidden] { display: none; }
.park-ls-list { display: flex; flex-direction: column; gap: 2px; }
.park-ls-opt { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; padding: 6px 12px 6px 6px; border-radius: 16px;
	color: var(--park-fg); text-decoration: none; font-size: 14px; line-height: 1.3; }
.park-ls-opt:hover, .park-ls-opt[aria-selected="true"] { background: color-mix(in srgb, var(--park-fg) 8%, transparent); }
.park-ls-opt[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--park-accent); }
.park-ls-opt img, .park-ls-opt .ph { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: var(--park-card); }
.park-ls-opt .ph { display: grid; place-items: center; background: var(--park-glass); color: var(--park-muted); font-weight: 700; }
.park-ls-opt .t { min-width: 0; display: flex; flex-direction: column; }
.park-ls-opt .n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.park-ls-opt small { color: var(--park-muted); font-size: 12px; }
.park-ls-opt b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.park-ls-opt mark { background: color-mix(in srgb, var(--park-accent) 30%, transparent); color: inherit; border-radius: 3px; }
.park-ls-opt.all { display: flex; justify-content: center; min-height: 48px; margin-top: 4px; font-weight: 600; color: var(--park-accent-soft); }
.park-ls-note { margin: 0; padding: 12px 14px 8px; color: var(--park-muted); font-size: 14px; }
.park-cats .park-ls-slot:not(:empty) { margin: 8px 0 2px; }
.park-cats .park-ls-slot h4 { margin: 0 2px 6px; font-size: 13px; font-weight: 600; color: var(--park-muted); }
.park-cats .park-ls-slot[aria-busy="true"] { opacity: .6; }
/* The home page's H1 stays for search engines and screen readers but is not shown (owner's choice, 25.10). */
.park-home-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
	.wp-block-search.park-search { margin-top: -30px; }
	.park-search .wp-block-search__inside-wrapper { height: 56px; }
	.park-search .wp-block-search__input { font-size: 16px; }
	.park-ls { border-radius: 20px; padding: 6px; }
	.park-ls-opt { gap: 10px; }
}
