/* =============================================
   PREVIEW - Nova Joia Redesign
   ============================================= */

h1 {
	border-bottom: none !important;
}

/* --- SLIDER --- */
.bx-wrapper {
	max-width: 100% !important;
	border: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
	margin: 0 auto !important;
}
.bx-wrapper img {
	width: 100vw !important;
	height: 80vh !important;
	max-height: 700px !important;
	object-fit: cover !important;
	object-position: center center !important;
}
.bx-wrapper .bx-viewport {
	left: 0 !important;
	overflow: hidden !important;
}
.bxslider,
.bxslider > div {
	width: 100vw !important;
}
.bx-wrapper .bx-pager {
	bottom: 20px !important;
}
.bx-wrapper .bx-pager.bx-default-pager a {
	background: rgba(255,255,255,0.5) !important;
	width: 12px !important;
	height: 12px !important;
	border-radius: 50% !important;
}
.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:hover {
	background: #fff !important;
}
body.presentacio div.page {
	margin-top: 0 !important;
}
body.presentacio #header-bg {
	display: none !important;
}
@media screen and (max-width: 767px) {
	.bx-wrapper img {
		height: 50vh !important;
		max-height: 400px !important;
	}
}

/* --- HOME PAGE --- */
.home-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 60px;
}
.home-intro {
	text-align: center;
	padding: 40px 0 50px;
	margin-bottom: 50px;
}
.home-intro-text {
	max-width: 750px;
	margin: 0 auto;
	font-size: 19px;
	line-height: 1.8;
	color: #444;
}
.home-intro-text p,
.home-intro-text span {
	font-size: 19px !important;
	line-height: 1.8 !important;
}
.home-features {
	display: flex;
	gap: 0;
	border-top: 1px solid #e0dbd5;
	margin-bottom: 50px;
}
.home-feature {
	flex: 1;
	padding: 35px 30px;
	border-right: 1px solid #e0dbd5;
	border-bottom: 1px solid #e0dbd5;
	text-align: center;
}
.home-feature:last-child {
	border-right: none;
}
.home-feature-icon {
	font-size: 22px;
	color: #b5a078;
	margin-bottom: 14px;
}
.home-feature h3 {
	font-size: 17px;
	font-weight: 600;
	color: #333;
	margin: 0;
	line-height: 1.5;
}
.home-cta {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 60px;
	flex-wrap: wrap;
}
.home-trust {
	display: flex;
	justify-content: center;
	gap: 50px;
	flex-wrap: wrap;
	padding: 40px 0;
	border-top: 1px solid #e0dbd5;
}
.home-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
}
.home-trust-item i {
	font-size: 16px;
	color: #b5a078;
}
.home-trust-item span {
	font-size: 14px !important;
	font-weight: 600;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 1px;
}
@media screen and (max-width: 767px) {
	.home-features {
		flex-direction: column;
	}
	.home-feature {
		border-right: none;
		padding: 25px 20px;
	}
	.home-trust {
		gap: 20px;
	}
	.home-trust-item {
		flex: 0 0 calc(50% - 10px);
	}
	.home-cta {
		flex-direction: column;
		align-items: center;
	}
	.home-cta .btn-contact {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

/* --- SEARCH PAGE --- */
.search-page {
	max-width: 1266px;
	margin: 0 auto;
	padding: 0 20px 60px;
}
.search-page h1,
.search-count {
	text-align: center !important;
	font-size: 16px;
	color: #666;
	margin-bottom: 30px;
}
.search-page h1 {
	font-size: 32px !important;
	color: #222 !important;
}
.search-empty {
	text-align: center !important;
	padding: 60px 20px;
	color: #555;
	font-size: 18px;
	width: 100%;
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.search-empty p {
	text-align: center !important;
}
.search-page .cat-header,
.search-page .cat-header h1,
.search-page .cat-header p {
	text-align: center !important;
}
.search-empty a {
	font-weight: 600;
}

/* --- CONTACT PAGE --- */
.ct-page {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px 60px;
}
.ct-layout {
	display: flex;
	gap: 60px;
}
.ct-info {
	flex: 0 0 300px;
	padding-top: 10px;
}
.ct-info-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 30px;
}
.ct-info-item i {
	font-size: 18px;
	color: #b5a078;
	margin-top: 3px;
	width: 20px;
	text-align: center;
}
.ct-info-item strong {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #333;
	margin-bottom: 3px;
}
.ct-info-item a {
	color: #666 !important;
	text-decoration: none !important;
	font-size: 15px;
}
.ct-info-item a:hover {
	color: #5e3101 !important;
}
.ct-form-wrap {
	flex: 1;
}
.ct-form-wrap h2 {
	font-size: 22px;
	font-weight: 600;
	color: #222 !important;
	margin: 0 0 25px 0;
}
.ct-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form textarea {
	width: 100% !important;
	padding: 20px 24px !important;
	border: 1px solid #ddd !important;
	background: #fafafa !important;
	font-size: 17px !important;
	font-family: inherit !important;
	color: #333 !important;
	transition: border-color 0.3s ease;
	box-sizing: border-box !important;
	border-radius: 0 !important;
}
.ct-form input[type="text"]:focus,
.ct-form input[type="email"]:focus,
.ct-form textarea:focus {
	outline: none;
	border-color: #5e3101 !important;
	background: #fff !important;
}
.ct-field textarea {
	resize: vertical;
	min-height: 120px;
}
.ct-field-row {
	display: flex;
	gap: 12px;
}
.ct-field-row .ct-field {
	flex: 1;
}
.ct-checkbox {
	padding: 5px 0;
}
.ct-checkbox label {
	font-size: 17px !important;
	color: #555;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ct-checkbox input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	padding: 0 !important;
	margin: 0 !important;
	flex-shrink: 0;
	vertical-align: middle;
}
.ct-checkbox a {
	color: #5e3101 !important;
}
.ct-submit button {
	padding: 14px 40px;
	background: #5e3101;
	color: #fff;
	border: 2px solid #5e3101;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
}
.ct-submit button:hover {
	background: #7b4512;
	border-color: #7b4512;
}
.ct-submit button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.ct-success {
	padding: 20px;
	background: #f0f9f0;
	border: 1px solid #c3e6c3;
	color: #2e7d32;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 20px;
}
.ct-success i {
	margin-right: 8px;
}
.ct-error {
	padding: 20px;
	background: #fdf0f0;
	border: 1px solid #e6c3c3;
	color: #c62828;
	font-size: 15px;
	font-weight: 600;
	margin-top: 15px;
}
.ct-error i {
	margin-right: 8px;
}
.ct-wa-fallback a {
	color: #25D366 !important;
	font-weight: 600;
	text-decoration: none !important;
	font-size: 15px;
}
@media screen and (max-width: 767px) {
	.ct-layout {
		flex-direction: column;
		gap: 30px;
	}
	.ct-info {
		flex: none;
		display: flex;
		flex-wrap: wrap;
		gap: 0;
	}
	.ct-info-item {
		flex: 0 0 50%;
		margin-bottom: 20px;
	}
	.ct-field-row {
		flex-direction: column;
	}
	.ct-submit button {
		width: 100%;
	}
}

/* --- CATALOG HEADER --- */
.cat-header {
	text-align: center;
	padding: 40px 20px 30px;
	max-width: 700px;
	margin: 0 auto;
}
.cat-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: #b5a078;
	margin-bottom: 10px;
}
.cat-header h1 {
	font-size: 32px;
	font-weight: 600;
	color: #222 !important;
	margin: 0 0 12px 0;
}
.cat-header p {
	font-size: 16px;
	color: #888;
	margin: 0 auto;
	line-height: 1.5;
	text-align: center !important;
}
.cat-search {
	position: relative;
	max-width: 400px;
	margin: 25px auto 0;
}
.cat-search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	color: #999;
	pointer-events: none;
}
.cat-search input[type="text"] {
	width: 100% !important;
	padding: 14px 20px 14px 45px !important;
	border: 1px solid #ddd !important;
	border-radius: 30px !important;
	background: #fafafa !important;
	font-size: 18px !important;
	font-family: inherit !important;
	color: #333 !important;
	outline: none;
	margin-bottom: 0 !important;
	box-sizing: border-box !important;
	transition: border-color 0.3s ease, background 0.3s ease;
}
.cat-search input[type="text"]:focus {
	background: #fff !important;
	border-color: #b5a078 !important;
}
.cat-back {
	display: inline-block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #b5a078 !important;
	text-decoration: none !important;
	margin-bottom: 15px;
	transition: color 0.3s ease;
}
.cat-back:hover {
	color: #5e3101 !important;
}
.cat-back i {
	margin-right: 6px;
	font-size: 11px;
}

/* --- FAMILY CARDS (catalog landing) --- */
.family-card {
	padding: 4px !important;
	margin-bottom: 0;
}
.family-card-link {
	text-decoration: none !important;
	display: block;
}
.family-card-inner {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	height: 280px;
}
.family-card-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
	filter: brightness(0.85);
}
.family-card-inner:hover .family-card-img {
	transform: scale(1.05);
	filter: brightness(0.7);
}
.family-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.65);
	padding: 14px 20px;
}
.family-card-overlay h2 {
	color: #fff !important;
	font-size: 14px;
	margin: 0;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
}

/* --- PRODUCT CARDS (product listing) --- */
.product-card {
	padding: 8px !important;
	margin-bottom: 0;
	flex: 0 0 33.333%;
	max-width: 33.333%;
}
.product-card-link {
	text-decoration: none !important;
	color: inherit !important;
	display: flex;
	flex: 1;
	width: 100%;
}
.product-card-inner {
	background: #fff;
	border-radius: 0;
	overflow: hidden;
	border: 1px solid #e0dbd5;
	transition: border-color 0.3s ease;
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
}
.product-card-inner:hover {
	border-color: #5e3101;
}
.product-card .content:hover,
.product-card.node .content:hover {
	background-color: transparent !important;
	background-image: none !important;
}
.product-card.node .content:hover h2 {
	color: inherit !important;
}
.product-card-img {
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
	background-color: #f5f5f5;
	transition: opacity 0.3s ease;
}
.product-card-inner:hover .product-card-img {
	opacity: 0.85;
}
.product-card-info {
	padding: 12px 15px 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.product-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
	line-height: 1.3;
	min-height: 36px;
}
.stock-available {
	color: #2e7d32;
	font-size: 14px;
	font-weight: 600;
}
.stock-sold {
	color: #c62828;
	font-size: 14px;
	font-weight: 600;
}
.product-card-status {
	flex: 1;
}
.product-card-ref {
	font-size: 13px;
	font-weight: 400;
	color: #999;
	letter-spacing: 1px;
}
.product-card-more {
	font-size: 13px;
	color: #5e3101;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
.product-card-inner:hover .product-card-more {
	color: #5e3101;
}

/* --- PRODUCT DETAIL VIEW --- */
.product-detail {
	padding: 20px 0 40px;
}
.product-detail-img {
	text-align: center;
	padding: 0 20px !important;
}
.product-detail-img img {
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 0;
}
.product-detail-lightbox {
	display: block;
	cursor: zoom-in;
}
.product-detail-noimg {
	background: #f5f5f5;
	padding: 60px 20px;
	text-align: center;
	color: #999;
	border-radius: 6px;
}
.product-detail-info {
	padding: 10px 30px !important;
}
.product-detail-title {
	font-size: 32px;
	color: #222;
	margin: 0 0 5px 0;
	line-height: 1.2;
	font-weight: 600;
}
.product-detail-ref {
	font-size: 14px;
	color: #999;
	display: block;
	margin-bottom: 25px;
}
.product-detail-description {
	font-size: 20px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 25px;
	padding-bottom: 25px;
	border-bottom: 1px solid #eee;
}
.product-detail-description p,.product-detail-description span {
	font-size: 20px !important;
	line-height: 1.7 !important;
}
.product-detail-stock {
	margin-bottom: 25px;
	font-size: 16px;
}
.product-detail-stock .stock-available {
	font-size: 16px;
}
.product-detail-stock .stock-available i {
	margin-right: 5px;
}
.product-detail-stock .stock-sold {
	font-size: 16px;
}
.product-detail-stock .stock-sold i {
	margin-right: 5px;
}
.product-detail-actions {
	display: flex;
	gap: 12px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.btn-contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: #fff;
	color: #5e3101 !important;
	text-decoration: none !important;
	border: 2px solid #5e3101;
	border-radius: 0;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}
.btn-contact:hover {
	background: #5e3101;
	color: #fff !important;
}
.btn-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: #25D366;
	color: #fff !important;
	text-decoration: none !important;
	border: 2px solid #25D366;
	border-radius: 0;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}
.btn-whatsapp:hover {
	background: #1da855;
	border-color: #1da855;
	color: #fff !important;
}
.product-detail-back {
	display: inline-block;
	color: #5e3101 !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 0;
	margin-top: 10px;
	border-bottom: 1px solid #5e3101;
	transition: color 0.3s ease, border-color 0.3s ease;
}
.product-detail-back:hover {
	color: #000 !important;
	border-color: #000;
}
.product-detail-back i {
	margin-right: 5px;
}

/* --- CATALOG BROWSER override --- */
.node .content:hover {
	background-color: transparent !important;
	background-image: none !important;
	background-blend-mode: normal !important;
}
.node .content:hover h2 {
	color: #fff !important;
}
.catalog_browser {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -4px;
}

/* --- PRODUCT GRID --- */
.product-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
	align-items: stretch;
}
.product-grid .product-card {
	display: flex;
}

/* --- SERVICES PAGE --- */
div.page {
	max-width: 1266px;
	margin-left: auto !important;
	margin-right: auto !important;
}
body.serveis div#serveis,
body.compra-d-or-i-plata div#compra-or {
	padding-top: 300px !important;
}
.sv-section {
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 0;
}
.sv-row {
	display: flex;
	gap: 0;
	border-top: 1px solid #e0dbd5;
}
.sv-row-2 {
	max-width: 800px;
	margin: 0 auto;
}
.sv-item {
	flex: 1;
	padding: 40px 30px;
	border-right: 1px solid #e0dbd5;
	border-bottom: 1px solid #e0dbd5;
}
.sv-item:last-child {
	border-right: none;
}
.sv-number {
	font-size: 28px;
	color: #b5a078;
	margin-bottom: 15px;
}
.sv-item h3 {
	font-size: 18px;
	font-weight: 600;
	color: #222;
	margin: 0 0 12px 0;
	line-height: 1.3;
}
.sv-item p {
	font-size: 15px;
	color: #777;
	margin: 0 0 4px 0;
	line-height: 1.5;
}
.sv-divider {
	display: none;
}
.sv-highlights {
	text-align: center;
	margin: 50px auto;
	padding: 30px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #5e3101;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.sv-highlights i {
	font-size: 12px;
	margin-right: 6px;
	color: #b5a078;
}
.sv-hl-sep {
	margin: 0 25px;
	color: #ccc;
}
.sv-contact {
	text-align: center;
	max-width: 900px;
	margin: 0 auto 60px;
	padding: 50px 20px 0;
	border-top: 1px solid #e0dbd5;
}
.sv-contact h2 {
	font-size: 24px;
	color: #222 !important;
	margin-bottom: 10px;
	font-weight: 600;
}
.sv-contact > p {
	font-size: 16px;
	color: #777;
	margin-bottom: 40px;
}
.sv-contact-methods {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
	flex-wrap: wrap;
}
.sv-method {
	text-align: center;
	flex: 1 1 0;
	padding: 10px 20px;
}
.sv-method i {
	display: block;
	font-size: 20px;
	color: #b5a078;
	margin-bottom: 10px;
}
.sv-method strong {
	display: block;
	font-size: 14px;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 5px;
}
.sv-method a {
	font-size: 14px;
	color: #5e3101 !important;
	text-decoration: underline !important;
}
.sv-contact-cta {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}
@media screen and (max-width: 767px) {
	.sv-row, .sv-row-2 {
		flex-direction: column;
	}
	.sv-item {
		border-right: none;
		padding: 30px 20px;
	}
	.sv-highlights span {
		display: block;
		margin: 8px 0;
	}
	.sv-hl-sep {
		display: none;
	}
	.sv-contact-methods {
		gap: 30px;
	}
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 767px) {
	body.cataleg div.page,
	body.cataleg-de-joies div.page {
		padding: 0 10px;
	}
	.cat-header h1 {
		font-size: 24px;
	}
	.family-card-inner {
		height: 180px;
	}
	.family-card-overlay h2 {
		font-size: 12px;
		letter-spacing: 1.5px;
	}
	.product-card-img {
		height: 160px;
	}
	.product-card-title {
		font-size: 13px;
		min-height: 28px;
	}
	.product-card {
		padding: 4px !important;
		flex: 0 0 50%;
		max-width: 50%;
	}
	.product-detail-img {
		margin-bottom: 20px;
	}
	.product-detail-title {
		font-size: 22px;
	}
	.product-detail-info {
		padding: 0 15px !important;
	}
	.product-detail-actions {
		flex-direction: column;
	}
	.btn-contact, .btn-whatsapp {
		justify-content: center;
		width: 100%;
	}
}

/* --- RESPONSIVE TABLET --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.family-card-inner {
		height: 180px;
	}
	.product-card-img {
		height: 170px;
	}
}

/* --- FOOTER --- */
.footer {
	line-height: 2.2;
	padding: 50px 10px 60px !important;
}
.footer h4 {
	margin-bottom: 15px;
}
.footer a {
	line-height: 2.2;
}

header.normal {
	border-bottom: none !important;
}
header .head {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
}
#menu_desktop {
	text-align: right !important;
}
#menu_desktop ul.menu {
	float: right !important;
}

/* --- MENU HOVER --- */
ul.menu li:hover a {
	font-weight: normal !important;
	text-decoration: none !important;
}
#menu_desktop li.item a span {
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s ease;
}
#menu_desktop li.item a:hover span,
#menu_desktop li.item.selected a span {
	border-bottom: 2px solid #5e3101;
	font-weight: normal !important;
}
header.invert #menu_desktop li.item a:hover span,
header.invert #menu_desktop li.item.selected a span {
	border-bottom-color: #fff;
}

/* --- MOBILE MENU --- */
div#menu_mobile {
	top: 15px !important;
	right: 10px !important;
	padding: 12px 15px;
	z-index: 200 !important;
	position: fixed !important;
}
div#menu_mobile .navbar-toggle {
	padding: 8px;
	margin: 0;
	border: none !important;
	background: transparent !important;
}
div#menu_mobile .icon-bar {
	width: 24px !important;
	height: 2px !important;
	background-color: #000 !important;
	transition: all 0.3s ease;
}
div#menu_mobile .navbar-toggle .icon-bar + .icon-bar {
	margin-top: 5px !important;
}
.sidebar {
	z-index: 300 !important;
	width: 0;
	padding-top: 80px !important;
	background-color: #111 !important;
}
.sidebar a {
	padding: 12px 25px 12px 30px !important;
	font-size: 16px !important;
	color: #ccc !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar a:hover {
	color: #fff !important;
	background: rgba(255,255,255,0.05) !important;
}
.sidebar .closebtn {
	top: 15px !important;
	right: 20px !important;
	font-size: 32px !important;
	color: #999 !important;
}
.sidebar .closebtn:hover {
	color: #fff !important;
}

/* --- Touch targets mínims --- */
.family-card-link,
.product-card-link,
.btn-contact,
.btn-whatsapp,
.product-detail-back {
	min-height: 44px;
}

/* --- Footer social links spacing for mobile --- */
@media screen and (max-width: 767px) {
	.footer a {
		display: inline-block;
		padding: 6px 0;
		min-height: 44px;
		line-height: 32px;
	}
	.top .social_buttons li a {
		padding: 8px;
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}
