/*
Theme Name: ZV Shop
Theme URI: https://sklep.zdziroversum.pl
Author: Zdziroversum
Description: Lekki autorski motyw sklepu Zdziroversum.
Version: 1.0.0
Text Domain: zvshop
*/

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.6;
	background: #fff;
	color: #171717;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.site-header {
	border-bottom: 1px solid #e8e8e8;
	background: #fff;
}

.header-inner {
	min-height: 76px;
	display: flex;
	align-items: center;
	gap: 32px;
}

.site-logo {
	font-size: 1.4rem;
	font-weight: 800;
	margin-right: auto;
}

.main-nav ul {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cart-link {
	font-weight: 700;
}

.cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin-left: 6px;
	border-radius: 50%;
	background: #171717;
	color: #fff;
	font-size: 12px;
}

.hero {
	padding: 110px 0;
}

.hero .container {
	max-width: 900px;
	margin-left: max(20px, calc((100vw - 1180px) / 2));
}

.eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .16em;
}

.hero h1 {
	max-width: 900px;
	margin: 0;
	font-size: clamp(42px, 7vw, 82px);
	line-height: .98;
	letter-spacing: -.04em;
}

.hero-text {
	max-width: 620px;
	margin: 28px 0;
	font-size: 1.15rem;
}

.button-primary {
	display: inline-block;
	padding: 14px 22px;
	background: #171717;
	color: #fff;
	font-weight: 700;
}

.shop-preview {
	padding: 60px 0 100px;
}

.shop-preview h2 {
	font-size: 2rem;
	margin-bottom: 32px;
}

.content-area {
	padding-top: 60px;
	padding-bottom: 80px;
}

.site-footer {
	padding: 40px 0;
	border-top: 1px solid #e8e8e8;
	font-size: .9rem;
}

@media (max-width: 760px) {
	.header-inner {
		min-height: 66px;
		gap: 16px;
	}

	.main-nav {
		display: none;
	}

	.hero {
		padding: 70px 0;
	}

	.hero h1 {
		font-size: clamp(42px, 13vw, 62px);
	}
}

.product-page {
	padding: 70px 0 100px;
}

.product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	gap: 70px;
	align-items: start;
}

.product-visual img {
	display: block;
	width: 100%;
	height: auto;
}

.product-placeholder {
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	background: #f2f2f2;
	color: #777;
}

.product-summary {
	padding-top: 10px;
}

.product-breadcrumb {
	margin-bottom: 26px;
	font-size: .9rem;
	opacity: .65;
}

.product-title {
	margin: 0 0 18px;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1;
	letter-spacing: -.035em;
}

.product-price {
	margin-bottom: 28px;
	font-size: 1.7rem;
	font-weight: 700;
}

.product-short-description {
	margin-bottom: 30px;
	font-size: 1.05rem;
	line-height: 1.7;
}

.product-cart {
	margin-top: 28px;
}

.product-description {
	max-width: 900px;
	padding-top: 80px;
}

.product-description h2 {
	font-size: 2rem;
	margin-bottom: 24px;
}

.product-description-content {
	font-size: 1.05rem;
	line-height: 1.8;
}

@media (max-width: 850px) {
	.product-hero {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.product-page {
		padding-top: 40px;
	}

	.product-description {
		padding-top: 55px;
	}
}

.shop-archive {
	padding: 70px 0 100px;
}

.shop-header {
	max-width: 760px;
	margin-bottom: 50px;
}

.shop-header h1 {
	margin: 0;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 1;
	letter-spacing: -.04em;
}

.shop-description {
	margin-top: 20px;
	font-size: 1.05rem;
	line-height: 1.7;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 42px 28px;
}

.product-card {
	margin: 0;
}

.product-card-image {
	display: block;
	overflow: hidden;
	background: #f3f3f3;
	aspect-ratio: 1 / 1;
}

.product-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card-placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	color: #777;
}

.product-card-body {
	padding-top: 16px;
}

.product-card-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	line-height: 1.3;
}

.product-card-price {
	margin-bottom: 12px;
	font-weight: 700;
}

.product-card-link {
	display: inline-block;
	font-size: .95rem;
	font-weight: 700;
}

.shop-pagination {
	margin-top: 60px;
}

@media (max-width: 900px) {
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.product-grid {
		grid-template-columns: 1fr;
	}

	.shop-archive {
		padding-top: 45px;
	}
}

.woocommerce-cart .woocommerce {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 70px 0 100px;
}

.woocommerce-cart-form {
	margin-bottom: 50px;
}

.woocommerce-cart table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
	padding: 18px 12px;
	border-bottom: 1px solid #e8e8e8;
	text-align: left;
	vertical-align: middle;
}

.woocommerce-cart .product-thumbnail img {
	width: 90px;
	height: auto;
	display: block;
}

.woocommerce-cart .product-name a {
	font-weight: 700;
}

.woocommerce-cart .quantity input {
	width: 70px;
	padding: 10px;
}

.woocommerce-cart button.button,
.woocommerce-cart a.button {
	display: inline-block;
	padding: 12px 18px;
	border: 0;
	background: #171717;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.cart_totals {
	max-width: 520px;
	margin-left: auto;
}

.cart_totals h2 {
	font-size: 2rem;
}

.cart_totals table {
	width: 100%;
	border-collapse: collapse;
}

.cart_totals th,
.cart_totals td {
	padding: 14px 0;
	border-bottom: 1px solid #e8e8e8;
}

.wc-proceed-to-checkout {
	margin-top: 24px;
}

.wc-proceed-to-checkout .checkout-button {
	display: block;
	text-align: center;
	padding: 16px 20px;
}

@media (max-width: 760px) {
	.woocommerce-cart table.shop_table {
		font-size: .95rem;
	}

	.woocommerce-cart .product-thumbnail {
		display: none;
	}

	.cart_totals {
		max-width: none;
	}
}

.section-heading {
	margin-bottom: 32px;
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1;
	letter-spacing: -.03em;
}

.home-categories {
	padding: 40px 0 80px;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
}

.category-card {
	position: relative;
	display: block;
	min-height: 260px;
	overflow: hidden;
	background: #f2f2f2;
}

.category-books {
	grid-column: span 7;
}

.category-digital {
	grid-column: span 5;
}

.category-music {
	grid-column: span 4;
}

.category-merch {
	grid-column: span 4;
}

.category-decor {
	grid-column: span 4;
}

.category-card-content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 24px;
}

.category-card span {
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 700;
	line-height: 1;
}

@media (max-width: 900px) {

	.category-books,
	.category-digital,
	.category-music,
	.category-merch,
	.category-decor {
		grid-column: span 6;
	}
}

@media (max-width: 620px) {

	.category-books,
	.category-digital,
	.category-music,
	.category-merch,
	.category-decor {
		grid-column: 1 / -1;
	}

	.category-card {
		min-height: 210px;
	}
}
