/* ==========================================================================
   BTS Core - Product Cards Grid Styles
   ========================================================================== */

.bts-products-wrapper {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	box-sizing: border-box;
}

.bts-products-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	width: 100%;
	box-sizing: border-box;
}

/* Individual Product Card */
.bts-product-card {
	background-color: transparent;
	border: 1.5px solid #ebdccb;
	border-radius: 16px;
	padding: 22px 24px;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
	position: relative;
	transform: none !important;
}

.bts-product-card:hover {
	border-color: #ebdccb;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
	transform: none !important;
}

/* Thumbnail Column (Left) */
.bts-products-wrapper .bts-product-card__thumb-col {
	flex: 0 0 38% !important;
	max-width: 38% !important;
	min-width: 130px !important;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
	border-radius: 14px !important;
}

.bts-product-card__img {
	border-radius: 14px !important;
	width: 100%;
	object-fit: cover;
	display: block;
	transform: none !important;
}

.bts-product-card:hover .bts-product-card__img {
	transform: none !important;
}

/* Content Column (Right) */
.bts-product-card__content-col {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 4px 0;
	min-width: 0;
}

.bts-product-card__header-info {
	margin-bottom: 16px;
}

.bts-product-card__title {
	font-family: "Times New Roman", Times, serif !important;
	font-size: 22px;
	font-weight: 700;
	color: #0f1c2e;
	margin: 0 0 10px 0;
	line-height: 1.3;
	letter-spacing: -0.3px;
}

.bts-product-card__price {
	font-family: "Times New Roman", Times, serif !important;
	font-size: 26px;
	font-weight: 700;
	color: #b77123;
	line-height: 1.1;
	margin: 0 0 12px 0;
	letter-spacing: -0.5px;
}

.bts-product-card__desc {
	font-size: 13.5px;
	color: #4b5563;
	line-height: 1.5;
	margin: 0;
}

/* Action Row: Quantity + Buy Button */
.bts-products-wrapper .bts-product-card__action-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 12px !important;
	margin-top: auto !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.bts-products-wrapper .bts-product-card__quantity-group {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bts-products-wrapper .bts-product-card__quantity-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
	line-height: 1.4;
	margin: 0;
	white-space: nowrap;
}

/* Quantity Controls - Fixed 105px width */
.bts-products-wrapper .bts-qty-control {
	display: inline-flex !important;
	flex-direction: row !important;
	flex: 0 0 105px !important;
	width: 105px !important;
	min-width: 105px !important;
	max-width: 105px !important;
	height: 42px !important;
	border: 1.5px solid #dcd3c5 !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.bts-products-wrapper .bts-qty-btn {
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 100% !important;
	border: none !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #4b5563 !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	transition: background-color 0.2s, color 0.2s;
	user-select: none;
}

.bts-products-wrapper .bts-qty-btn:hover {
	background-color: #f5ede1 !important;
	color: #b77123 !important;
}

.bts-products-wrapper .bts-qty-input {
	width: 41px !important;
	min-width: 41px !important;
	max-width: 41px !important;
	flex: 0 0 41px !important;
	height: 100% !important;
	border: none !important;
	background: transparent !important;
	background-color: transparent !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	line-height: 42px !important;
	-moz-appearance: textfield !important;
}

.bts-products-wrapper .bts-qty-input::-webkit-outer-spin-button,
.bts-products-wrapper .bts-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Buy Button - Full styled with high specificity */
.bts-products-wrapper .bts-buy-btn {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 120px !important;
	height: 42px !important;
	line-height: 42px !important;
	background: #c47c2c !important;
	background-color: #c47c2c !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	text-decoration: none !important;
	transition: all 0.25s ease !important;
	box-shadow: 0 2px 6px rgba(196, 124, 44, 0.25) !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
}

.bts-products-wrapper .bts-buy-btn:hover {
	background: #b06b20 !important;
	background-color: #b06b20 !important;
	border: none !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(196, 124, 44, 0.35) !important;
	transform: translateY(-1px) !important;
}

.bts-buy-btn:active {
	transform: translateY(0);
}

/* Button Loading & Success States */
.bts-buy-btn.loading {
	opacity: 0.85;
	pointer-events: none;
}

.bts-buy-btn.added-success {
	background: #10b981 !important;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.bts-btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: btsSpin 0.7s linear infinite;
	display: inline-block;
}

@keyframes btsSpin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 900px) {
	.bts-products-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bts-product-card {
		padding: 20px 22px;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.bts-products-grid {
		grid-template-columns: 1fr !important;
		gap: 18px !important;
	}

	.bts-products-wrapper .bts-product-card {
		flex-direction: column !important;
		align-items: center !important;
		padding: 22px 18px !important;
		border-radius: 16px !important;
		gap: 14px !important;
		box-sizing: border-box !important;
	}

	.bts-products-wrapper .bts-product-card__thumb-col {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: unset !important;
		height: auto !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		margin: 0 auto 16px auto !important;
		border-radius: 14px !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	.bts-products-wrapper .bts-product-card__img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 420px !important;
		object-fit: contain !important;
		border-radius: 14px !important;
		display: block !important;
		margin: 0 auto !important;
	}

	.bts-products-wrapper .bts-product-card__content-col {
		width: 100% !important;
		text-align: center !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: flex-start !important;
		padding: 0 !important;
		flex: 0 0 auto !important;
	}

	.bts-products-wrapper .bts-product-card__header-info {
		margin-bottom: 14px !important;
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		text-align: center !important;
	}

	.bts-products-wrapper .bts-product-card__title {
		font-family: "Times New Roman", Times, serif !important;
		font-size: 24px !important;
		font-weight: 700 !important;
		color: #0f1c2e !important;
		margin: 0 0 6px 0 !important;
		line-height: 1.25 !important;
	}

	.bts-products-wrapper .bts-product-card__price {
		font-family: "Times New Roman", Times, serif !important;
		font-size: 28px !important;
		font-weight: 700 !important;
		color: #b77123 !important;
		line-height: 1.1 !important;
		margin: 0 0 10px 0 !important;
	}

	.bts-products-wrapper .bts-product-card__desc {
		font-size: 14px !important;
		color: #4b5563 !important;
		line-height: 1.45 !important;
		max-width: 320px !important;
		margin: 0 auto !important;
	}

	.bts-products-wrapper .bts-product-card__action-row {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 10px !important;
		margin: 0 auto !important;
		margin-top: 0 !important;
		width: 100% !important;
		max-width: 320px !important;
	}

	.bts-products-wrapper .bts-qty-control {
		flex: 0 0 92px !important;
		width: 92px !important;
		min-width: 92px !important;
		max-width: 92px !important;
		height: 38px !important;
		border-radius: 8px !important;
	}

	.bts-products-wrapper .bts-qty-btn {
		width: 28px !important;
		min-width: 28px !important;
		max-width: 28px !important;
		height: 100% !important;
		font-size: 16px !important;
	}

	.bts-products-wrapper .bts-qty-input {
		width: 36px !important;
		min-width: 36px !important;
		max-width: 36px !important;
		font-size: 14px !important;
		line-height: 38px !important;
	}

	.bts-products-wrapper .bts-buy-btn {
		flex: 1 1 auto !important;
		min-width: 110px !important;
		height: 38px !important;
		line-height: 38px !important;
		font-size: 14px !important;
		padding: 0 16px !important;
		border-radius: 8px !important;
		white-space: nowrap !important;
	}
}


/* ==========================================================================
   MOBILE LAYOUT: SIDE BY SIDE
   ========================================================================== */
@media (max-width: 600px) {
	.bts-products-grid {
		gap: 16px !important;
	}

	.bts-products-wrapper .bts-product-card {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		padding: 16px 12px !important;
		border-radius: 12px !important;
		gap: 16px !important;
		text-align: left !important;
	}

	.bts-products-wrapper .bts-product-card__thumb-col {
		flex: 0 0 42% !important;
		width: 42% !important;
		max-width: 42% !important;
		margin: 0 !important;
		border-radius: 12px !important;
		background: transparent !important;
		padding: 0 !important;
	}

	.bts-products-wrapper .bts-product-card__content-col {
		flex: 1 !important;
		width: auto !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: center !important;
		text-align: left !important;
	}

	.bts-products-wrapper .bts-product-card__img {
		width: 100% !important;
		height: auto !important;
		object-fit: contain !important;
	}

	.bts-products-wrapper .bts-product-card__header-info {
		margin-bottom: 8px !important;
		text-align: left !important;
		width: 100% !important;
	}

	.bts-products-wrapper .bts-product-card__title {
		font-size: 17px !important;
		line-height: 1.3 !important;
		margin: 0 0 6px 0 !important;
		text-align: left !important;
	}

	.bts-products-wrapper .bts-product-card__price {
		font-size: 18px !important;
		margin: 0 0 8px 0 !important;
		text-align: left !important;
	}

	.bts-products-wrapper .bts-product-card__desc {
		display: block !important;
		font-size: 11.5px !important;
		line-height: 1.4 !important;
		margin: 0 0 12px 0 !important;
		color: #4b5563 !important;
		text-align: left !important;
	}

	.bts-products-wrapper .bts-product-card__action-row {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 6px !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.bts-products-wrapper .bts-qty-control {
		flex: 0 0 74px !important;
		width: 74px !important;
		max-width: 74px !important;
		min-width: 74px !important;
		height: 32px !important;
	}

	.bts-products-wrapper .bts-qty-btn {
		width: 22px !important;
		min-width: 22px !important;
		max-width: 22px !important;
		font-size: 14px !important;
	}

	.bts-products-wrapper .bts-qty-input {
		flex: 1 !important;
		width: auto !important;
		max-width: none !important;
		min-width: 20px !important;
		font-size: 13px !important;
		line-height: 32px !important;
		padding: 0 !important;
	}

	.bts-products-wrapper .bts-buy-btn {
		flex: 1 !important;
		height: 32px !important;
		line-height: 32px !important;
		font-size: 11.5px !important;
		padding: 0 6px !important;
		width: 100% !important;
		white-space: nowrap !important;
	}
}

.bts-products-wrapper .bts-product-card__action-row {
	align-items: flex-end !important;
}

@media (min-width: 769px) {
	.bts-products-wrapper .bts-qty-control {
		width: 92px !important;
		min-width: 92px !important;
		max-width: 92px !important;
		height: 36px !important;
	}
	.bts-products-wrapper .bts-qty-btn {
		width: 28px !important;
		min-width: 28px !important;
		max-width: 28px !important;
		font-size: 16px !important;
	}
	.bts-products-wrapper .bts-qty-input {
		flex: 1 !important;
		width: 36px !important;
		min-width: 0 !important;
		max-width: 36px !important;
		font-size: 14px !important;
		line-height: 36px !important;
	}
	.bts-products-wrapper .bts-buy-btn {
		flex: 0 1 auto !important;
		min-width: 0 !important;
		height: 36px !important;
		line-height: 36px !important;
		font-size: 13px !important;
		padding: 0 14px !important;
	}
}

.bts-products-wrapper .bts-product-card > .bts-product-card__action-row {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	align-items: center !important;
}

.bts-products-wrapper .bts-product-card > .bts-product-card__action-row .bts-buy-btn {
	flex: 1 1 auto !important;
}

@media (max-width: 380px) {
	.bts-products-wrapper .bts-product-card {
		padding: 12px 10px !important;
		gap: 12px !important;
	}
	.bts-products-wrapper .bts-product-card__thumb-col {
		flex: 0 0 45% !important;
		width: 45% !important;
		max-width: 45% !important;
	}
	.bts-products-wrapper .bts-product-card__title {
		font-size: 15.5px !important;
	}
	.bts-products-wrapper .bts-product-card__price {
		font-size: 17px !important;
	}
}

/* Mobile: image, content and purchase controls in separate grid rows. */
@media (max-width: 768px) {
	.bts-products-wrapper .bts-product-card {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		align-items: start !important;
		gap: 16px !important;
		padding: 18px !important;
	}
	.bts-products-wrapper .bts-product-card__thumb-col {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		align-items: flex-start !important;
	}
	.bts-products-wrapper .bts-product-card__img {
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 320px !important;
		object-fit: contain !important;
	}
	.bts-products-wrapper .bts-product-card__content-col {
		width: 100% !important;
		min-width: 0;
		align-items: stretch !important;
		text-align: left !important;
	}
	.bts-products-wrapper .bts-product-card__header-info {
		margin: 0 !important;
		align-items: stretch !important;
		text-align: left !important;
	}
	.bts-products-wrapper .bts-product-card__title {
		font-size: 22px !important;
		text-align: left !important;
	}
	.bts-products-wrapper .bts-product-card__meta-info {
		margin-bottom: 0 !important;
	}
	.bts-products-wrapper .bts-product-card > .bts-product-card__action-row {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 10px !important;
	}
	.bts-products-wrapper .bts-product-card__action-row .bts-buy-btn {
		min-width: 0 !important;
		width: 100% !important;
	}
}
