/*
Theme Name: ChipiPhone New
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.chipiphone-results-separator {
	position: relative;
	height: 0;
	margin: 18px 0 14px;
	border-top: 3px solid #9a9a9a;
	border-bottom: 1px solid #f6f6f6;
}

.chipiphone-pages-found-results {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.chipiphone-pages-found-results ul.products {
	margin-top: 2px !important;
}

.chipiphone-pages-found-results ul.products li.product {
	padding-bottom: 6px !important;
	max-width: 180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.chipiphone-pages-found-title {
	display: inline-block;
	padding: 6px 12px;
	border: 0;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 10px;
	letter-spacing: 0.08em;
}

.chipiphone-pages-found-results .products .product-small {
	border-top: 2px dashed #bdbdbd;
	padding-top: 8px;
	margin-top: 6px;
	max-width: 180px;
	margin-left: auto;
	margin-right: auto;
}

.chipiphone-pages-found-results .products .product-small .box-image {
	max-width: 110px;
	margin-left: auto;
	margin-right: auto;
}

.chipiphone-pages-found-results .products .product-small .box-image img {
	width: 110px;
	height: 110px;
	max-width: 110px;
	object-fit: cover;
}

.chipiphone-pages-found-results ul.products li.product .box-image {
	max-width: 110px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.chipiphone-pages-found-results ul.products li.product .box-image img {
	width: 110px !important;
	height: 110px !important;
	max-width: 110px !important;
	object-fit: cover !important;
}

.chipiphone-pages-found-results ul.products li.product .box-text {
	font-size: 0.82em !important;
	line-height: 1.2 !important;
}

.chipiphone-pages-found-results ul.products li.product .name,
.chipiphone-pages-found-results ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.84em !important;
	line-height: 1.2 !important;
}

.chipiphone-pages-found-results ul.products li.product .price {
	font-size: 0.86em !important;
}

.chipiphone-pages-found-results .products .product-small .box-text {
	font-size: 0.92em;
}

.chipiphone-pages-found-results .products .product-small .price {
	font-size: 0.95em;
}

.chipiphone-sales-home {
	--chipi-ink: #0f1720;
	--chipi-muted: #5a6670;
	--chipi-card: #ffffff;
	--chipi-border: #d8e2ea;
	--chipi-primary: #0f766e;
	--chipi-primary-dark: #0a4f4a;
	--chipi-accent: #ff8a00;
	--chipi-shadow: 0 16px 38px rgba(16, 36, 48, 0.1);
	font-family: "Manrope", "Sora", "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 32%),
		radial-gradient(circle at 8% 4%, rgba(255, 138, 0, 0.1), transparent 25%),
		linear-gradient(180deg, #f4f8fb 0%, #ffffff 38%, #eff3f6 100%);
	padding-bottom: 0;
}

.chipiphone-sales-hero {
	padding: 56px 0 24px;
}

.chipiphone-sales-hero__content,
.chipiphone-sales-hero__panel,
.chipiphone-category-card,
.chipiphone-product-card,
.chipiphone-benefit-card {
	border-radius: 24px;
	box-shadow: 0 18px 40px rgba(24, 33, 37, 0.08);
}

.chipiphone-sales-hero__content {
	padding: 34px;
	background: linear-gradient(135deg, #111111 0%, #2a2f32 100%);
	color: #fff;
	min-height: 100%;
}

.chipiphone-sales-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #ffe1b0;
	color: #6c3d00;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chipiphone-sales-hero h1,
.chipiphone-section-heading h2 {
	font-size: clamp(2rem, 3.7vw, 3.8rem);
	line-height: 1.02;
	margin-bottom: 18px;
}

.chipiphone-sales-hero p {
	font-size: 1.12rem;
	max-width: 42rem;
	margin-bottom: 24px;
	color: rgba(255, 255, 255, 0.86);
}

.chipiphone-sales-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.chipiphone-sales-hero__panel {
	padding: 26px;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(10px);
	height: 100%;
	border: 1px solid rgba(17, 17, 17, 0.06);
}

.chipiphone-sales-stat + .chipiphone-sales-stat {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.chipiphone-sales-stat strong,
.chipiphone-benefit-card strong {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 6px;
	color: #131313;
}

.chipiphone-section-heading {
	margin-bottom: 22px;
	text-align: center;
}

.chipiphone-category-grid,
.chipiphone-product-grid {
	justify-content: center;
	row-gap: 18px;
}

.chipiphone-product-section {
	display: block !important;
	width: 100%;
}

.chipiphone-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-content: start;
	overflow: visible;
	gap: 10px;
	align-items: stretch;
	padding-bottom: 0;
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	flex: 0 0 100%;
	max-width: 100%;
}

.chipiphone-product-col {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.chipiphone-product-section.section {
	max-width: 100% !important;
}

.chipiphone-sales-home.page-wrapper {
	max-width: 100% !important;
	padding-left: 20px;
	padding-right: 20px;
}

.chipiphone-product-section__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 4px;
	text-align: left;
	width: 100%;
	margin-bottom: 4px;
	flex: 0 0 100%;
	max-width: 100%;
}

.chipiphone-category-grid > .col,
.chipiphone-product-grid > .col {
	display: flex;
}

.chipiphone-category-grid > .col,
.chipiphone-product-grid > .chipiphone-product-col {
	min-width: 0;
}

.chipiphone-category-card {
	display: block;
	display: flex;
	flex-direction: column;
	background: var(--chipi-card);
	padding: 28px 22px;
	width: 100%;
	height: 100%;
	border: 1px solid var(--chipi-border);
	box-shadow: var(--chipi-shadow);
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.chipiphone-category-card:hover,
.chipiphone-product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 50px rgba(12, 30, 40, 0.18);
	border-color: #b8c9d4;
}

.chipiphone-category-card__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eaf7f5;
	color: var(--chipi-primary-dark);
}

.chipiphone-category-card h3 {
	font-size: 1.16rem;
	line-height: 1.22;
	margin-bottom: 14px;
	min-height: auto;
	color: var(--chipi-ink);
	text-align: center;
	font-weight: 700;
}

.chipiphone-category-card p,
.chipiphone-benefit-card p {
	color: #5e666a;
	margin-bottom: 0;
}

.chipiphone-category-card__count {
	display: block;
	margin-top: auto;
	text-align: center;
	color: var(--chipi-primary-dark);
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.chipiphone-product-section {
	padding-top: 10px;
	padding-bottom: 12px;
}

.chipiphone-product-section__title {
	margin: 0;
	font-size: clamp(1.38rem, 2.25vw, 1.88rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--chipi-ink);
	font-weight: 800;
}

.chipiphone-category-btn {
	min-width: 0;
	text-align: center;
	border-radius: 999px;
	border-width: 2px;
	border-color: var(--chipi-primary) !important;
	color: var(--chipi-primary) !important;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 0.42em 1em;
	line-height: 1.1;
	margin: 0;
}

.chipiphone-category-btn:hover {
	background: var(--chipi-primary) !important;
	color: #ffffff !important;
}

.chipiphone-product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--chipi-card);
	border: 1px solid var(--chipi-border);
	box-shadow: var(--chipi-shadow);
	height: 100%;
}

.chipiphone-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 18px;
	background: linear-gradient(180deg, #f7fbfe 0%, #ecf4fa 100%);
}

.chipiphone-product-card__image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.chipiphone-product-card__placeholder {
	color: #667075;
	font-weight: 600;
}

.chipiphone-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.chipiphone-product-card__body h3 {
	font-size: 1rem;
	line-height: 1.38;
	margin-bottom: 10px;
	min-height: 2.7em;
}

.chipiphone-product-card__body h3 a {
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.chipiphone-product-card__body h3 a {
	color: var(--chipi-ink);
}

.chipiphone-product-card__price {
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--chipi-accent);
	margin-bottom: 14px;
}

.chipiphone-product-card__btn {
	width: 100%;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding-left: 12px;
	padding-right: 12px;
	white-space: nowrap;
	background: linear-gradient(135deg, var(--chipi-primary) 0%, var(--chipi-primary-dark) 100%) !important;
	border: 0 !important;
	color: #fff !important;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.chipiphone-product-card__btn:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
}

.chipiphone-sales-benefits {
	margin-top: 18px;
	padding: 46px 0 58px;
	background: linear-gradient(135deg, #161819 0%, #22272a 100%);
}

.chipiphone-sales-benefits .chipiphone-section-heading h2,
.chipiphone-sales-benefits .chipiphone-section-heading .chipiphone-sales-eyebrow {
	color: #fff;
}

.chipiphone-sales-benefits .chipiphone-sales-eyebrow {
	background: rgba(255, 225, 176, 0.18);
	color: #ffe1b0;
}

.chipiphone-benefit-card {
	padding: 24px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	height: 100%;
}

.chipiphone-benefit-card strong,
.chipiphone-benefit-card p {
	color: #fff;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.chipiphone-product-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.chipiphone-sales-hero {
		padding-top: 34px;
	}

	.chipiphone-sales-hero__content,
	.chipiphone-sales-hero__panel,
	.chipiphone-category-card,
	.chipiphone-product-card,
	.chipiphone-benefit-card {
		border-radius: 18px;
	}

	.chipiphone-sales-hero h1,
	.chipiphone-section-heading h2 {
		font-size: clamp(1.8rem, 7vw, 2.6rem);
	}

	.chipiphone-sales-hero__content,
	.chipiphone-sales-hero__panel {
		padding: 22px;
	}

	.chipiphone-section-heading {
		text-align: center;
	}

	.chipiphone-sales-hero__actions .button {
		width: 100%;
	}

	.chipiphone-category-btn {
		width: 100%;
		min-width: 0;
	}

	.chipiphone-product-section__head {
		margin-bottom: 2px;
	}

	.chipiphone-product-section__title {
		font-size: 1.2rem;
	}

	.chipiphone-pages-found-results .products .product-small .box-image {
		max-width: 72px;
	}

	.chipiphone-pages-found-results .products .product-small .box-image img {
		width: 72px;
		height: 72px;
		max-width: 72px;
	}

	.chipiphone-pages-found-results .products .product-small {
		max-width: 146px;
	}

	.chipiphone-pages-found-results ul.products li.product .box-image {
		max-width: 72px !important;
	}

	.chipiphone-pages-found-results ul.products li.product .box-image img {
		width: 72px !important;
		height: 72px !important;
		max-width: 72px !important;
	}

	.chipiphone-pages-found-results ul.products li.product {
		max-width: 146px !important;
	}


}

/* Product variation cards: Color / GB / Estado / Bateria */
.single-product form.variations_form .chipi-variation-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
}

.single-product form.variations_form .variations tr {
	display: grid;
	gap: 10px;
	margin-bottom: 18px;
	padding: 14px;
	background: #f8fbfd;
	border: 1px solid #d6e2ec;
	border-radius: 16px;
}

.single-product form.variations_form .variations tr.chipi-variation-row-hidden {
	display: none !important;
}

.single-product .chipi-condition-below-buy-host {
	margin-top: 14px;
	margin-bottom: 50px;
}

.single-product .chipi-condition-below-buy {
	display: grid;
	gap: 10px;
	padding: 14px;
	background: #f8fbfd;
	border: 1px solid #d6e2ec;
	border-radius: 16px;
}

.single-product .chipi-condition-below-buy__label {
	margin: 0;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
	color: #334155;
}

.single-product form.variations_form .variations td,
.single-product form.variations_form .variations th {
	display: block;
	width: 100%;
	padding: 0;
}

.single-product form.variations_form .variations .label label {
	margin: 0;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
	color: #334155;
}

.single-product form.variations_form .chipi-variation-row-enhanced .value > .variable-items-wrapper,
.single-product form.variations_form .chipi-variation-row-enhanced .value > .woo-variation-swatches,
.single-product form.variations_form .chipi-variation-row-enhanced .value > .woo-variation-items-wrapper,
.single-product form.variations_form .chipi-variation-row-enhanced .value > .swatch-wrapper,
.single-product form.variations_form .chipi-variation-row-enhanced .woo-selected-variation-item-name {
	display: none !important;
}

.single-product .chipi-variation-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 50px;
}

.single-product .chipi-variation-card {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 13px;
	min-height: 40px;
	border-radius: 12px;
	border: 1px solid #c7d6e3;
	background: #ffffff;
	color: #102334;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1;
	transition: all 0.18s ease;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 32, 0.05);
}

.single-product .chipi-variation-card:hover {
	transform: translateY(-1px);
	border-color: #8fb0cb;
	box-shadow: 0 8px 18px rgba(15, 23, 32, 0.12);
}

.single-product .chipi-variation-card.is-selected {
	background: linear-gradient(140deg, #0f1720, #233241);
	border-color: #0f1720;
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(9, 14, 19, 0.28);
}

.single-product .chipi-variation-card.is-disabled {
	opacity: 0.38;
	filter: grayscale(100%);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.single-product .chipi-clear-link {
	display: inline-block;
	margin-top: 8px;
	margin-left: 0;
	color: #2f4f69;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.single-product .chipi-clear-link:hover,
.single-product .chipi-clear-link:focus {
	color: #1f3649;
}

.single-product .chipi-variation-cards--capacity .chipi-variation-card,
.single-product .chipi-variation-cards--condition .chipi-variation-card,
.single-product .chipi-variation-cards--battery .chipi-variation-card {
	min-width: 106px;
}

.single-product .chipi-color-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(15, 23, 32, 0.25);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
	flex: 0 0 14px;
}

.single-product .chipi-variation-card.is-selected .chipi-color-swatch {
	border-color: rgba(255, 255, 255, 0.75);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.single-product .chipi-condition-preview {
	margin-top: 22px;
	padding: 16px;
	background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
	border: 1px solid #d6e2ec;
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(15, 23, 32, 0.08);
}

.single-product .chipi-condition-preview__title {
	display: none;
}

.single-product .chipi-condition-preview__title::before {
	content: none;
}

.single-product .chipi-condition-preview__image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 12px 12px;
	background: #ffffff;
	border-radius: 16px;
	min-height: 400px;
}

.single-product .chipi-condition-preview__placeholder {
	position: absolute;
	top: 14px;
	right: 14px;
	left: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	text-align: right;
	font-size: 0.86rem;
	font-weight: 700;
	color: #243444;
	z-index: 2;
	pointer-events: none;
}

.single-product .chipi-condition-preview__placeholder-title {
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 246, 232, 0.96);
	border: 1px solid #e8cc9f;
	box-shadow: 0 6px 16px rgba(81, 54, 25, 0.16);
	color: #7b4b1f;
	font-size: 0.95rem;
	line-height: 1.1;
	white-space: nowrap;
}

.single-product .chipi-condition-preview__placeholder-list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.single-product .chipi-condition-preview__placeholder-item {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(245, 249, 253, 0.94);
	border: 1px solid #cddbe8;
	box-shadow: 0 4px 11px rgba(24, 36, 51, 0.14);
	color: #334455;
	line-height: 1;
	white-space: nowrap;
}

.single-product .chipi-condition-preview__placeholder-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #f2f6fa;
	border: 1px solid #c6d6e5;
	font-size: 0.72rem;
	font-weight: 700;
	color: #506173;
}

.single-product .chipi-condition-preview__image {
	display: block;
	width: 100%;
	max-width: 640px;
	height: clamp(320px, 46vw, 560px);
	max-height: 560px;
	object-fit: contain;
}

.single-product .chipi-condition-preview__caption {
	display: none;
}

.single-product .chipi-condition-preview__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.single-product .chipi-condition-preview__thumb {
	appearance: none;
	padding: 0;
	border: 1px solid #c7d6e3;
	background: #ffffff;
	border-radius: 10px;
	width: 58px;
	height: 58px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 32, 0.05);
}

.single-product .chipi-condition-preview__thumb.is-active {
	border-color: #0f1720;
	box-shadow: 0 0 0 2px rgba(15, 23, 32, 0.12);
}

.single-product .chipi-condition-preview__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-product .chipi-condition-preview__caption:empty::before {
	content: none;
}

@media (max-width: 849px) {
	.single-product form.variations_form .variations tr {
		padding: 12px;
		border-radius: 14px;
	}

	.single-product .chipi-condition-below-buy {
		padding: 12px;
		border-radius: 14px;
	}

	.single-product .chipi-variation-card {
		font-size: 0.88rem;
		padding: 8px 11px;
		min-height: 38px;
	}

	.single-product .chipi-variation-cards--capacity .chipi-variation-card,
	.single-product .chipi-variation-cards--condition .chipi-variation-card,
	.single-product .chipi-variation-cards--battery .chipi-variation-card {
		min-width: 94px;
	}

	.single-product .chipi-condition-preview {
		margin-top: 14px;
		padding: 14px;
	}

	.single-product .chipi-condition-preview__image-wrap {
		min-height: 260px;
	}

	.single-product .chipi-condition-preview__image {
		height: clamp(220px, 65vw, 340px);
		max-height: 340px;
	}

	.single-product .chipi-condition-preview__thumb {
		width: 52px;
		height: 52px;
	}
}
/* ===================================================
/* PRODUCT PAGE: gallery column width + section spacing
   =================================================== */

/* Keep product gallery width closer to default WooCommerce layout (~40%) */
@media only screen and (min-width: 850px) {
	.single-product .product-gallery {
		flex-basis: 40% !important;
		max-width: 40% !important;
	}
}

/* Add clear gap between gallery column and info column */
.single-product .product-main .row {
	column-gap: 40px;
}

/* Divider + breathing room before product meta (reference, category, tags, sharing) */
.single-product .product_meta {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e2edf5;
}

/* Spacing before social share row */
.single-product .woocommerce-social-share {
	margin-top: 16px;
}

@media only screen and (min-width: 48.01em) and (max-width: 74.99em) {
	.chipiphone-product-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media only screen and (min-width: 75em) {
	.chipiphone-product-grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	.chipiphone-product-card__body {
		padding: 12px;
	}

	.chipiphone-product-card__body h3 {
		font-size: 0.9rem;
		line-height: 1.28;
		min-height: 2.4em;
	}

	.chipiphone-product-card__price {
		font-size: 1rem;
		margin-bottom: 10px;
	}

	.chipiphone-product-card__btn {
		min-height: 36px;
		font-size: 0.86rem;
		padding-left: 8px;
		padding-right: 8px;
	}
}