/**
 * Teambull Store frontend styles.
 */

.teambull-shop .teambull-grid {
	display: grid;
	grid-template-columns: repeat(var(--teambull-columns, 3), minmax(0, 1fr));
	gap: 20px;
}

.teambull-shop .teambull-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.teambull-shop .teambull-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #f5f6f7;
}

.teambull-shop .teambull-card__media img,
.teambull-shop .teambull-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.teambull-shop .teambull-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f1f3f5, #e4e7eb);
}

.teambull-shop .teambull-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #b42318;
	color: #fff;
}

.teambull-shop .teambull-card__body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.teambull-shop .teambull-card__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

.teambull-shop .teambull-card__title a {
	color: inherit;
	text-decoration: none;
}

.teambull-shop .teambull-card__stock {
	margin: 0;
	font-size: 13px;
	color: #475467;
}

.teambull-shop .teambull-card__stock.is-in-stock {
	color: #027a48;
}

.teambull-shop .teambull-card__stock.is-out-of-stock {
	color: #b42318;
}

.teambull-shop .teambull-card__price,
.teambull-shop .teambull-product__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.teambull-shop .teambull-price {
	font-size: 18px;
	font-weight: 700;
	color: #101828;
}

.teambull-shop .teambull-price.is-sale {
	color: #b42318;
}

.teambull-shop .teambull-card__price del,
.teambull-shop .teambull-product__price del {
	color: #98a2b3;
	font-size: 14px;
}

.teambull-shop .teambull-button {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
}

.teambull-shop .teambull-button:hover {
	opacity: 0.88;
	color: #fff;
}

.teambull-shop .teambull-button[disabled] {
	background: #e4e7ec;
	color: #98a2b3;
	cursor: not-allowed;
}

.teambull-shop .teambull-button.is-secondary {
	background: #fff;
	color: #111827;
	border: 1px solid #d0d5dd;
}

.teambull-shop .teambull-button.is-small {
	padding: 8px 12px;
	font-size: 13px;
	margin-top: auto;
}

.teambull-shop .teambull-button.is-large {
	padding: 14px 26px;
	font-size: 16px;
}

.teambull-shop .teambull-button.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.teambull-shop .teambull-notice {
	padding: 12px 16px;
	border-radius: 6px;
	border-left: 4px solid #98a2b3;
	background: #f9fafb;
	margin: 16px 0;
}

.teambull-shop .teambull-notice.is-success {
	border-color: #12b76a;
	background: #ecfdf3;
}

.teambull-shop .teambull-notice.is-error {
	border-color: #f04438;
	background: #fef3f2;
}

.teambull-shop .teambull-notice.is-warning {
	border-color: #f79009;
	background: #fffaeb;
}

.teambull-shop .teambull-shop-search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.teambull-shop .teambull-shop-search input,
.teambull-shop .teambull-shop-search select {
	padding: 9px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	min-width: 180px;
}

.teambull-shop .teambull-shop-count {
	color: #475467;
	font-size: 14px;
}

.teambull-shop .teambull-shop-catalog .nav-links,
.teambull-shop .teambull-shop-catalog .page-numbers {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
}

.teambull-shop .teambull-shop-catalog .page-numbers li {
	margin: 0;
}

.teambull-shop .teambull-shop-catalog .page-numbers a,
.teambull-shop .teambull-shop-catalog .page-numbers span {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	text-decoration: none;
}

.teambull-shop .teambull-shop-catalog .page-numbers .current span {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

/* Product detail. */
.teambull-shop .teambull-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.teambull-shop .teambull-product__media {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f5f6f7;
}

.teambull-shop .teambull-product__title {
	margin: 0 0 8px;
	font-size: 24px;
}

.teambull-shop .teambull-product__sku,
.teambull-shop .teambull-product__privacy,
.teambull-shop .teambull-product__incart {
	color: #667085;
	font-size: 14px;
	margin: 4px 0;
}

.teambull-shop .teambull-product__buy {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 20px 0;
}

.teambull-shop .teambull-product__qty {
	width: 90px;
	padding: 10px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

.teambull-shop .teambull-product__gallery {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
}

.teambull-shop .teambull-product__gallery img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
}

/* Cart and checkout tables. */
.teambull-shop .teambull-cart__table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.teambull-shop .teambull-cart__table th,
.teambull-shop .teambull-cart__table td {
	border-bottom: 1px solid #eaecf0;
	padding: 10px 8px;
	text-align: left;
	vertical-align: middle;
}

.teambull-shop .teambull-cart__product {
	display: flex;
	align-items: center;
	gap: 10px;
}

.teambull-shop .teambull-cart__product img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}

.teambull-shop .teambull-cart__product small {
	display: block;
	color: #98a2b3;
}

.teambull-shop .teambull-cart__qty {
	width: 84px;
	padding: 8px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

.teambull-shop .teambull-cart__remove {
	border: 0;
	background: transparent;
	color: #b42318;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.teambull-shop .teambull-cart__totals {
	max-width: 420px;
	margin-left: auto;
}

.teambull-shop .teambull-cart__row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
}

.teambull-shop .teambull-cart__row.is-total {
	border-top: 2px solid #101828;
	margin-top: 6px;
	padding-top: 12px;
	font-weight: 700;
	font-size: 18px;
}

.teambull-shop .teambull-cart__actions {
	margin-top: 16px;
	text-align: right;
}

/* Checkout form. */
.teambull-shop .teambull-checkout__layout {
	max-width: 760px;
}

.teambull-shop .teambull-fieldset {
	border: 1px solid #eaecf0;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 0 0 20px;
}

.teambull-shop .teambull-fieldset legend {
	padding: 0 6px;
	font-weight: 600;
}

.teambull-shop .teambull-field label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 4px;
}

.teambull-shop .teambull-field input[type="text"],
.teambull-shop .teambull-field input[type="tel"],
.teambull-shop .teambull-field input[type="email"],
.teambull-shop .teambull-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

.teambull-shop .teambull-field.has-error input,
.teambull-shop .teambull-field.has-error textarea,
.teambull-shop .teambull-field input.has-error,
.teambull-shop .teambull-field textarea.has-error {
	border-color: #f04438;
}

.teambull-shop .teambull-field__error {
	display: block;
	color: #b42318;
	font-size: 13px;
	margin-top: 4px;
}

.teambull-shop .teambull-field .required {
	color: #b42318;
}

.teambull-shop .teambull-field.is-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.teambull-shop .teambull-checkout__items {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.teambull-shop .teambull-checkout__items li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed #eaecf0;
}

.teambull-shop .teambull-checkout__disclaimer,
.teambull-shop .teambull-checkout__privacy {
	color: #667085;
	font-size: 13px;
}

/* Tracking. */
.teambull-shop .teambull-tracking__form {
	max-width: 460px;
}

.teambull-shop .teambull-tracking__result {
	margin-top: 24px;
}

.teambull-shop .teambull-tracking__history {
	list-style: none;
	padding: 0;
	margin: 0;
}

.teambull-shop .teambull-tracking__history li {
	padding: 8px 0;
	border-bottom: 1px solid #eaecf0;
}

.teambull-shop .teambull-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	background: #f2f4f7;
	color: #344054;
}

.teambull-shop .teambull-badge.is-passed,
.teambull-shop .teambull-badge.is-confirmed,
.teambull-shop .teambull-badge.is-sent,
.teambull-shop .teambull-badge.is-completed {
	background: #ecfdf3;
	color: #027a48;
}

.teambull-shop .teambull-badge.is-processing,
.teambull-shop .teambull-badge.is-pending,
.teambull-shop .teambull-badge.is-new {
	background: #eff8ff;
	color: #175cd3;
}

.teambull-shop .teambull-badge.is-failed,
.teambull-shop .teambull-badge.is-cancelled,
.teambull-shop .teambull-badge.is-expired {
	background: #fef3f2;
	color: #b42318;
}

.teambull-shop .teammub-muted,
.teambull-shop .teambull-muted {
	color: #667085;
	font-size: 13px;
}

@media screen and (max-width: 782px) {
	.teambull-shop .teambull-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.teambull-shop .teambull-product {
		grid-template-columns: minmax(0, 1fr);
	}

	.teambull-shop .teambull-cart__totals {
		max-width: none;
	}
}