/* A&Z Wall Coatings: WooCommerce (cards, shop, product page, cart, checkout, account). */

/* ---------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 18px; }
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 3px; }
.grid--need { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .6s var(--ease); mix-blend-mode: multiply; }
.card:hover .card__img { transform: scale(1.04); }
.card--tile .card__media { background: var(--sw); }
.card--tile .card__img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.card__ph { display: grid; place-items: center; width: 100%; height: 100%; }
.card__ph .mark { width: 30%; opacity: .2; }
.card__flag { position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 640; border-radius: var(--r); }
.card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; flex: 1; }
.grid--tiles .card__body { padding: 10px 10px 12px; background: var(--paper); }
.card__title { font-size: 16px; font-weight: 620; letter-spacing: -.005em; line-height: 1.25; }
.card--tile .card__title { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 19px; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__unit { margin: 0; font-size: 13px; color: var(--mute); }
.card__acts { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.card__add { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: var(--r); background: transparent; transition: background-color var(--fast), color var(--fast); }
.card__add:hover { background: var(--ink); color: #fff; }
.card__add.is-busy { opacity: .5; }
.card__add.is-done { background: var(--green); border-color: var(--green); color: var(--ink); }
.card__try { font-size: 13px; font-weight: 640; color: var(--blue-ink); }
.price { margin: 0; font-weight: 650; font-size: 16px; }
.price del { color: var(--mute); font-weight: 400; margin-left: 6px; }
.price--ask { color: var(--mute); font-weight: 500; }

/* ---------- shop */
.phead--shop .h1 { margin-bottom: 4px; }
.phead--shop .lead { margin-bottom: 18px; }
.phead--gam { background: linear-gradient(var(--paper), var(--paper)); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.pills a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 12px 0 10px; text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pills a:hover { color: var(--blue-ink); }
.pills a[aria-current] { border-bottom-color: var(--ink); }
.pills small { color: var(--mute); font-weight: 400; }
.shop__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.woocommerce-result-count { margin: 0; color: var(--mute); }
.woocommerce-ordering select { min-height: 44px; padding: 0 36px 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 40px 0; }

/* ---------- product page */
.pdp { padding-block: clamp(20px, 3vw, 40px) clamp(30px, 5vw, 60px); }
.pdp__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--hdr) + 16px); }
.pdp__views { margin-bottom: 10px; display: inline-grid; }
.pdp__stage { position: relative; }
.pdp__gallery { display: grid; gap: 6px; }
.pdp__img { margin: 0; background: #fff; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pdp__img img { width: 100%; height: 100%; object-fit: contain; }
.pdp--colour .pdp__img { background: var(--sw); }
.pdp--colour .pdp__img img { object-fit: cover; }
.pdp__img--ph .mark { width: 30%; opacity: .2; }
.pdp__paint { aspect-ratio: 4 / 3; background: #d9d6cf; border-radius: var(--r); overflow: hidden; }
.pdp__paint canvas { width: 100%; height: 100%; }
.pdp__paint.no-gl::after { content: "Your browser can't show the 3D room."; display: grid; place-items: center; height: 100%; color: var(--mute); }
.pdp__kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 600; color: var(--mute); }
.pdp__kicker .sw { width: 22px; height: 22px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pdp__title { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.03em; font-weight: 740; line-height: 1.02; }
.pdp--colour .pdp__title { font-family: var(--serif); font-style: italic; font-weight: 420; letter-spacing: -.02em; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 18px; }
.pdp__price .price { font-size: 26px; }
.pdp__unit { color: var(--mute); }
.pdp__short { margin-bottom: 18px; }
.pdp__short ul { padding-left: 1.1em; }
.pdp__buy form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 0 18px; }
.pdp__buy .quantity { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); }
.pdp__buy .quantity input { width: 56px; border: 0; text-align: center; font-weight: 650; background: transparent; -moz-appearance: textfield; }
.pdp__buy .quantity input::-webkit-inner-spin-button, .pdp__buy .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qbtn { width: 44px; border: 0; background: transparent; font-size: 20px; }
.single_add_to_cart_button { flex: 1; min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r); background: var(--blue-ink); color: #fff; font-weight: 680; font-size: 16px; }
.single_add_to_cart_button:hover { background: var(--blue-deep); }
.stock { font-weight: 600; }
.out-of-stock { color: #a02a1f; }
.pdp__calc { display: grid; gap: 6px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; }
.pdp__calc label { font-weight: 640; }
.pdp__calc-row { display: flex; align-items: center; gap: 8px; }
.pdp__calc-row input { width: 120px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--r); }
.pdp__calc-out { margin: 0; font-weight: 600; }
.pdp__try { margin-bottom: 14px; }
.acc { border-top: 1px solid var(--line); margin-top: 18px; }
.acc summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 680; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc[open] summary .ico { transform: rotate(180deg); }
.pdp__sku { margin-top: 16px; font-size: 14px; }
.near__list { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 16px; }
.need .h3, .near .h3 { margin-bottom: 16px; }
@media (max-width: 960px) {
	.pdp__in { grid-template-columns: 1fr; }
	.pdp__media { position: static; }
	.near__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 18px; padding: 14px 16px; background: #fff; border-left: 0; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.woocommerce-error { border-color: #d9a29b; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---------- cart / checkout / account (Woo markup, our skin) */
.woocommerce-cart .site-main > .wrap, .woocommerce-checkout .site-main > .wrap, .woocommerce-account .site-main > .wrap { padding-block: 30px 70px; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table img { width: 64px; height: 64px; object-fit: cover; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 640; text-decoration: none; cursor: pointer;
}
.woocommerce .button.alt, .woocommerce .checkout-button, #place_order { background: var(--blue-ink); border-color: var(--blue-ink); }
.woocommerce .button:hover { background: var(--ink-2); }
.woocommerce .button.alt:hover, #place_order:hover { background: var(--blue-deep); }
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single {
	width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff;
}
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
.woocommerce-checkout #customer_details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.woocommerce-checkout-review-order { background: #fff; padding: 18px; border: 1px solid var(--line); }
#payment ul.payment_methods { list-style: none; padding: 0; }
#payment .payment_box { background: var(--paper); padding: 10px 12px; margin: 6px 0; font-size: 14px; }
.cart-collaterals { margin-top: 30px; }
.cart_totals { max-width: 460px; margin-left: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { border-bottom: 2px solid var(--ink); }
@media (max-width: 860px) {
	.woocommerce-checkout #customer_details { grid-template-columns: 1fr; }
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; }
	.woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 600; margin-right: 10px; }
}
@media (max-width: 560px) {
	.grid, .grid--tiles, .grid--need { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
	.grid--tiles { gap: 3px; }
	.card__title { font-size: 15px; }
	.card--tile .card__title { font-size: 17px; }
}
