/*
Theme Name: Vapiano Shop
Author: Rewaresoft Kft.
Description: Minimal block theme for the Vapiano gift card shop (shop.vapiano.hu). Flat, print-like look taken from vapiano.hu: red / ink / cream, Barlow + Barlow Condensed, no radius, no shadows. Colours, fonts and sizes live in theme.json; this file only holds what theme.json cannot express.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: vapiano-shop
*/

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }

/* ---- header ---- */
.vap-topbar { border-bottom: 1px solid var(--wp--preset--color--line); padding-top: 22px; padding-bottom: 22px; }
.vap-logo { margin: 0; line-height: 0; }
.vap-logo img { height: 30px; width: auto; display: block; }
.vap-nav { gap: 6px 28px; }
.vap-nav p { margin: 0; }
.vap-nav a {
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 19px;
	text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
	color: var(--wp--preset--color--ink); padding: 6px 0; border-bottom: 3px solid transparent;
}
.vap-nav a:hover { border-bottom-color: var(--wp--preset--color--red); }

/* ---- page body ---- */
.vap-main { padding-top: 56px; padding-bottom: 88px; }
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { margin-top: 32px; margin-bottom: 72px; }
.vap-kicker { font-family: var(--wp--preset--font-family--heading); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; margin-bottom: 14px; }
/* cream bar behind every line of the title, like the headings on vapiano.hu */
.vap-hl > :is(h1, h2) { display: inline; background: var(--wp--preset--color--cream); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.22; }
.vap-lead { background: var(--wp--preset--color--red); color: #fff; padding: 22px 26px; font-size: 19px; line-height: 1.6; }
.vap-sec-kicker { font-family: var(--wp--preset--font-family--heading); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--red); font-size: 17px; margin-bottom: 4px; }
.vap-steps .wp-block-column { background: var(--wp--preset--color--cream); padding: 26px 28px; }
.vap-steps .vap-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 46px; line-height: 1; color: var(--wp--preset--color--red); margin: 0 0 8px; }
.vap-steps h3 { margin: 0 0 8px; }
.vap-steps p { margin: 0; }
.vap-note { color: var(--wp--preset--color--grey); font-size: 15px; }
.vap-product { border: 1px solid var(--wp--preset--color--line); padding: 32px; }

/* ---- coming soon (shown to the public while WooCommerce > Site visibility is "coming soon") ---- */
.vap-soon { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.vap-soon .vap-logo { margin-bottom: 44px; }
.vap-soon .vap-logo img { height: 38px; }

/* ---- footer ---- */
.vap-footer { padding-top: 34px; padding-bottom: 34px; font-size: 15px; }
.vap-footer p { margin: 0; }
.vap-footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.vap-footer-links a { color: #fff; text-decoration: none; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.vap-footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---- WooCommerce: keep it flat ---- */
.woocommerce .button, .wc-block-components-button, .wp-element-button, .wc-block-components-text-input input,
.wc-blocks-components-select__select, .wc-block-components-textarea, .woocommerce select, .woocommerce input.input-text,
.woocommerce .quantity .qty, .wc-block-components-quantity-selector, .wc-block-components-radio-control-accordion-option,
.wc-block-components-notice-banner, .wc-block-components-totals-coupon__input input { border-radius: 0 !important; }
.wc-block-add-to-cart-form select, .wc-block-add-to-cart-form .quantity .qty, .woocommerce select, .woocommerce .quantity .qty {
	border: 1px solid var(--wp--preset--color--line); padding: 11px 14px; font: inherit; background-color: #fff; color: inherit; min-height: 48px; box-sizing: border-box;
}
.wc-block-add-to-cart-form select { min-width: 220px; cursor: pointer; }
.wc-block-add-to-cart-form select:focus, .wc-block-add-to-cart-form .quantity .qty:focus, .wc-block-components-text-input input:focus { outline: 2px solid var(--wp--preset--color--red); outline-offset: 1px; }
.wc-block-components-product-price, .woocommerce-variation-price .price, .wp-block-woocommerce-product-price {
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 30px; color: var(--wp--preset--color--ink);
}
.wc-block-add-to-cart-form table.variations { border: 0; margin: 0 0 14px; width: auto; }
.wc-block-add-to-cart-form table.variations :is(th, td) { border: 0; padding: 4px 16px 4px 0; text-align: left; vertical-align: middle; }
.wc-block-add-to-cart-form table.variations :is(th, label) { white-space: nowrap; }
.wc-block-add-to-cart-form table.variations label { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .08em; }
.wc-block-add-to-cart-form .reset_variations { font-size: 14px; margin-left: 12px; color: var(--wp--preset--color--grey); }
.wc-block-add-to-cart-form .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; }
.wc-block-add-to-cart-form .quantity { margin: 0; }
.wc-block-add-to-cart-form .quantity .qty { width: 5em; height: 100%; text-align: center; }
.vap-product .wp-block-post-title { font-size: clamp(30px, 4vw, 44px); margin-top: 0; }

@media (max-width: 600px) {
	.vap-main { padding-top: 36px; padding-bottom: 56px; }
	.vap-product { padding: 20px; }
	.vap-nav a { font-size: 17px; }
}
