/* ==========================================================================
   Pigment: WooCommerce styles
   1. Shop  2. Product card  3. Single product  4. Notices and forms
   5. Mini cart  6. Cart and checkout  7. Account
   ========================================================================== */

/* 1. Shop ------------------------------------------------------------------- */
.crumbs {
	padding-top: 1.5rem;
	color: var(--ink-soft);
	font-size: 0.9rem;
}

.crumbs a {
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.crumbs__sep {
	margin-inline: 0.5em;
	opacity: 0.5;
}

.shop-head {
	padding-bottom: 1rem;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.chip:hover {
	border-color: var(--ink);
}

.chip.is-active {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.chip__dot {
	width: 0.7em;
	height: 0.7em;
	border-radius: 50%;
	background: var(--field);
	box-shadow: 0 0 0 1px rgba(22, 26, 51, 0.25);
}

.term-description {
	max-width: 60ch;
	color: var(--ink-soft);
}

.toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block: 1.5rem;
}

.toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.toolbar .woocommerce-ordering {
	margin: 0;
}

.toolbar select {
	width: auto;
	min-width: 12rem;
	padding-block: 0.6rem;
}

.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem 1rem;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination {
	margin-bottom: 4rem;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-info.woocommerce-no-products-found {
	margin-top: 2rem;
}

/* 2. Product card ------------------------------------------------------------ */
.pcard {
	position: relative;
	display: flex;
	flex-direction: column;
}

.pcard__field {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 2px;
	background: var(--field);
}

.pcard__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
}

.pcard__img--hover {
	opacity: 0;
	transition: opacity 0.3s;
}

.pcard:hover .pcard__img--hover {
	opacity: 1;
}

.pcard__shape {
	position: absolute;
	inset: 8% 10%;
	width: 80%;
	height: 84%;
}

.onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 3;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.4;
}

.pcard__body {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.85rem;
}

.woocommerce-loop-product__title {
	margin: 0;
	font: 500 1rem/1.35 var(--f-body);
	letter-spacing: 0;
}

.woocommerce-loop-product__title a {
	text-decoration: none;
}

.woocommerce-loop-product__title a:hover {
	text-decoration: underline;
}

.price {
	color: var(--ink);
	font-weight: 600;
	white-space: nowrap;
}

.price del {
	margin-right: 0.4em;
	color: var(--ink-soft);
	font-weight: 400;
}

.price ins {
	text-decoration: none;
}

.pcard > .button {
	align-self: flex-start;
	margin-top: 0.75rem;
	padding: 0.5rem 1.1rem;
	border-color: var(--ink);
	background: transparent;
	color: var(--ink);
	font-size: 0.875rem;
}

.pcard > .button:hover {
	background: var(--ink);
	color: var(--paper);
}

.pcard > .button.added {
	border-color: var(--cobalt);
	background: var(--cobalt);
	color: #fff;
}

.pcard > .button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.added_to_cart {
	display: none !important;
}

/* 3. Single product ------------------------------------------------------------ */
.single-product div.product {
	padding-block: 1.5rem 3rem;
}

.product-top {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 2rem clamp(2rem, 5vw, 5rem);
	margin-bottom: 3rem;
}

.product-top > .onsale {
	top: 0.75rem;
	left: 0.75rem;
}

.woocommerce-product-gallery {
	margin: 0;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image--placeholder {
	background: var(--field);
}

.woocommerce-product-gallery__image--placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
}

.woocommerce-product-gallery__image--placeholder img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	mix-blend-mode: multiply;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	z-index: 9;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23161a33' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat;
	text-decoration: none;
}

.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.flex-control-thumbs li {
	background: var(--field);
}

.flex-control-thumbs img {
	display: block;
	width: 100%;
	cursor: pointer;
	opacity: 0.55;
	mix-blend-mode: multiply;
	transition: opacity 0.2s;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs img.flex-active {
	opacity: 1;
}

.summary {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	align-self: start;
	padding-top: 0.5rem;
}

.product_title {
	margin-bottom: 0.75rem;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.04em;
}

.summary .price {
	display: block;
	margin-bottom: 1.25rem;
	font: 600 1.5rem/1.2 var(--f-display);
	letter-spacing: -0.03em;
}

.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.woocommerce-product-details__short-description {
	max-width: 52ch;
	margin-bottom: 1.75rem;
	color: var(--ink-soft);
}

form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

form.cart .quantity {
	flex: none;
}

form.cart input.qty {
	width: 5.25rem;
	padding: 0.95rem 0.5rem;
	text-align: center;
}

form.cart .single_add_to_cart_button {
	flex: 1;
	min-width: 12rem;
	padding-block: 1.05rem;
	font-size: 1rem;
}

form.cart .single_add_to_cart_button.loading {
	opacity: 0.6;
}

form.cart .single_add_to_cart_button.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.variations_form {
	display: block;
}

.variations {
	width: 100%;
	margin-bottom: 1rem;
	border: 0;
}

.variations th,
.variations td {
	display: block;
	padding: 0 0 0.75rem;
	border: 0;
}

.variations th label {
	font-weight: 600;
}

.reset_variations {
	display: inline-block;
	margin-top: 0.4rem;
	font-size: 0.85rem;
}

.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.stock {
	margin: 0 0 1rem;
	font-weight: 500;
}

.stock.out-of-stock {
	color: #b3261e;
}

.product_meta {
	display: grid;
	gap: 0.3rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 0.9rem;
}

.product_meta a {
	color: var(--ink);
}

/* Tabs */
.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--line);
	list-style: none;
}

.woocommerce-tabs ul.tabs a {
	display: block;
	padding: 0.9rem 0;
	border-bottom: 2px solid transparent;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink-soft);
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs a:hover {
	border-bottom-color: var(--ink);
	color: var(--ink);
}

.woocommerce-Tabs-panel {
	max-width: 70ch;
	padding-block: 2rem;
}

.woocommerce-Tabs-panel > h2:first-child {
	font-size: 1.3rem;
}

.woocommerce-Tabs-panel--description > h2:first-child {
	display: none;
}

.woocommerce-product-attributes th {
	width: 30%;
	font-weight: 600;
}

/* Related and upsells */
.related.products > h2,
.upsells.products > h2 {
	margin-bottom: 1.5rem;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.related.products,
.upsells.products {
	margin-top: 2rem;
}

/* Reviews and ratings */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.6em;
	height: 1em;
	overflow: hidden;
	font-size: 1rem;
	line-height: 1;
}

.star-rating::before,
.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	letter-spacing: 0.1em;
}

.star-rating::before {
	color: #c4c7d4;
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	padding-top: 2em;
	overflow: hidden;
}

.star-rating span::before {
	color: var(--cobalt);
}

p.stars a {
	position: relative;
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	overflow: hidden;
	text-indent: -9999px;
}

p.stars a::before {
	content: "★";
	position: absolute;
	inset: 0;
	color: #c4c7d4;
	font-size: 1.6rem;
	line-height: 1.6rem;
	text-align: center;
	text-indent: 0;
}

p.stars:hover a::before,
p.stars.selected a::before {
	color: var(--cobalt);
}

p.stars a:hover ~ a::before,
p.stars.selected a.active ~ a::before {
	color: #c4c7d4;
}

#reviews .commentlist {
	padding: 0;
	list-style: none;
}

#reviews .comment_container {
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--line);
}

#reviews .avatar {
	float: left;
	margin-right: 1rem;
	border-radius: 50%;
}

#reviews .meta {
	margin-bottom: 0.4rem;
	color: var(--ink-soft);
}

/* Sticky add-to-bag bar */
.sticky-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	background: var(--ink);
	color: var(--paper);
}

.sticky-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.75rem;
}

.sticky-bar__info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1rem;
	min-width: 0;
}

.sticky-bar__title {
	font-family: var(--f-display);
	font-weight: 600;
}

.sticky-bar .price,
.sticky-bar .price del {
	color: var(--paper);
}

.sticky-bar .btn:hover {
	background: #fff;
	color: var(--ink);
}

.sticky-bar :focus-visible {
	outline-color: var(--paper);
}

/* 4. Notices and forms -------------------------------------------------------------- */
.woocommerce-notices-wrapper {
	margin-top: 1.5rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--cobalt);
	border-radius: 2px;
	background: var(--white);
	list-style: none;
}

.woocommerce-error {
	border-left-color: #b3261e;
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
}

.form-row {
	margin-bottom: 1rem;
}

.form-row label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
}

.form-row .required {
	color: #b3261e;
	text-decoration: none;
}

.woocommerce-input-wrapper {
	display: block;
}

.password-input {
	position: relative;
	display: block;
}

.password-input input {
	padding-right: 3rem;
}

.show-password-input {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23161a33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 22px no-repeat;
	cursor: pointer;
	opacity: 0.6;
	transform: translateY(-50%);
}

.show-password-input:hover,
.show-password-input.display-password {
	opacity: 1;
}

.select2-container .select2-selection--single {
	height: auto;
	padding: 0.5rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: inherit;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
}

/* 5. Mini cart --------------------------------------------------------------------- */
.ship-meter {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--line);
}

.ship-meter__text {
	margin: 0 0 0.6rem;
	font-size: 0.92rem;
	font-weight: 500;
}

.ship-meter__track {
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--line);
}

.ship-meter__track span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: var(--cobalt);
	transition: width 0.5s var(--ease);
}

.woocommerce-mini-cart {
	flex: 1;
	margin: 0;
	padding: 0 1.5rem;
	overflow-y: auto;
	list-style: none;
}

.mini_cart_item {
	position: relative;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--line);
}

.mini_cart_item > a:not(.remove) {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 0 1rem;
	align-items: start;
	padding-right: 2rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.mini_cart_item img {
	grid-row: span 2;
	width: 72px;
	height: 90px;
	object-fit: cover;
	background: rgba(22, 26, 51, 0.08);
}

.mini_cart_item .quantity {
	display: block;
	margin: -2.25rem 0 0 calc(72px + 1rem);
	color: var(--ink-soft);
	font-size: 0.92rem;
}

.mini_cart_item .variation {
	margin: 0.25rem 0 0 calc(72px + 1rem);
	font-size: 0.85rem;
	color: var(--ink-soft);
}

.mini_cart_item .variation dt,
.mini_cart_item .variation dd {
	display: inline;
	margin: 0;
}

.mini_cart_item .variation p {
	display: inline;
	margin: 0;
}

a.remove {
	position: absolute;
	top: 1rem;
	right: 0;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: var(--ink-soft);
	font-size: 1.2rem;
	line-height: 1;
	text-decoration: none;
}

a.remove:hover {
	background: var(--ink);
	color: var(--paper);
}

.woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--line);
	font-weight: 600;
}

.woocommerce-mini-cart__buttons {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0 1.5rem 1.5rem;
}

.woocommerce-mini-cart__buttons .button {
	width: 100%;
	padding-block: 0.95rem;
	border-color: var(--ink);
	background: transparent;
	color: var(--ink);
}

.woocommerce-mini-cart__buttons .button:hover {
	background: var(--ink);
	color: var(--paper);
}

.woocommerce-mini-cart__buttons .checkout {
	background: var(--ink);
	color: var(--paper);
}

.woocommerce-mini-cart__buttons .checkout:hover {
	border-color: var(--cobalt);
	background: var(--cobalt);
	color: #fff;
}

.woocommerce-mini-cart__empty-message {
	margin: 0;
	padding: 2rem 1.5rem;
}

/* 6. Cart and checkout -------------------------------------------------------------- */
.shop_table {
	width: 100%;
	margin-bottom: 2rem;
	border-collapse: collapse;
}

.shop_table th,
.shop_table td {
	padding: 1rem 0.75rem;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

.shop_table .product-thumbnail img {
	width: 72px;
	border-radius: 2px;
}

.shop_table .product-name a {
	font-weight: 600;
	text-decoration: none;
}

.shop_table .product-remove {
	width: 2.5rem;
}

.shop_table .product-remove a.remove {
	position: static;
}

.shop_table .actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.shop_table .actions .coupon input {
	width: auto;
	flex: 1;
	min-width: 10rem;
}

.cart-collaterals {
	display: flex;
	justify-content: flex-end;
}

.cart_totals {
	width: min(100%, 460px);
}

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

.wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	padding-block: 1.05rem;
}

form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 2rem clamp(2rem, 5vw, 4rem);
	align-items: start;
}

form.checkout #customer_details .col-1,
form.checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

form.checkout #order_review_heading {
	grid-column: 2;
	margin: 0;
	font-size: 1.3rem;
}

form.checkout #order_review {
	grid-column: 2;
	padding: 1.5rem;
	border-radius: 2px;
	background: var(--white);
}

form.checkout #customer_details {
	grid-row: 1 / span 2;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}

.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row {
	grid-column: 1 / -1;
}

.form-row-first,
.form-row-last {
	grid-column: auto !important;
}

#payment {
	margin-top: 1.5rem;
}

#payment ul.payment_methods {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

#payment .payment_box {
	margin-top: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--paper);
	font-size: 0.92rem;
}

#place_order {
	display: flex;
	width: 100%;
	padding-block: 1.05rem;
	font-size: 1rem;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle {
	grid-column: 1 / -1;
}

/* Block-based cart and checkout (WooCommerce default on new installs) */
.wc-block-components-button:not(.is-link) {
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--f-body);
	font-weight: 600;
}

.wc-block-components-button:not(.is-link):hover {
	background: var(--cobalt);
	color: #fff;
}

.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	color: inherit;
}

.wc-block-components-product-name {
	font-weight: 600;
	text-decoration: none;
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	font-family: var(--f-body);
}

/* 7. Account ----------------------------------------------------------------------- */
.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 2rem clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.woocommerce-account .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	margin-top: 0;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line);
	font-weight: 500;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a {
	font-weight: 700;
	color: var(--cobalt);
}

.woocommerce-account:not(.logged-in) .woocommerce {
	display: block;
	max-width: 480px;
}

.woocommerce-form-login,
.woocommerce-form-register {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border-radius: 2px;
	background: var(--white);
}

/* Responsive ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.woocommerce ul.products,
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.product-top,
	form.checkout,
	.woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
	}

	.summary {
		position: static;
	}

	form.checkout #order_review_heading,
	form.checkout #order_review,
	form.checkout #customer_details {
		grid-column: 1;
		grid-row: auto;
	}
}

@media (max-width: 720px) {
	.woocommerce ul.products,
	ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem 0.75rem;
	}

	.pcard__body {
		flex-direction: column;
		gap: 0.15rem;
	}

	.toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.shop_table_responsive thead {
		display: none;
	}

	.sticky-bar__title {
		font-size: 0.9rem;
	}
}
