﻿/* Additions on top of the cloned theme: blog, cart, checkout, tabs, misc. */
[hidden] { display: none !important; }

/* tabs */
.woocommerce-tabs .wc-tab[hidden] { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--pm-ink); }

/* demo notices */
.pm-demo-notice, .pm-demo-note { margin: 0 0 14px; color: var(--pm-muted); font-size: 14px; }
.pm-demo-notice { padding: 12px 14px; border-radius: 10px; background: var(--pm-soft); border: 1px solid var(--pm-line); }
.woocommerce-info { padding: 14px 16px; border: 1px solid var(--pm-line); border-left: 4px solid var(--pm-accent); border-radius: 10px; background: var(--pm-soft); list-style: none; }
.woocommerce-info::before { display: none; }

/* cart */
.woocommerce-cart-form { margin-bottom: 28px; }
table.shop_table { width: 100%; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
table.shop_table th, table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--pm-line); text-align: left; vertical-align: middle; }
table.shop_table thead th { border-top: 0; background: var(--pm-soft); font-weight: 600; font-size: 13px; color: var(--pm-muted); text-transform: uppercase; letter-spacing: .04em; }
table.shop_table .product-thumbnail img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--pm-soft); }
table.shop_table .product-remove a.remove { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--pm-muted); font-size: 20px; text-decoration: none; }
table.shop_table .product-remove a.remove:hover { background: #fee; color: #c00; }
table.shop_table .product-name a { font-weight: 600; color: var(--pm-ink); text-decoration: none; }
.pm-cart-sku { display: block; margin-top: 2px; color: var(--pm-muted); font-size: 12px; }
table.shop_table .quantity input.qty { width: 72px; padding: 9px 10px; border: 1px solid var(--pm-line); border-radius: 10px; font: inherit; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: min(100%, 420px); }
.cart_totals h2 { margin: 0 0 12px; font-size: 22px; }
.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .button { display: block; width: 100%; text-align: center; }
.return-to-shop { margin-top: 18px; }
.added_to_cart.wc-forward { display: inline-block; margin-left: 8px; color: var(--pm-accent); font-weight: 600; font-size: 14px; }

/* checkout */
.pm-checkout__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pm-checkout h3 { margin: 0 0 14px; font-size: 20px; }
.pm-checkout__review { padding: 22px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); background: #fff; box-shadow: var(--pm-shadow); }
.pm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pm-form-grid .form-row { float: none; width: auto; clear: none; }
.pm-form-grid .form-row-wide { grid-column: 1 / -1; }
.pm-checkout .form-row { margin: 0 0 14px; }
.pm-checkout .form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.pm-checkout input[type="text"], .pm-checkout input[type="email"], .pm-checkout input[type="tel"], .pm-checkout textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--pm-line); border-radius: 12px; background: #fff; font: inherit; color: var(--pm-ink);
}
.pm-checkout input:focus, .pm-checkout textarea:focus { outline: 0; border-color: var(--pm-accent); box-shadow: 0 0 0 3px rgba(84, 40, 172, .18); }
.pm-checkout .optional { color: var(--pm-muted); font-weight: 400; }
.pm-checkout .required { color: #c00; text-decoration: none; }
.wc_payment_methods { margin: 18px 0; padding: 0; list-style: none; }
.wc_payment_methods li { padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--pm-line); border-radius: 12px; }
.wc_payment_methods label { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.pm-checkout .checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--pm-muted); }
#place_order { width: 100%; margin-top: 6px; }
.pm-order-done h2 { margin-top: 0; }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 0 0 20px; list-style: none; }
@media (max-width: 860px) {
	.pm-checkout__cols { grid-template-columns: 1fr; }
	table.shop_table .product-thumbnail, table.shop_table thead { display: none; }
}
@media (max-width: 560px) { .pm-form-grid { grid-template-columns: 1fr; } }

/* my account */
.u-columns.col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.u-columns .col-1, .u-columns .col-2 { float: none; width: auto; padding: 24px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); background: #fff; }
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; font-weight: 600; }
.woocommerce form .form-row input.input-text { width: 100%; padding: 12px 14px; border: 1px solid var(--pm-line); border-radius: 12px; font: inherit; }
@media (max-width: 760px) { .u-columns.col2-set { grid-template-columns: 1fr; } }

/* blog */
.pm-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pm-blog-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); background: #fff; box-shadow: var(--pm-shadow); }
.pm-blog-card__image { display: block; aspect-ratio: 16 / 9; background: var(--pm-soft); }
.pm-blog-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-blog-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.pm-blog-card time, .pm-post time { color: var(--pm-muted); font-size: 13px; }
.pm-blog-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.pm-blog-card h3 a { color: var(--pm-ink); text-decoration: none; }
.pm-blog-card p { margin: 0; color: var(--pm-muted); font-size: 15px; line-height: 1.55; }
.pm-blog-card__more { margin-top: auto; padding-top: 6px; color: var(--pm-accent); font-weight: 600; text-decoration: none; }
.pm-post__back a { color: var(--pm-accent); font-weight: 600; text-decoration: none; }
.pm-post__image { width: 100%; height: auto; margin: 8px 0 24px; border-radius: var(--pm-radius); }
.pm-post .entry-content h2 { margin-top: 1.6em; }
.pm-post .entry-content p, .pm-post .entry-content li { line-height: 1.75; }

/* cookie banner */
.pm-cookie { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); background: #fff; box-shadow: 0 8px 30px rgba(15, 15, 20, .18); }
.pm-cookie p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pm-ink-700); }
.pm-cookie a { color: var(--pm-accent); font-weight: 600; }
.pm-cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
.pm-cookie__actions .button { padding: 10px 16px; min-height: 0; }
@media (max-width: 600px) { .pm-cookie { flex-direction: column; align-items: stretch; } .pm-cookie__actions .button { flex: 1; } }
.entry-content ul { padding-left: 1.2em; }

/* ---- NYOVY brand layer ---- */
.site-header .site-logo__image, body .site-logo__image { width: auto !important; height: 35px !important; max-width: none; }
.site-footer .site-logo__image { height: 60px !important; }
.hero__visual { background: #F1EDFB; border-color: #E8E6F0; }
.hero__visual img { border-radius: 16px; }
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 8px; }
.product-card__image, .woocommerce ul.products li.product a img { background: #F7F6FB; }
.pm-goal-grid__icon, .product-card__meta a { color: var(--pm-accent); }
::selection { background: #C0D0F4; color: #04043C; }



/* header: keep 9 menu items on one line between 1024 and 1280px */
@media (min-width: 1024px) and (max-width: 1279px) {
	.site-header__inner { gap: 12px; }
	.site-nav__list { gap: 12px; }
	.site-nav a { font-size: 14px; }
	.account-button { padding: 8px 11px; font-size: 14px; }
}

/* image lightbox */
.pm-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(4, 4, 60, .82); cursor: zoom-out; }
.pm-lightbox img { max-width: min(100%, 960px); max-height: 100%; width: auto; height: auto; border-radius: 12px; background: #fff; }
.pm-lightbox__close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #04043C; font-size: 28px; line-height: 1; cursor: pointer; }
.woocommerce-product-gallery { position: relative; }

/* ---- mobile fixes ---- */
@media (max-width: 1023px) {
	/* backdrop-filter made the header the containing block of the fixed menu, collapsing it to ~44px */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
	.site-nav { top: 73px; max-height: calc(100vh - 73px); }
}
@media (max-width: 782px) {
	.site-nav { top: 67px; max-height: calc(100vh - 67px); }
	.site-nav .sub-menu a { padding-block: 10px; }
	.footer-menu a { display: inline-block; padding-block: 8px; }
	.site-footer__menus h2 { margin-bottom: 6px; }
	.pm-cookie { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; gap: 12px; }
	.pm-cookie p { font-size: 13px; }
	.pm-cookie__actions .button { min-height: 44px; }
}

/* ---- phones: two-column product grids ---- */
@media (max-width: 600px) {
	body ul.products, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
	body ul.products li.product, .product-card { min-width: 0; padding: 10px; border-radius: 12px; }
	body ul.products li.product .woocommerce-loop-product__title, .product-card__content h3 { font-size: 14px; line-height: 1.3; margin-block: 8px 4px; }
	body ul.products li.product .price, .product-card__price { font-size: 14px; }
	body ul.products li.product .button, .product-card__actions .button { width: 100%; min-height: 40px; padding: 9px 6px; font-size: 13px; text-align: center; }
	.product-card__actions { flex-direction: column; gap: 8px; }
	.product-card__meta { font-size: 12px; }
	.related ul.products, .pm-profile-accessories > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	body ul.products li.product { display: flex; flex-direction: column; }
	body ul.products li.product .button { margin-top: auto; }
}

/* sticky buy bar (product page, phones) */
.pm-sticky-buy { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--pm-line); box-shadow: 0 -6px 20px rgba(4, 4, 60, .08); }
.pm-sticky-buy__info { display: grid; min-width: 0; line-height: 1.25; }
.pm-sticky-buy__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pm-sticky-buy__info span { color: var(--pm-accent); font-weight: 700; }
.pm-sticky-buy .button { flex: 0 0 auto; min-height: 44px; padding-inline: 20px; }

/* WooCommerce icon font is not shipped: drop the missing-glyph box on "added" buttons */
.woocommerce a.button.added::after, .button.added::after, .added_to_cart::after { content: none !important; display: none !important; }
.pm-sticky-buy .added_to_cart { display: none; }

@media (max-width: 782px) {
	table.shop_table .product-remove a.remove { width: 40px; height: 40px; font-size: 24px; }
	table.shop_table_responsive tr:nth-child(2n) td, table.shop_table_responsive tr:nth-child(2n) { background: transparent; }
	.cart_totals { width: 100%; }
}

/* checkout fields always fill their grid cell (WooCommerce .form-row-first/last set 47% width) */
.pm-checkout .pm-form-grid .form-row, .woocommerce form .pm-form-grid .form-row-first, .woocommerce form .pm-form-grid .form-row-last { width: 100% !important; float: none !important; }

/* terms checkbox: one flowing paragraph instead of flex columns */
.pm-checkout .checkbox { display: block !important; line-height: 1.5; }
.pm-checkout .checkbox input { margin: 3px 8px 0 0; float: left; }
.pm-checkout .checkbox a { color: var(--pm-accent); text-decoration: underline; }
