/* Inna Warszawa: single product page. Built on soft.css + book-hero.css (the home page),
   only what the product page adds: gallery, edition switch, WooCommerce form, prose, intro. */

.iwcs-pp-notices:empty { display: none; }
.iwcs-pp-notices { max-width: 1216px; margin: 0 auto; padding: 20px 28px 0; }
.iwcs-product-page .iw-fsb--product { margin: 0; border: 0; }

/* ------------------------------------------------------------ Hero */
.iwcs-soft .iwcs-pp-hero { padding-top: clamp(32px, 4.5vw, 72px); }
.iwcs-pp-hero__inner { max-width: 1216px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

/* Gallery: one large image in a paper frame, thumbnails below. */
.iwcs-pp-gallery { position: sticky; top: 24px; }
.admin-bar .iwcs-pp-gallery { top: 56px; }
.iwcs-pp-gallery__main {
	position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 28px;
	background: radial-gradient(ellipse 70% 60% at 50% 45%, #f3ece1 0%, #e6dccd 100%);
	box-shadow: inset 0 0 0 1px rgb(31 29 25 / .06), 0 40px 70px -40px rgb(var(--s-shadow) / .45);
}
.iwcs-pp-gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--s-ease); }
.iwcs-pp-gallery__main:hover img { transform: scale(1.02); }
.iwcs-pp-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.iwcs-pp-gallery__thumbs button { flex: 0 0 auto; width: 68px; height: 68px; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #e9e2d6; cursor: pointer; opacity: .62; box-shadow: inset 0 0 0 1px var(--s-line); transition: opacity .4s var(--s-ease), box-shadow .4s var(--s-ease); }
.iwcs-pp-gallery__thumbs button:hover { opacity: 1; }
.iwcs-pp-gallery__thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--s-cream), 0 0 0 3px var(--s-ink); }
.iwcs-pp-gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Summary: title, byline, lead, offer. */
.iwcs-pp-summary { padding-top: clamp(0px, 2vw, 24px); }
.iwcs-soft .iwcs-pp-hero h1 { font-size: clamp(64px, 7.4vw, 120px); line-height: .86; }
.iwcs-soft .iwcs-pp-hero h1.is-long { font-size: clamp(44px, 4.6vw, 72px); line-height: .95; letter-spacing: -.03em; }
.iwcs-soft .iwcs-pp-hero h1 span { font-size: clamp(34px, 3.6vw, 56px); }
.iwcs-pp-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 22px 0 0; font-size: 15px; }
.iwcs-pp-byline strong { font-weight: 700; letter-spacing: .02em; }
.iwcs-pp-byline span { color: var(--s-muted); font-size: 13.5px; }
.iwcs-pp-byline strong + span { padding-left: 16px; border-left: 1px solid var(--s-line); }
.iwcs-pp-lead { margin: 26px 0 0; max-width: 32em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; letter-spacing: -.01em; text-wrap: pretty; }

.iwcs-pp-offer { max-width: 560px; margin-top: 30px; }
.iwcs-pp-offer .iwcs-bezel__core { padding: 12px; }

/* Edition switch: two cards, the current one inked. */
.iwcs-pp-editions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; padding: 4px; border-radius: 16px; background: rgb(31 29 25 / .045); }
.iwcs-pp-editions a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 16px; border-radius: 12px; color: var(--s-muted); font-size: 14px; text-decoration: none; transition: background-color .4s var(--s-ease), color .4s var(--s-ease); }
.iwcs-pp-editions a:hover { background: rgb(255 253 248 / .8); color: var(--s-ink); }
.iwcs-pp-editions a strong { font-family: var(--s-serif); font-size: 22px; font-weight: 400; font-variant-numeric: lining-nums; }
.iwcs-pp-editions a[aria-current] { background: var(--s-core); color: var(--s-ink); font-weight: 700; box-shadow: 0 1px 2px rgb(var(--s-shadow) / .08), 0 8px 18px -10px rgb(var(--s-shadow) / .3), inset 0 0 0 1px var(--s-line); }

.iwcs-pp-price { padding: 4px 8px 14px; }
.iwcs-soft .iwcs-pp-price { margin: 0; color: var(--s-ink); font-family: var(--s-serif); font-size: clamp(40px, 3.6vw, 52px); font-weight: 400; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.iwcs-pp-price del { margin-right: 10px; color: var(--s-muted); font-size: .6em; }
.iwcs-pp-price ins { text-decoration: none; }
.iwcs-pp-price :is(small, p:not(.price)) { display: block; margin: 8px 0 0; color: var(--s-muted); font-family: Lato, Arial, sans-serif; font-size: 12px; line-height: 1.45; letter-spacing: 0; }

/* WooCommerce's own form, dressed as the home page's buy button. */
.iwcs-soft .iwcs-pp-offer .stock { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 12px; padding: 0; border-radius: 0; background: none !important; color: var(--s-muted) !important; font-size: 13px; }
.iwcs-soft .iwcs-pp-offer .stock.in-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fb354; }
.iwcs-pp-offer .stock.out-of-stock { color: var(--s-accent); font-weight: 700; }
.iwcs-pp-offer form.cart { display: flex; gap: 8px; margin: 0; }
.iwcs-pp-offer form.cart .quantity { flex: 0 0 auto; margin: 0; }
.iwcs-soft .iwcs-pp-offer form.cart .quantity input.qty { width: 76px; height: 64px; min-height: 64px; margin: 0; padding: 0 8px; border: 0; border-radius: 16px !important; background: rgb(31 29 25 / .045); box-shadow: inset 0 0 0 1px var(--s-line); color: var(--s-ink); font: 700 17px/1 Lato, Arial, sans-serif; text-align: center; }
.iwcs-soft .iwcs-pp-offer form.cart .single_add_to_cart_button {
	flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; margin: 0; padding: 10px 12px 10px 24px;
	border: 0; border-radius: 16px !important; background: var(--s-ink); color: var(--s-cream); font: 700 17px/1.2 Lato, Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer;
	transition: background-color .5s var(--s-ease), transform .5s var(--s-ease);
}
.iwcs-soft .iwcs-pp-offer form.cart .single_add_to_cart_button::after { content: none; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .12); font-weight: 400; transition: transform .6s var(--s-ease); }
.iwcs-soft .iwcs-pp-offer form.cart .single_add_to_cart_button:hover { background: var(--s-accent); color: #fff; }
.iwcs-soft .iwcs-pp-offer form.cart .single_add_to_cart_button:hover::after { transform: translate(2px, -2px) scale(1.06); background: rgb(255 255 255 / .2); }
.iwcs-soft .iwcs-pp-offer form.cart .single_add_to_cart_button:active { transform: scale(.985); }
.iwcs-soft .iwcs-pp-offer form.cart .single_add_to_cart_button.disabled { opacity: .5; }

/* Notices other modules place above the form (preorder dates, stock). */
.iwcs-pp-offer :is(.iwcs-cal-product-preorder, .iwcs-product-stock-note) { margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: rgb(138 67 41 / .06); font-size: 14px; }
.iwcs-pp-offer .iwcs-cal-product-preorder p { margin: 0 0 4px; }

.iwcs-pp-offer .iwcs-cal-counter { max-width: none; margin: 12px 0 0; border: 0; border-radius: 14px; background: rgb(31 29 25 / .035); box-shadow: inset 0 0 0 1px var(--s-line); }

/* Digital editions: files, not a parcel — a cooler tray and a label on the image. */
.iwcs-pp-gallery__badge { position: absolute; left: 16px; top: 16px; display: flex; flex-direction: column; padding: 10px 16px 11px; border-radius: 16px; background: rgb(31 29 25 / .86); color: var(--s-cream); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.iwcs-pp-gallery__badge small { margin-top: 3px; color: #cfcabe; font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: none; }
.iwcs-product-page--digital .iwcs-pp-gallery__main { background: #e4e2dc; }

/* ------------------------------------------------------------ About + prose */
.iwcs-pp-about__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.iwcs-pp-about__aside { position: sticky; top: 110px; }
.iwcs-soft .iwcs-pp-about__aside h2 { margin: 0; font-size: clamp(44px, 4.8vw, 72px); line-height: .95; letter-spacing: -.03em; }
.iwcs-pp-about__aside h2 em { display: block; }
.iwcs-pp-facts { margin: clamp(32px, 4vw, 48px) 0 0; border-top: 1px solid rgb(31 29 25 / .16); }
.iwcs-pp-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--s-line); }
.iwcs-pp-facts dt { color: var(--s-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; line-height: 2; text-transform: uppercase; }
.iwcs-pp-facts dd { margin: 0; font-size: 15px; line-height: 1.5; }

.iwcs-pp-prose { max-width: 64ch; color: var(--s-ink); font-size: 18px; line-height: 1.7; }
.iwcs-pp-prose > :first-child { margin-top: 0; }
.iwcs-pp-prose p { margin: 0 0 1.1em; color: #3c3a34; text-wrap: pretty; }
.iwcs-soft .iwcs-pp-prose :is(h2, h3, .iwcs-prose-heading) { margin: 1.8em 0 .5em; font-family: var(--s-serif); font-size: clamp(30px, 2.8vw, 40px); font-weight: 400; line-height: 1.05; letter-spacing: -.015em; color: var(--s-ink); }
.iwcs-soft .iwcs-pp-prose :is(h2, h3):first-child { margin-top: 0; }
.iwcs-pp-prose :is(ul, ol) { margin: 0 0 1.1em; padding-left: 1.2em; color: #3c3a34; }
.iwcs-pp-prose a { color: var(--s-ink); text-decoration-color: rgb(31 29 25 / .3); text-underline-offset: 4px; }
.iwcs-pp-prose a:hover { color: var(--s-accent); }
.iwcs-pp-prose img { max-width: 100%; height: auto; border-radius: 18px; }

/* ------------------------------------------------------------ Introduction */
.iwcs-pp-intro__text { display: grid; justify-items: start; max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.iwcs-pp-quote { margin: 0 0 36px; padding: 0; border: 0; }
.iwcs-pp-quote p { position: relative; margin: 0; font-family: var(--s-serif); font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.02em; color: var(--s-ink); text-wrap: balance; }
.iwcs-pp-quote footer { margin-top: 22px; color: var(--s-muted); font-size: 14px; }
.iwcs-pp-quote cite { font-style: italic; }

/* ------------------------------------------------------------ Reviews: up to six cards */
.iwcs-soft.iwcs-product-page .iwr-reviews--editorial .iwr-review-card:nth-child(2) { translate: none; }
.iwcs-soft.iwcs-product-page .iwr-reviews--editorial .iwr-review-card:nth-child(3n+2) { translate: 0 32px; }
.iwcs-product-page .iwr-editorial-grid { row-gap: clamp(40px, 4vw, 56px); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ------------------------------------------------------------ Tablet */
@media (max-width: 1024px) {
	.iwcs-pp-about__inner { grid-template-columns: 1fr; }
	.iwcs-pp-about__aside { position: static; }
}
@media (max-width: 900px) {
	.iwcs-pp-hero__inner { grid-template-columns: 1fr; }
	.iwcs-pp-gallery { position: static; max-width: 560px; }
}

/* ------------------------------------------------------------ Mobile */
@media (max-width: 767px) {
	.iwcs-pp-notices { padding: 16px 16px 0; }
	.iwcs-soft .iwcs-pp-hero { padding: 20px 16px 56px; }
	.iwcs-pp-hero__inner { gap: 28px; }
	/* A shorter frame keeps the price and buy button on the first screen. */
	.iwcs-pp-gallery__main { aspect-ratio: 16 / 11; border-radius: 22px; }
	.iwcs-pp-summary { display: flex; flex-direction: column; align-items: flex-start; }
	.iwcs-pp-summary > * { max-width: 100%; }
	.iwcs-pp-offer { align-self: stretch; }
	.iwcs-pp-lead { order: 2; }
	.iwcs-pp-summary .iwcs-eyebrow { max-width: 100%; margin-bottom: 16px; padding: 6px 10px; font-size: 9px; letter-spacing: .14em; }
	.iwcs-pp-gallery__badge { left: 10px; top: 10px; padding: 8px 12px; font-size: 10.5px; }
	.iwcs-pp-gallery__thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 3px 16px; }
	.iwcs-pp-gallery__thumbs { gap: 8px; margin-top: 10px; }
	.iwcs-pp-gallery__thumbs button { width: 48px; height: 48px; border-radius: 10px; }
	.iwcs-soft .iwcs-pp-hero h1 { font-size: clamp(56px, 17vw, 80px); }
	.iwcs-soft .iwcs-pp-hero h1.is-long { font-size: clamp(38px, 11vw, 52px); }
	.iwcs-soft .iwcs-pp-hero h1 span { font-size: clamp(28px, 8vw, 36px); }
	.iwcs-pp-byline { margin-top: 16px; }
	.iwcs-pp-lead { margin-top: 22px; font-size: 16px; }
	.iwcs-pp-offer { margin-top: 22px; }
	.iwcs-pp-offer .iwcs-bezel__core { padding: 8px; }
	.iwcs-pp-editions a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 60px; padding: 8px 14px; font-size: 12.5px; }
	.iwcs-pp-editions a strong { font-size: 20px; line-height: 1.1; }
	.iwcs-soft .iwcs-pp-offer form.cart .quantity input.qty { width: 60px; height: 60px; min-height: 60px; }
	.iwcs-soft .iwcs-pp-offer form.cart .single_add_to_cart_button { min-height: 60px; padding-left: 18px; font-size: 16px; }
	.iwcs-pp-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
	.iwcs-pp-prose { font-size: 17px; }
	.iwcs-soft.iwcs-product-page .iwr-reviews--editorial .iwr-review-card:nth-child(3n+2) { translate: none; }
	.iwcs-soft.iwcs-product-page .iwcs-site-footer { padding-bottom: 96px; }
}
