/*
 Theme Name:   pthose Child
 Theme URI:    https://pthose.com
 Description:  Divi child theme for pthose – custom layouts and styles
 Author:       pthose
 Author URI:   https://pthose.com
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  pthose-child
*/

/* Add your custom styles below. Parent theme styles are loaded automatically. */

/* Product repeater shortcode – [product_repeater] (two-column, default Divi accordion) */
.pthose-product-repeater-accordion--two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
	row-gap: 28px;
	background: transparent;
	margin: 0;
	padding: 0;
}
.pthose-product-repeater-accordion--two-col .pthose-product-repeater-accordion__col,
.pthose-product-repeater-accordion--two-col .et_pb_accordion {
	background: transparent;
	margin: 0;
	padding: 0;
}
.pthose-product-repeater-accordion--two-col .et_pb_accordion .et_pb_toggle {
	margin-bottom: 28px;
}
.pthose-product-repeater-accordion--two-col .et_pb_accordion .et_pb_toggle:last-child {
	margin-bottom: 0;
}
@media (max-width: 980px) {
	.pthose-product-repeater-accordion--two-col {
		grid-template-columns: 1fr;
	}
}
/* Orange bar: flex row = text left, image right; center items vertically */
.pthose-product-repeater-accordion--two-col .et_pb_toggle {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	min-height: 88px;
	background-color: #B35938 !important;
	background: #B35938 !important;
	padding: 0 !important;
	margin: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}
.pthose-product-repeater-accordion--two-col .et_pb_toggle:last-child {
	margin-bottom: 0;
}
/* Hide Divi accordion open/close icon */
.pthose-product-repeater-accordion--two-col .et_pb_toggle_title::before,
.pthose-product-repeater-accordion--two-col .et_pb_toggle_title::after {
	display: none !important;
}
/* Left block: title + description; generous left padding, small right gap before image */
.pthose-product-repeater-accordion--two-col .pthose-product-repeater__header {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 0.75rem;
	margin-left: 1em !important;
}
.pthose-product-repeater-accordion--two-col .et_pb_toggle_title {
	margin: 0;
	padding: 0;
	color: #fff !important;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	border: none;
	background: none !important;
	cursor: pointer;
}
.pthose-product-repeater-accordion--two-col .et_pb_toggle_content {
	background: transparent !important;
	background-color: transparent !important;
	color: #fff !important;
	padding: 0.5rem 0 0 !important;
	margin: 0;
	border: none;
}
.pthose-product-repeater-accordion--two-col .pthose-product-repeater__description {
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	padding: 0;
	color: #fff !important;
}
.pthose-product-repeater-accordion--two-col .pthose-product-repeater__image--visible {
	flex: 0 0 auto;
	align-self: center;
	position: relative;
	min-width: 150px;
	min-height: 100px;
	width: 150px;
	height: 100px;
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pthose-product-repeater-accordion--two-col .pthose-product-repeater__image--visible img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	display: block !important;
	object-fit: cover !important;
	object-position: center center !important;
}
/* Legacy: image when used outside this layout */
.pthose-product-repeater-accordion--two-col .pthose-product-repeater__image {
	margin-bottom: 0;
	line-height: 0;
}
.pthose-product-repeater-accordion--two-col .pthose-product-repeater__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Legacy grid layout (if used elsewhere) */
.pthose-product-repeater {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pthose-product-repeater__item {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 1rem;
	background: #fff;
}
.pthose-product-repeater__image {
	margin-bottom: 0.75rem;
	line-height: 0;
}
.pthose-product-repeater__image img {
	max-width: 100%;
	height: auto;
	display: block;
}
.pthose-product-repeater__name {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}
.pthose-product-repeater__description {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #444;
}
