:root {
	--gt-bg: #f7f6f1;
	--gt-surface: #ffffff;
	--gt-surface-soft: #eef5ef;
	--gt-surface-strong: #dceade;
	--gt-text: #1f2523;
	--gt-muted: #67736d;
	--gt-border: #dce3dd;
	--gt-primary: #006341;
	--gt-primary-dark: #00452e;
	--gt-gold: #c79a3b;
	--gt-low: #c9822f;
	--gt-empty: #b4473c;
	--gt-medium: #d6aa38;
	--gt-high: #27735f;
	--gt-full: #006341;
	--gt-shadow: 0 16px 36px rgba(31, 37, 35, 0.08);
}

body {
	background:
		radial-gradient(circle at top left, rgba(0, 99, 65, 0.09), transparent 28rem),
		var(--gt-bg);
	color: var(--gt-text);
	padding-top: 5rem;
	padding-bottom: 2rem;
}

a {
	color: var(--gt-primary);
}

a:hover {
	color: var(--gt-primary-dark);
}

.navbar {
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(220, 227, 221, 0.85);
	box-shadow: 0 10px 30px rgba(31, 37, 35, 0.08);
}

.navbar.bg-dark {
	background: rgba(0, 69, 46, 0.96)!important;
}

.navbar-brand {
	font-weight: 600;
	letter-spacing: 0.01em;
}

main.container {
	max-width: 1180px;
}

.card {
	border-color: var(--gt-border);
	border-radius: 0.65rem;
	box-shadow: 0 10px 24px rgba(31, 37, 35, 0.055);
}

.btn {
	border-radius: 999px;
}

.btn-primary {
	background-color: var(--gt-primary);
	border-color: var(--gt-primary);
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: var(--gt-primary-dark);
	border-color: var(--gt-primary-dark);
}

.btn-outline-primary {
	color: var(--gt-primary);
	border-color: var(--gt-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
	background-color: var(--gt-primary);
	border-color: var(--gt-primary);
}

.form-control,
.form-select {
	border-color: var(--gt-border);
	border-radius: 0.55rem;
}

.form-control:focus,
.form-select:focus {
	border-color: var(--gt-primary);
	box-shadow: 0 0 0 0.2rem rgba(0, 99, 65, 0.12);
}

.gt-toolbar {
	border: 0;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: var(--gt-shadow);
}

.gt-page-title {
	align-items: flex-end;
	border-bottom: 1px solid var(--gt-border);
	padding-bottom: 0.85rem;
}

.gt-page-kicker {
	color: var(--gt-muted);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gt-stat-card {
	min-height: 9rem;
	overflow: hidden;
	position: relative;
	border: 1px solid var(--gt-border)!important;
	background: var(--gt-surface)!important;
	box-shadow: var(--gt-shadow)!important;
}

.gt-stat-card::after {
	/*background: var(--gt-surface-soft);
	border-radius: 999px;
	bottom: -2.2rem;
	content: "";
	height: 6.5rem;
	position: absolute;
	right: -1.75rem;
	width: 6.5rem;*/
}

.gt-stat-card .card-body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	height: 100%;
	justify-content: space-between;
	position: relative;
	z-index: 1;
}

.gt-stat-top {
	align-items: center;
	display: flex;
	gap: 0.65rem;
	justify-content: space-between;
}

.gt-stat-label {
	color: var(--gt-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gt-stat-icon {
	align-items: center;
	background: var(--gt-surface-strong);
	border-radius: 999px;
	color: var(--gt-primary);
	display: inline-flex;
	height: 2.15rem;
	justify-content: center;
	width: 2.15rem;
}

.gt-stat-value {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.gt-stat-number {
	color: var(--gt-text);
	font-size: clamp(2.35rem, 7vw, 4.15rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 0.9;
}

.gt-stat-unit {
	color: var(--gt-muted);
	font-size: 0.85rem;
	font-weight: 600;
}

.gt-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.gt-tag {
	align-items: center;
	background: var(--gt-surface-soft);
	border: 1px solid rgba(0, 99, 65, 0.12);
	border-radius: 999px;
	color: var(--gt-text);
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 600;
	gap: 0.25rem;
	line-height: 1.1;
	padding: 0.2rem 0.42rem;
	text-decoration: none;
	vertical-align: middle;
}

.gt-tag:hover,
.gt-tag:focus {
	color: var(--gt-primary-dark);
}

.gt-tag-muted {
	background: #f1f2ee;
	border-color: var(--gt-border);
	color: var(--gt-muted);
}

.gt-botanical-icon {
	align-items: center;
	background: rgba(0, 99, 65, 0.14);
	border-radius: 999px;
	color: var(--gt-primary);
	display: inline-flex;
	font-size: 0.72rem;
	height: 1.05rem;
	justify-content: center;
	width: 1.05rem;
}

.gt-botanical-icon-accent {
	background: rgba(199, 154, 59, 0.2);
	color: #8a641c;
}

.gt-botanical-icon-warm {
	background: rgba(201, 130, 47, 0.18);
	color: #86500d;
}

.gt-botanical-icon-cool {
	background: rgba(39, 115, 95, 0.16);
	color: var(--gt-high);
}

.gt-badge {
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.3rem 0.55rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.gt-badge-wishlist {
	background: rgba(0, 99, 65, 0.13);
	color: var(--gt-primary-dark);
}

.gt-badge-empty {
	background: rgba(180, 71, 60, 0.13);
	color: var(--gt-empty);
}

.gt-badge-low {
	background: rgba(201, 130, 47, 0.17);
	color: #86500d;
}

.gin-card {
	border: 1px solid var(--gt-border);
	box-shadow: 0 8px 20px rgba(31, 37, 35, 0.045);
	overflow: hidden;
}

.gin-card > .row {
	height: 100%;
}

.gin-card .card-body {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: flex-start;
	min-width: 0;
}

.gin-card img {
	max-height: 138px;
	object-fit: contain;
	transition: transform 0.18s ease;
}

.gin-card button:hover img,
.gin-card button:focus img {
	transform: translateY(-2px) scale(1.02);
}
.gin-card .card-title {
	font-size: 1.5rem;
	min-width: 0;
}

.gin-card .card-title .gt-badge {
	flex: 0 0 auto;
}

.gin-card .card-title > a,
.gin-card .card-title > span:first-child {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	position: relative;
	white-space: nowrap;
}

.gin-card .card-title > a::after,
.gin-card .card-title > span:first-child::after {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--gt-surface) 72%);
	content: "";
	inset: 0 0 0 auto;
	pointer-events: none;
	position: absolute;
	width: 3rem;
}

.gin-card .card-title a {
	color: var(--gt-text);
	text-decoration: none;
}

.gin-card .card-title a:hover,
.gin-card .card-title a:focus {
	color: var(--gt-primary);
}

.gt-gin-media {
	align-items: center;
	border-right: 1px solid rgba(220, 227, 221, 0.7);
	display: flex;
	justify-content: center;
	min-height: 100%;
}

.gt-card-botanicals {
	max-height: 4.35rem;
	overflow: hidden;
}

.gt-card-tags {
	margin-bottom: 0.55rem;
}

.gt-card-stock {
	margin-top: auto;
	padding-top: 0.65rem;
}

.gt-progress {
	background-color: #e6e9e3;
	border-radius: 999px;
	height: 0.55rem!important;
}

.gt-progress .progress-bar {
	border-radius: 999px;
}

.gin-detail img {
	display: block;
	max-height: 420px;
	max-width: 100%;
	object-fit: contain;
	height: auto;
	width: auto;
}

.gt-detail-hero {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--gt-border);
	border-radius: 0.8rem;
	box-shadow: var(--gt-shadow);
	margin-left: 0;
	margin-right: 0;
	padding: 1rem;
}

.gt-detail-media {
	align-items: center;
	/* background: linear-gradient(180deg, var(--gt-surface-soft), rgba(255, 255, 255, 0.2)); */
	border-radius: 0.65rem;
	border: 1px solid var(--gt-surface-strong);
	border-radius: 0.65rem;
	display: flex;
	justify-content: center;
	min-height: 22rem;
	overflow: hidden;
}

.gt-detail-media button {
	display: inline-flex;
	justify-content: center;
	max-width: 100%;
}

.gt-section-title {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
}

.gt-table-card,
.gt-form-card {
	background: var(--gt-surface);
	border: 1px solid var(--gt-border);
	border-radius: 0.75rem;
	box-shadow: 0 12px 28px rgba(31, 37, 35, 0.06);
	padding: 1rem;
}

.bottle-empty {
	opacity: 0.45;
}

.star {
	color: var(--gt-gold);
	font-size: 0.9rem;
}

.bl-stock-empty {
	border-left: 3px solid var(--gt-empty)!important;
}

.bl-stock-low,
.bl-stock-error {
	border-left: 3px solid var(--gt-low)!important;
}

.bl-stock-medium {
	border-left: 3px solid var(--gt-medium)!important;
}

.bl-stock-high {
	border-left: 3px solid var(--gt-high)!important;
}

.bl-stock-full {
	border-left: 3px solid var(--gt-full)!important;
}

.bg-stock-empty,
.bg-stock-error {
	background-color: var(--gt-empty)!important;
	color: var(--bs-light)!important;
}

.bg-stock-low {
	background-color: var(--gt-low)!important;
	color: var(--bs-light)!important;
}

.bg-stock-medium {
	background-color: var(--gt-medium)!important;
	color: var(--gt-text)!important;
}

.bg-stock-high {
	background-color: var(--gt-high)!important;
	color: var(--bs-light)!important;
}

.bg-stock-full {
	background-color: var(--gt-full)!important;
	color: var(--bs-light)!important;
}

.stock-empty,
.stock-error {
	color: var(--gt-empty)!important;
}

.stock-low {
	color: var(--gt-low)!important;
}

.stock-medium {
	color: #8a641c!important;
}

.stock-high {
	color: var(--gt-high)!important;
}

.stock-full {
	color: var(--gt-full)!important;
}

@media (min-width: 768px) {
	.gin-card .gt-gin-media {
		flex: 0 0 28%;
		max-width: 28%;
	}

	.gin-card .gt-gin-media + .col-8 {
		flex: 0 0 72%;
		max-width: 72%;
	}
}

@media (max-width: 767.98px) {
	body {
		padding-top: 4.5rem;
	}

	.gt-stat-card {
		min-height: 7.8rem;
	}

	.gt-detail-media {
		min-height: 16rem;
	}
}
