/* Goriffee Mango - B2B order form styles */

.goriffee-catalog-wrapper {
	font-family: inherit;
	max-width: 100%;
	margin: 1em 0;
}

.goriffee-catalog-wrapper * {
	box-sizing: border-box;
}

/* === Header === */
.gmc-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e5e0d3;
	flex-wrap: wrap;
}
.gmc-title {
	font-size: 18px;
	font-weight: 700;
	color: #2b1810;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.gmc-counter {
	font-size: 14px;
	color: #6b5838;
	background: #faf7ee;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid #e5e0d3;
}
.gmc-counter span {
	font-weight: 700;
	color: #2b1810;
}

/* === Loading / empty states === */
.gmc-loading,
.gmc-empty,
.gmc-error,
.gmc-empty-rows {
	text-align: center;
	padding: 24px;
	color: #7a6b4a;
	font-style: italic;
	font-size: 14px;
}
.gmc-error { color: #b43; }

/* === Rows container === */
.gmc-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

/* === Single row === */
.gmc-row {
	display: grid;
	grid-template-columns: 1fr auto 40px;
	gap: 10px;
	align-items: center;
	background: #fff;
	border: 1px solid #e5e0d3;
	border-radius: 8px;
	padding: 10px 12px;
	transition: border-color .15s, box-shadow .15s;
}
.gmc-row:hover,
.gmc-row:focus-within {
	border-color: #c4bda8;
	box-shadow: 0 2px 8px rgba(43, 24, 16, .06);
}

/* Product column */
.gmc-col-product { min-width: 0; }

.gmc-search-wrap {
	position: relative;
}

.gmc-search-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d8d2c0;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	color: #2b1810;
	font-family: inherit;
}
.gmc-search-input:focus {
	outline: none;
	border-color: #2b1810;
}

/* === Dropdown === */
.gmc-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #c4bda8;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(43, 24, 16, .12);
	max-height: 320px;
	overflow-y: auto;
	z-index: 100;
}
.gmc-dropdown[hidden] { display: none; }

.gmc-dropdown-cat {
	padding: 8px 12px 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #8a7a56;
	background: #faf7ee;
	border-bottom: 1px solid #ebe5d0;
	position: sticky;
	top: 0;
}
.gmc-dropdown-item {
	padding: 10px 14px;
	cursor: pointer;
	font-size: 14px;
	color: #2b1810;
	border-bottom: 1px solid #f5f1e4;
	transition: background .1s;
}
.gmc-dropdown-item:last-child {
	border-bottom: none;
}
.gmc-dropdown-item:hover,
.gmc-dropdown-item:focus {
	background: #faf7ee;
	outline: none;
}
.gmc-dropdown-empty {
	padding: 14px;
	color: #8a7a56;
	font-style: italic;
	text-align: center;
	font-size: 13px;
}

/* === Quantity column === */
.gmc-col-qty {
	display: flex;
	align-items: center;
	gap: 4px;
}
.gmc-qty-btn {
	width: 32px;
	height: 36px;
	border: 1px solid #c4bda8;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: #2b1810;
	padding: 0;
	line-height: 1;
	transition: background .1s;
}
.gmc-qty-btn:hover { background: #faf7ee; }
.gmc-qty-btn:active { background: #f2ecd9; }

.gmc-qty-input {
	width: 56px;
	height: 36px;
	text-align: center;
	border: 1px solid #c4bda8;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	padding: 0 4px;
	background: #fff;
	color: #2b1810;
	font-family: inherit;
}
.gmc-qty-input::-webkit-outer-spin-button,
.gmc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.gmc-qty-input[type=number] { -moz-appearance: textfield; }
.gmc-qty-input:focus {
	outline: none;
	border-color: #2b1810;
}

/* === Remove button === */
.gmc-col-remove {
	display: flex;
	justify-content: center;
}
.gmc-remove-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	color: #b43;
	cursor: pointer;
	font-size: 18px;
	border-radius: 6px;
	transition: background .1s;
	padding: 0;
}
.gmc-remove-btn:hover {
	background: #fdecec;
}

/* === Add row button === */
.gmc-add-btn {
	width: 100%;
	padding: 14px 20px;
	background: #2b1810;
	color: #fff;
	border: 2px dashed transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: inherit;
}
.gmc-add-btn:hover:not(:disabled) {
	background: #4a2818;
}
.gmc-add-btn:disabled {
	background: #c4bda8;
	cursor: not-allowed;
	opacity: .6;
}
.gmc-add-btn .gmc-plus {
	font-size: 22px;
	font-weight: 700;
	width: 28px;
	height: 28px;
	background: #fff;
	color: #2b1810;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* === Responsive === */
@media (max-width: 600px) {
	.gmc-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.gmc-col-qty {
		justify-content: center;
	}
	.gmc-col-remove {
		justify-content: flex-end;
	}
	.gmc-qty-input { width: 64px; }
	.gmc-qty-btn { width: 40px; }
	.gmc-title { font-size: 16px; }
}
