/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ---- Modifiche del 27/09/2026 (richieste cliente 24-26/09) ---- */

/* B1/E3: nome prodotto sempre su due righe, così le box hanno la stessa altezza */
.title-line-two .wd-product .wd-entities-title {
	min-height: calc(2 * var(--wd-line-height, 1.4em));
}

/* G2: testo della descrizione più leggibile su desktop */
.single-product .wd-single-content,
.single-product .wd-single-content p,
.single-product .wd-single-content li,
.single-product .wd-single-content td,
.single-product .wd-single-content th {
	font-size: 17px;
	line-height: 1.65;
}
.single-product .wd-single-content img {
	max-width: 100%;
	height: auto;
}

/* E2: recapiti nel footer, una riga per informazione sul telefono */
.lugli-br-mobile { display: none; }
@media (max-width: 767px) {
	.lugli-sep { display: none; }
	.lugli-br-mobile { display: inline; }
}

/* A5: modulo newsletter (Contact Form 7) campo e pulsante affiancati */
.lugli-newsletter { display: flex; gap: 10px; align-items: flex-start; }
.lugli-newsletter .wpcf7-form-control-wrap { flex: 1 1 auto; }
.lugli-newsletter input[type="email"] { width: 100%; }
.lugli-newsletter .wpcf7-spinner { display: none; }
.lugli-newsletter form { width: 100%; }
@media (max-width: 480px) {
	.lugli-newsletter { flex-direction: column; }
}

/* H8/K2: finché i box categoria usano foto prodotto provvisorie (sfondo bianco), un velo scuro rende leggibile il titolo */
.wd-cat .wd-cat-thumb { position: relative; }
.wd-cat.cat-design-default:not(.lugli-box-caption) .wd-cat-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
}

/* A4 (29/09/2026): recensioni TikTok in home come card HTML (script 09-recensioni-html.php), stile simile a TikTok Shop */
.lugli-tt-card {
	--lugli-tt-grey: #8a8b91;
	background: #fff !important;
	border: 1px solid #ececec;
	border-radius: 15px;
	padding: 20px 22px !important;
	color: #161823;
	text-decoration: none !important;
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	transition: box-shadow .2s ease;
}
.lugli-tt-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.lugli-tt-card p { margin: 0; }
.lugli-tt-card .wd-text-block, .lugli-tt-card .elementor-widget-container { font-family: inherit; }
.lugli-tt-name p {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 500;
	color: #161823;
}
.lugli-tt-name p::before {
	content: "";
	flex: 0 0 40px;
	height: 40px;
	border-radius: 50%;
	background: #d9d9dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='16' r='7' fill='%23fff'/%3E%3Cpath d='M6 36c2-8 8-11 14-11s12 3 14 11' fill='%23fff'/%3E%3C/svg%3E") center / cover no-repeat;
}
.lugli-tt-meta p { font-size: 14px; color: var(--lugli-tt-grey); line-height: 1.4; }
.lugli-tt-info p::after { content: " ⓘ"; }
.lugli-tt-stars p { font-size: 20px; letter-spacing: 2px; color: #f5c518; line-height: 1; }
.lugli-tt-text p { font-size: 16px; line-height: 1.45; color: #161823; }
.lugli-tt-body > .elementor-widget-wd_text_block { flex: 1 1 auto; }
.lugli-tt-thumb { flex: 0 0 88px !important; width: 88px !important; }
.lugli-tt-thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; display: block; }
.lugli-tt-like p { display: inline-flex; align-items: center; gap: 6px; }
.lugli-tt-like p::before {
	content: "";
	width: 18px;
	height: 18px;
	background: var(--lugli-tt-grey);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M7 10v11H3V10h4zm0 0 4-8c1.7 0 3 1.3 3 3v3h5.5a2 2 0 0 1 2 2.3l-1.4 8.5a2 2 0 0 1-2 1.7H7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M7 10v11H3V10h4zm0 0 4-8c1.7 0 3 1.3 3 3v3h5.5a2 2 0 0 1 2 2.3l-1.4 8.5a2 2 0 0 1-2 1.7H7'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 767px) {
	.lugli-tt-card { padding: 16px !important; }
	.lugli-tt-text p { font-size: 15px; }
	.lugli-tt-thumb { flex-basis: 72px !important; width: 72px !important; }
	.lugli-tt-thumb img { width: 72px; height: 72px; }
}

/* 29/09/2026: box categoria di Elena con il titolo incorporato nell'immagine -> titolo sovrapposto nascosto solo visivamente
   (resta nel codice per accessibilità/SEO). Solo nel design con titolo sopra l'immagine (home, griglia Cosmetica);
   nella barra tonda dello shop (cat-design-alt) il nome sotto l'icona resta visibile. */
.wd-cat.cat-design-default.lugli-box-caption .wd-cat-content .wd-entities-title {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* 2/10/2026: pagine legali (condizioni, spedizioni e resi, privacy, cookie) generate da
   documentazione-legale-2026-10-02/sito/pagine-legali.php: testo in un wd_text_block con classe lugli-legal. */
.lugli-legal h2 { font-size: 22px; margin: 32px 0 12px; }
.lugli-legal h3 { font-size: 18px; margin: 24px 0 10px; }
.lugli-legal p, .lugli-legal li { line-height: 1.65; }
.lugli-legal .lugli-legal-table { overflow-x: auto; margin: 0 0 20px; }
.lugli-legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lugli-legal th, .lugli-legal td { border: 1px solid rgba(0, 0, 0, .12); padding: 10px 12px; text-align: left; vertical-align: top; }
.lugli-legal th { background: #f7f7f7; font-weight: 600; }
