/*
Theme Name: Dabiprati
Theme URI: https://dabiprati.pt
Author: Dabiprati
Description: Tema da loja Dabiprati — peças impressas em 3D. Feito à medida para WooCommerce: página inicial, loja com filtros, variantes em botões (cor, tamanho, material) e campo de personalização.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dabiprati
WC requires at least: 8.6
WC tested up to: 10.4
*/

/* ==========================================================================
   Cores e medidas
   ========================================================================== */
:root {
	--dbp-cream: #FFF8EF;
	--dbp-white: #FFFFFF;
	--dbp-ink: #2B1D10;
	--dbp-coral: #F07B78;
	--dbp-coral-soft: #FBD3D1;
	--dbp-mustard: #F4DB8E;
	--dbp-caramel: #E8B074;
	--dbp-blush: #F6D9CE;
	--dbp-line: #F3E4D3;
	--dbp-line-strong: #D8C4AF;
	--dbp-muted: #5E4636;
	--dbp-muted-2: #6B5444;
	--dbp-link: #A93A37;
	--dbp-link-hover: #7E2826;
	--dbp-footer-text: #E9DCCB;
	--dbp-success: #DDEFE3;
	--dbp-error: #FBD3D1;
	--dbp-font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
	--dbp-font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--dbp-radius: 22px;
	--dbp-radius-sm: 14px;
	--dbp-max: 1200px;
	--dbp-gutter: 24px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--dbp-cream);
	color: var(--dbp-ink);
	font-family: var(--dbp-font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--dbp-link); }
a:hover { color: var(--dbp-link-hover); }

h1, h2, h3, h4 {
	font-family: var(--dbp-font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--dbp-ink);
}

:focus-visible { outline: 3px solid var(--dbp-ink); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dbp-skip {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--dbp-ink); color: var(--dbp-cream);
	padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none;
}
.dbp-skip:focus { top: 12px; color: var(--dbp-cream); }

.dbp-container {
	width: 100%;
	max-width: var(--dbp-max);
	margin: 0 auto;
	padding-left: var(--dbp-gutter);
	padding-right: var(--dbp-gutter);
}

.dbp-icon { display: block; flex: none; }

/* ==========================================================================
   Botões e etiquetas
   ========================================================================== */
.dbp-btn,
.button,
button.button,
input.button,
a.button,
.wp-element-button,
.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	border: 2px solid var(--dbp-ink);
	background: var(--dbp-ink);
	color: var(--dbp-cream);
	font-family: var(--dbp-font-body);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.dbp-btn:hover,
.button:hover,
.wp-element-button:hover,
.wc-block-components-button:not(.is-link):hover {
	background: #4A3524;
	border-color: #4A3524;
	color: var(--dbp-cream);
}
.dbp-btn:active, .button:active { transform: translateY(1px); }

.dbp-btn--outline { background: transparent; color: var(--dbp-ink); }
.dbp-btn--outline:hover { background: var(--dbp-ink); color: var(--dbp-cream); }
.dbp-btn--lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.dbp-btn--block { display: flex; width: 100%; }

.button:disabled, .button.disabled, .button[disabled] { opacity: .45; cursor: not-allowed; }

.dbp-pill {
	display: inline-block;
	align-self: flex-start;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--dbp-ink);
}
.dbp-pill--mustard { background: var(--dbp-mustard); }

.dbp-eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--dbp-muted-2);
	text-transform: uppercase;
	letter-spacing: .6px;
}

.dbp-link-strong { font-weight: 800; }

/* ==========================================================================
   Barra superior e cabeçalho
   ========================================================================== */
.dbp-topbar {
	background: var(--dbp-ink);
	color: var(--dbp-cream);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	padding: 10px 16px;
}

.dbp-header { background: var(--dbp-cream); border-bottom: 2px solid var(--dbp-line); position: relative; z-index: 20; }
.dbp-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.dbp-brand { display: flex; align-items: center; gap: 10px; color: var(--dbp-ink); text-decoration: none; }
.dbp-brand:hover { color: var(--dbp-ink); }
.dbp-brand__logo { width: 56px; height: 68px; object-fit: contain; }
.dbp-brand__name { font-family: var(--dbp-font-display); font-weight: 600; font-size: 26px; letter-spacing: .2px; }

.dbp-nav__list { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0; list-style: none; }
.dbp-nav__list a {
	display: inline-block;
	padding: 6px 0;
	color: var(--dbp-ink);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	text-underline-offset: 6px;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--dbp-coral);
}
.dbp-nav__list a:hover,
.dbp-nav__list a[aria-current="page"],
.dbp-nav__list .current-menu-item > a { text-decoration-line: underline; color: var(--dbp-ink); }

.dbp-actions { display: flex; align-items: center; gap: 8px; }

.dbp-iconbtn {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 22px;
	border: 2px solid var(--dbp-line);
	background: var(--dbp-white);
	color: var(--dbp-ink);
	cursor: pointer;
	padding: 0;
}
.dbp-iconbtn:hover { border-color: var(--dbp-ink); color: var(--dbp-ink); }

.dbp-cartbtn {
	height: 44px;
	padding: 0 16px;
	display: inline-flex; align-items: center; gap: 8px;
	border-radius: 22px;
	background: var(--dbp-coral);
	color: var(--dbp-ink);
	font-weight: 800;
	font-size: 15px;
	text-decoration: none;
}
.dbp-cartbtn:hover { background: #EC6764; color: var(--dbp-ink); }

.dbp-search { border-top: 2px solid var(--dbp-line); background: var(--dbp-white); }
.dbp-search__form { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.dbp-search__form input[type="search"] { flex: 1 1 auto; min-width: 0; }

/* ==========================================================================
   Formulários
   ========================================================================== */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="date"], select, textarea {
	min-height: 50px;
	width: 100%;
	padding: 0 16px;
	border: 2px solid var(--dbp-line-strong);
	border-radius: var(--dbp-radius-sm);
	background: var(--dbp-white);
	color: var(--dbp-ink);
	font-family: var(--dbp-font-body);
	font-size: 16px;
}
textarea { padding: 12px 16px; min-height: 120px; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232B1D10' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dbp-ink); box-shadow: 0 0 0 3px rgba(43, 29, 16, .12); }
label { font-weight: 700; }
::placeholder { color: #8C7766; opacity: 1; }

/* ==========================================================================
   Página inicial
   ========================================================================== */
.dbp-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 72px;
}
.dbp-hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dbp-hero__title { margin: 0; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -.5px; }
.dbp-hero__lead { margin: 0; max-width: 520px; font-size: 19px; color: var(--dbp-muted); }
.dbp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.dbp-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--dbp-muted); }
.dbp-hero__trust li { display: flex; align-items: center; gap: 6px; }
.dbp-hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.dbp-hero__circle {
	position: relative;
	width: min(440px, 100%);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: var(--dbp-mustard);
	display: flex; align-items: center; justify-content: center;
}
.dbp-hero__circle img { width: 78%; height: 88%; object-fit: contain; }
.dbp-hero__seal {
	position: absolute; left: -6px; bottom: 34px;
	background: var(--dbp-white);
	border: 2px solid var(--dbp-ink);
	border-radius: 18px;
	padding: 10px 16px;
	font-weight: 800; font-size: 14px;
	transform: rotate(-4deg);
}

.dbp-band--white { background: var(--dbp-white); border-top: 2px solid var(--dbp-line); border-bottom: 2px solid var(--dbp-line); }
.dbp-band--blush { background: var(--dbp-blush); }

.dbp-section { display: flex; flex-direction: column; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.dbp-section--roomy { padding-top: 72px; padding-bottom: 72px; }
.dbp-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }

.dbp-h2 { margin: 0; font-size: 36px; }
.dbp-h2--sm { font-size: 26px; }

.dbp-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.dbp-catcard {
	display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
	min-height: 150px;
	padding: 22px;
	border-radius: var(--dbp-radius);
	background: var(--tint, var(--dbp-blush));
	color: var(--dbp-ink);
	text-decoration: none;
	transition: transform .15s ease;
}
.dbp-catcard:hover { color: var(--dbp-ink); transform: translateY(-3px); }
.dbp-catcard__text { display: flex; flex-direction: column; gap: 2px; }
.dbp-catcard__name { font-family: var(--dbp-font-display); font-weight: 600; font-size: 21px; }
.dbp-catcard__more { font-size: 14px; font-weight: 700; color: var(--dbp-muted); }

.dbp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.dbp-step { background: var(--dbp-cream); border-radius: var(--dbp-radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.dbp-step p { margin: 0; color: var(--dbp-muted); }
.dbp-step__title { margin: 0; font-size: 22px; }
.dbp-step__num { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-family: var(--dbp-font-display); font-weight: 700; font-size: 20px; }
.dbp-step__num--coral { background: var(--dbp-coral); }
.dbp-step__num--mustard { background: var(--dbp-mustard); }
.dbp-step__num--caramel { background: var(--dbp-caramel); }

.dbp-payband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.dbp-payband p { margin: 4px 0 0; color: var(--dbp-muted); }
.dbp-paybadges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dbp-paybadges li { border: 2px solid var(--dbp-ink); border-radius: 12px; padding: 10px 18px; font-weight: 800; }
.dbp-paybadges--sm li { border-color: var(--dbp-line); padding: 8px 12px; font-size: 14px; font-weight: 700; color: var(--dbp-muted); }

/* ==========================================================================
   Grelha de produtos e cartões
   ========================================================================== */
ul.products,
.dbp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dbp-grid--home { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.dbp-card { margin: 0; padding: 0; list-style: none; }
.dbp-card__link { display: flex; flex-direction: column; gap: 12px; color: var(--dbp-ink); text-decoration: none; height: 100%; }
.dbp-card__link:hover { color: var(--dbp-ink); }
.dbp-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: var(--dbp-radius);
	background: var(--tint, var(--dbp-blush));
	overflow: hidden;
}
.dbp-card__media img,
.dbp-card__img {
	position: absolute; inset: 0;
	width: 100% !important; height: 100% !important;
	object-fit: cover;
	transition: transform .3s ease;
}
.dbp-card__link:hover .dbp-card__img { transform: scale(1.04); }
.dbp-card__placeholder {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	font-size: 13px; font-weight: 700; color: var(--dbp-muted);
}
.dbp-card__placeholder .dbp-icon { color: var(--dbp-ink); }
.dbp-card__body { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.dbp-card__title { font-family: var(--dbp-font-display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.dbp-card__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.dbp-card__price { font-weight: 800; font-size: 17px; }
.dbp-card__meta { font-size: 13px; font-weight: 700; color: var(--dbp-muted-2); }

.dbp-badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	background: var(--dbp-white);
	color: var(--dbp-ink);
	font-size: 12px; font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
}
.dbp-badge--dark { background: var(--dbp-ink); color: var(--dbp-cream); }
.dbp-badge--coral { background: var(--dbp-coral); color: var(--dbp-ink); }
.dbp-badge--right { left: auto; right: 14px; }

/* Preços */
.price del, .woocommerce-Price-amount del { color: var(--dbp-muted-2); font-weight: 600; margin-right: 6px; }
ins { text-decoration: none; }
del { text-decoration-thickness: 2px; }

/* ==========================================================================
   Loja (lista de produtos)
   ========================================================================== */
.dbp-shop { padding-top: 36px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.dbp-crumbs { font-size: 14px; font-weight: 700; color: var(--dbp-muted-2); }
.dbp-crumbs a { color: var(--dbp-muted-2); }
.dbp-shop__head { display: flex; flex-direction: column; gap: 6px; }
.dbp-shop__lead { margin: 0; font-size: 18px; color: var(--dbp-muted); }
.dbp-shop__lead p { margin: 0; }
.dbp-page__title { margin: 0; font-size: 48px; line-height: 1.1; }

.dbp-shop__layout { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.dbp-shop__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.dbp-filters {
	flex: 1 1 230px;
	max-width: 280px;
	background: var(--dbp-white);
	border: 2px solid var(--dbp-line);
	border-radius: var(--dbp-radius);
	padding: 24px;
}
.dbp-filters__toggle > summary { display: none; }
.dbp-filters__body { display: flex; flex-direction: column; gap: 26px; }
.dbp-filters__group { display: flex; flex-direction: column; gap: 10px; }
.dbp-filters__title { margin: 0 0 4px; font-size: 19px; }

.dbp-checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dbp-check { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--dbp-ink); font-weight: 600; text-decoration: none; }
.dbp-check:hover { color: var(--dbp-ink); }
.dbp-check__box {
	width: 20px; height: 20px; flex: none;
	border: 2px solid var(--dbp-ink); border-radius: 5px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--dbp-white); color: transparent;
}
.dbp-check[aria-current="page"] .dbp-check__box,
.dbp-check[aria-pressed="true"] .dbp-check__box { background: var(--dbp-ink); color: var(--dbp-cream); }
.dbp-check[aria-current="page"], .dbp-check[aria-pressed="true"] { font-weight: 800; }

.dbp-swatchlist { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }

.dbp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dbp-toolbar__count { font-weight: 700; color: var(--dbp-muted); }
.woocommerce-ordering { display: flex; align-items: center; gap: 10px; margin: 0; }
.woocommerce-ordering label { white-space: nowrap; }
.woocommerce-ordering select { min-height: 44px; width: auto; border-color: var(--dbp-line); font-weight: 700; font-size: 15px; }

.woocommerce-pagination { margin-top: 18px; }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	min-width: 44px; height: 44px; padding: 0 14px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 22px;
	border: 2px solid var(--dbp-line);
	background: var(--dbp-white);
	color: var(--dbp-ink);
	font-weight: 800;
	text-decoration: none;
}
.woocommerce-pagination .page-numbers span.current { background: var(--dbp-ink); border-color: var(--dbp-ink); color: var(--dbp-cream); }
.woocommerce-pagination .page-numbers a:hover { border-color: var(--dbp-ink); }

.dbp-empty { padding: 32px; background: var(--dbp-white); border: 2px dashed var(--dbp-line-strong); border-radius: var(--dbp-radius); font-weight: 700; color: var(--dbp-muted); }

/* ==========================================================================
   Página de produto
   ========================================================================== */
.dbp-wc { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }

.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	position: relative;
}
.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1; }
.single-product div.product > .onsale { display: none; }
.single-product div.product > .related,
.single-product div.product > .upsells,
.single-product div.product > section { grid-column: 1 / -1; }

/* Galeria */
.woocommerce-product-gallery { position: relative; margin: 0; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
	border-radius: 28px;
	overflow: hidden;
	background: var(--dbp-blush);
}
.woocommerce-product-gallery__image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce-product-gallery__image--placeholder img { object-fit: contain; padding: 15%; }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 16px; right: 16px; z-index: 5;
	width: 44px; height: 44px; border-radius: 22px;
	background: var(--dbp-white); border: 2px solid var(--dbp-line);
	display: flex; align-items: center; justify-content: center;
	font-size: 0; text-decoration: none; color: var(--dbp-ink);
}
.woocommerce-product-gallery__trigger::before { content: ""; width: 16px; height: 16px; border: 2.5px solid var(--dbp-ink); border-radius: 50%; margin: -4px 0 0 -4px; }
.woocommerce-product-gallery__trigger::after { content: ""; position: absolute; width: 8px; height: 2.5px; background: var(--dbp-ink); transform: rotate(45deg); right: 11px; bottom: 13px; border-radius: 2px; }
.woocommerce-product-gallery__trigger img { display: none !important; }
.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.flex-control-thumbs li { margin: 0; }
.flex-control-thumbs img {
	display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
	border-radius: 16px; border: 2px solid var(--dbp-line);
	cursor: pointer; opacity: .85;
}
.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover { border: 3px solid var(--dbp-ink); opacity: 1; }

/* Resumo */
.single-product .summary { display: flex; flex-direction: column; gap: 18px; }
.single-product .summary > * { margin-top: 0; margin-bottom: 0; }
.single-product .product_title { margin: 0; font-size: 44px; line-height: 1.1; }
.single-product .summary > .price { font-weight: 800; font-size: 28px; color: var(--dbp-ink); }
.single-product .summary .woocommerce-product-details__short-description { color: var(--dbp-muted); font-size: 17px; }
.single-product .summary .woocommerce-product-details__short-description p { margin: 0 0 .6em; }
.single-product .summary .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.dbp-leadtime { margin-top: -4px !important; }

/* Formulário de compra */
form.cart { display: flex; flex-direction: column; gap: 22px; margin: 6px 0 0; }
form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
form.cart:not(.variations_form) > .dbp-pers,
.woocommerce-variation-add-to-cart > .dbp-pers { flex: 1 1 100%; margin-bottom: 10px; }

table.variations { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
table.variations tbody, table.variations tr, table.variations th, table.variations td { display: block; border: 0; padding: 0; text-align: left; }
table.variations tr { margin-bottom: 22px; }
table.variations tr:last-child { margin-bottom: 0; }
table.variations th.label { margin-bottom: 12px; }
table.variations th.label label { font-weight: 800; font-size: 16px; }
.dbp-variation__current { font-weight: 600; }
.dbp-variation select[data-dbp-hidden-select] {
	position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
	padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none;
}
.reset_variations {
	display: inline-block; margin-top: 12px;
	font-size: 14px; font-weight: 700; color: var(--dbp-link);
}
.reset_variations[style*="hidden"] { display: none; }

.dbp-options { display: flex; flex-wrap: wrap; gap: 10px; }
.dbp-options--color { gap: 12px; }

.dbp-swatch {
	width: 44px; height: 44px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--dbp-ink);
	background: var(--swatch, #E9DCCB);
	cursor: pointer;
	display: inline-block;
	transition: box-shadow .15s ease;
}
.dbp-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--dbp-cream), 0 0 0 6px var(--dbp-ink); }
.dbp-filters .dbp-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--dbp-white), 0 0 0 5px var(--dbp-ink); }
.dbp-swatch--sm { width: 32px; height: 32px; }
.dbp-swatch.is-unavailable { opacity: .3; cursor: not-allowed; background-image: linear-gradient(135deg, transparent 46%, var(--dbp-ink) 46%, var(--dbp-ink) 54%, transparent 54%); }

.dbp-optpill {
	min-height: 48px;
	padding: 6px 20px;
	border-radius: 16px;
	border: 2px solid var(--dbp-ink);
	background: var(--dbp-white);
	color: var(--dbp-ink);
	font-family: var(--dbp-font-body);
	font-weight: 800;
	font-size: 15px;
	line-height: 1.25;
	display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
	cursor: pointer;
	text-align: left;
}
.dbp-optpill small { font-size: 12px; font-weight: 600; }
.dbp-optpill[aria-pressed="true"] { background: var(--dbp-ink); color: var(--dbp-cream); }
.dbp-optpill.is-unavailable { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.single_variation_wrap { display: flex; flex-direction: column; gap: 16px; }
.woocommerce-variation-price .price { font-weight: 800; font-size: 22px; }
.woocommerce-variation-description p, .woocommerce-variation-availability p { margin: 0; }
.stock { font-weight: 700; margin: 0; }
.stock.out-of-stock { color: var(--dbp-link); }
.stock.in-stock { color: var(--dbp-muted); }

/* Personalização */
.dbp-pers { display: flex; flex-direction: column; gap: 8px; }
.dbp-pers label { font-weight: 800; }
.dbp-pers__req { font-weight: 600; color: var(--dbp-muted); }
.dbp-pers input { font-size: 17px; }
.dbp-pers__help { margin: 0; font-size: 14px; color: var(--dbp-muted-2); }

/* Quantidade */
.quantity {
	display: inline-flex;
	align-items: center;
	height: 56px;
	border: 2px solid var(--dbp-ink);
	border-radius: 999px;
	background: var(--dbp-white);
}
.quantity .qty {
	width: 44px; min-height: 0; height: 100%;
	padding: 0; border: 0; border-radius: 0;
	background: transparent;
	text-align: center; font-weight: 800; font-size: 18px;
	-moz-appearance: textfield;
}
.quantity .qty:focus { box-shadow: none; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dbp-qty__btn {
	width: 48px; height: 52px;
	border: 0; background: transparent;
	font-size: 22px; font-weight: 800; color: var(--dbp-ink);
	cursor: pointer; border-radius: 999px;
}
.dbp-qty__btn:hover { background: var(--dbp-cream); }
.quantity:has(input[type="hidden"]) { display: none; }
.single_add_to_cart_button { flex: 1 1 220px; min-height: 56px !important; font-size: 18px !important; }

/* Secções do produto */
.dbp-accordion { display: flex; flex-direction: column; border-top: 2px solid var(--dbp-line); margin-top: 6px !important; }
.dbp-accordion__item { border-bottom: 2px solid var(--dbp-line); padding: 16px 0; }
.dbp-accordion__item > summary {
	font-family: var(--dbp-font-display);
	font-weight: 600;
	font-size: 20px;
	cursor: pointer;
	list-style: none;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dbp-accordion__item > summary::-webkit-details-marker { display: none; }
.dbp-accordion__item > summary::after { content: "+"; font-family: var(--dbp-font-body); font-weight: 800; font-size: 22px; line-height: 1; }
.dbp-accordion__item[open] > summary::after { content: "−"; }
.dbp-accordion__body { margin-top: 10px; color: var(--dbp-muted); }
.dbp-accordion__body p:first-child { margin-top: 0; }
.dbp-accordion__body p:last-child { margin-bottom: 0; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--dbp-line); vertical-align: top; }
.woocommerce-product-attributes th { width: 40%; color: var(--dbp-ink); }
.woocommerce-product-attributes td p { margin: 0; }

/* Relacionados */
.related.products, .upsells.products { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.related.products > h2, .upsells.products > h2 { margin: 0; font-size: 32px; }

/* Avaliações */
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; font-size: 15px; line-height: 1; overflow: hidden; }
.star-rating::before { content: "★★★★★"; color: var(--dbp-line-strong); position: absolute; inset: 0; letter-spacing: .1em; }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 1.2em; }
.star-rating span::before { content: "★★★★★"; color: #E0A23B; position: absolute; top: 0; left: 0; letter-spacing: .1em; }
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { display: flex; gap: 12px; }
#reviews .avatar { border-radius: 50%; width: 48px; height: 48px; }
p.stars a { color: #E0A23B; text-decoration: none; margin-right: 4px; }

/* ==========================================================================
   Avisos
   ========================================================================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	list-style: none;
	margin: 0 0 20px;
	padding: 16px 20px;
	border-radius: 16px;
	background: var(--dbp-coral-soft);
	color: var(--dbp-ink);
	font-weight: 700;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.woocommerce-message { background: var(--dbp-success); }
.woocommerce-info { background: var(--dbp-mustard); }
.woocommerce-error { flex-direction: column; align-items: flex-start; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; padding: 0 18px; font-size: 14px; }
.wc-block-components-notice-banner { border-radius: 16px !important; }

/* ==========================================================================
   Páginas, carrinho, checkout e conta
   ========================================================================== */
.dbp-page { padding-top: 40px; padding-bottom: 80px; }
.dbp-page__article { display: flex; flex-direction: column; gap: 28px; }
.dbp-content { font-size: 17px; }
.dbp-content > *:first-child { margin-top: 0; }
.dbp-content h2 { font-size: 30px; margin: 1.4em 0 .5em; }
.dbp-content h3 { font-size: 22px; margin: 1.2em 0 .4em; }
.dbp-content table { width: 100%; border-collapse: collapse; }
.dbp-content th, .dbp-content td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--dbp-line); }
.dbp-postlist { display: flex; flex-direction: column; gap: 32px; margin-top: 24px; }
.dbp-postitem__title { margin: 0 0 6px; font-size: 26px; }
.dbp-postitem__title a { color: var(--dbp-ink); text-decoration: none; }

/* Blocos do carrinho e checkout */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--dbp-font-body); }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { width: 100%; min-height: 56px !important; }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar { font-size: 16px; }
.wc-block-components-totals-wrapper, .wc-block-components-order-summary { border-color: var(--dbp-line) !important; }
.wc-block-components-product-name { font-family: var(--dbp-font-display); font-weight: 600; color: var(--dbp-ink) !important; text-decoration: none; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select { border-radius: var(--dbp-radius-sm) !important; border-color: var(--dbp-line-strong) !important; }
.wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option { font-weight: 700; }

/* Carrinho/checkout clássicos */
table.shop_table { width: 100%; border-collapse: collapse; background: var(--dbp-white); border: 2px solid var(--dbp-line); border-radius: var(--dbp-radius); overflow: hidden; }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 2px solid var(--dbp-line); vertical-align: middle; }
table.shop_table img { width: 72px; border-radius: 12px; }
table.shop_table .product-remove a { font-size: 22px; text-decoration: none; color: var(--dbp-link); }
table.shop_table .actions { text-align: right; }
.cart-collaterals { margin-top: 32px; display: flex; justify-content: flex-end; }
.cart_totals { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; }
.wc-proceed-to-checkout .button { width: 100%; }
.coupon { display: flex; flex-wrap: wrap; gap: 10px; }
.coupon input { width: auto; flex: 1 1 160px; }
.variation { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0 0; font-size: 14px; }
.variation dt { font-weight: 800; }
.variation dd { margin: 0; }
.variation dd p { margin: 0; }

.woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row .required { color: var(--dbp-link); text-decoration: none; }
.woocommerce form .form-row.woocommerce-invalid input { border-color: var(--dbp-link); }
.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--dbp-ink); }

.woocommerce-account .woocommerce { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.woocommerce-MyAccount-navigation { flex: 1 1 220px; max-width: 280px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 12px; background: var(--dbp-white); border: 2px solid var(--dbp-line); border-radius: var(--dbp-radius); display: flex; flex-direction: column; gap: 2px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--dbp-ink); font-weight: 700; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--dbp-blush); }
.woocommerce-MyAccount-content { flex: 999 1 480px; min-width: 0; }
.woocommerce-account .u-columns { display: flex; flex-wrap: wrap; gap: 32px; width: 100%; }
.woocommerce-account .u-column1, .woocommerce-account .u-column2 { flex: 1 1 320px; }
.woocommerce-form-login, .woocommerce-form-register { background: var(--dbp-white); border: 2px solid var(--dbp-line); border-radius: var(--dbp-radius); padding: 24px; }
.woocommerce-account .woocommerce > h2, .woocommerce-account .u-column1 > h2, .woocommerce-account .u-column2 > h2 { font-size: 26px; margin: 0 0 14px; }
.woocommerce-password-strength { font-size: 14px; font-weight: 700; margin-top: 6px; }
.show-password-input { display: none; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.dbp-footer { background: var(--dbp-ink); color: var(--dbp-cream); }
.dbp-footer__inner { display: flex; flex-direction: column; gap: 36px; padding-top: 56px; padding-bottom: 32px; }
.dbp-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.dbp-footer__col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; }
.dbp-footer__col--brand { flex-basis: 260px; gap: 10px; }
.dbp-footer__col--brand p { margin: 0; max-width: 320px; color: var(--dbp-footer-text); }
.dbp-footer__brand { font-family: var(--dbp-font-display); font-weight: 600; font-size: 26px; }
.dbp-footer__title { font-weight: 800; }
.dbp-footer a { color: var(--dbp-footer-text); text-decoration: none; }
.dbp-footer a:hover { color: var(--dbp-white); text-decoration: underline; }
.dbp-footer__legal { border-top: 1px solid #5A4535; padding-top: 20px; font-size: 14px; color: var(--dbp-footer-text); }
.dbp-footer :focus-visible { outline-color: var(--dbp-cream); }

/* ==========================================================================
   Ecrãs pequenos
   ========================================================================== */
@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.single-product div.product > .summary { grid-column: 1; grid-row: 2; }
	.single-product .product_title { font-size: 34px; }
	.dbp-filters { max-width: none; flex-basis: 100%; padding: 0; }
	.dbp-filters__toggle > summary {
		display: flex; align-items: center; justify-content: space-between;
		min-height: 52px; padding: 0 20px;
		font-family: var(--dbp-font-display); font-weight: 600; font-size: 19px;
		cursor: pointer; list-style: none;
	}
	.dbp-filters__toggle > summary::-webkit-details-marker { display: none; }
	.dbp-filters__toggle > summary::after { content: "+"; font-family: var(--dbp-font-body); font-weight: 800; font-size: 22px; }
	.dbp-filters__toggle[open] > summary::after { content: "−"; }
	.dbp-filters__body { padding: 4px 20px 20px; }
}

@media (max-width: 720px) {
	:root { --dbp-gutter: 16px; }
	.dbp-header__inner { gap: 10px 16px; }
	.dbp-nav { order: 3; flex: 1 1 100%; overflow-x: auto; }
	.dbp-nav__list { flex-wrap: nowrap; gap: 22px; }
	.dbp-nav__list a { white-space: nowrap; }
	.dbp-brand__logo { width: 44px; height: 54px; }
	.dbp-brand__name { font-size: 22px; }
	.dbp-hero { padding-top: 32px; padding-bottom: 48px; gap: 32px; }
	.dbp-hero__seal { left: 0; bottom: 18px; }
	.dbp-h2 { font-size: 30px; }
	.dbp-page__title { font-size: 38px; }
	.dbp-section, .dbp-section--roomy { padding-top: 48px; padding-bottom: 48px; }
	ul.products, .dbp-grid, .dbp-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.dbp-card__title { font-size: 17px; }
	.dbp-badge { top: 10px; left: 10px; }
	.dbp-badge--right { left: auto; right: 10px; }
	.dbp-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dbp-catcard { min-height: 130px; padding: 18px; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr, table.shop_table_responsive td { display: block; }
	table.shop_table_responsive td { text-align: right; }
	table.shop_table_responsive td::before { content: attr(data-title) ": "; float: left; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Ajustes nos blocos do carrinho/checkout */
.wc-block-components-quantity-selector { border-radius: 999px !important; border: 2px solid var(--dbp-ink) !important; overflow: hidden; }
.wc-block-components-quantity-selector::after { display: none !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 12px; }
.wc-block-components-order-summary .wc-block-components-product-name { font-size: 17px; line-height: 1.25; }
