/* =============================================================
   GMT Country Inventory — style.css
   All card rules scoped under #gmt-ci-wrap to beat theme CSS.
   ============================================================= */

/* ── Wrapper ────────────────────────────────────────────────── */
#gmt-ci-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	color: #222222 !important;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 16px 48px;
}

/* ── Search bar ─────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-search-bar {
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,.10);
	padding: 24px 28px;
	margin-bottom: 32px;
	border: 1px solid #e5e7eb;
}

#gmt-ci-wrap .gmt-ci-search-inner {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
}

#gmt-ci-wrap .gmt-ci-field-wrap {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#gmt-ci-wrap .gmt-ci-label {
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #4b5563 !important;
	letter-spacing: .5px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 6px;
}

#gmt-ci-wrap .gmt-ci-label i {
	color: #FF1E1E !important;
}

#gmt-ci-wrap .gmt-ci-select {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid #e5e7eb !important;
	border-radius: 6px;
	font-size: 14px !important;
	color: #1f2937 !important;
	background-color: #f9fafb !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	outline: none;
	box-shadow: none !important;
}

#gmt-ci-wrap .gmt-ci-select:focus {
	border-color: #FF1E1E !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(255,30,30,.12) !important;
}

/* ── Buttons ────────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-btn-wrap {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

#gmt-ci-wrap .gmt-ci-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px;
	padding: 10px 22px !important;
	border: none !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all .22s ease;
	text-decoration: none !important;
	white-space: nowrap;
	line-height: 1.4 !important;
}

#gmt-ci-wrap .gmt-ci-btn--primary {
	background: #FF1E1E !important;
	color: #ffffff !important;
}

#gmt-ci-wrap .gmt-ci-btn--primary:hover,
#gmt-ci-wrap .gmt-ci-btn--primary:focus {
	background: #cc0000 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(255,30,30,.35) !important;
	transform: translateY(-1px);
	text-decoration: none !important;
}

#gmt-ci-wrap .gmt-ci-btn--primary:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none !important;
}

#gmt-ci-wrap .gmt-ci-btn--secondary {
	background: #f3f4f6 !important;
	color: #4b5563 !important;
	border: 2px solid #e5e7eb !important;
}

#gmt-ci-wrap .gmt-ci-btn--secondary:hover,
#gmt-ci-wrap .gmt-ci-btn--secondary:focus {
	background: #e5e7eb !important;
	color: #1f2937 !important;
	text-decoration: none !important;
}

/* ── Results header ─────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-results-header {
	margin-bottom: 16px;
	min-height: 26px;
}

#gmt-ci-wrap .gmt-ci-count {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #cc0000 !important;
	margin: 0;
	padding: 5px 14px;
	background: #fff5f5;
	border-radius: 20px;
	display: inline-block;
}

/* ── Spinner ────────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-spinner {
	display: flex;
	justify-content: center;
	padding: 48px 0;
}

#gmt-ci-wrap .gmt-ci-spinner-ring {
	width: 44px;
	height: 44px;
	border: 4px solid #e5e7eb;
	border-top-color: #FF1E1E;
	border-radius: 50%;
	animation: gmt-ci-spin .7s linear infinite;
}

@keyframes gmt-ci-spin {
	to { transform: rotate(360deg); }
}

/* ── Grid ───────────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-grid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	transition: opacity .25s ease;
	align-items: start;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}

#gmt-ci-wrap .gmt-ci-grid--loading {
	opacity: .35;
	pointer-events: none;
}

#gmt-ci-wrap .gmt-ci-item {
	display: flex;
}

/* ── Card ───────────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card {
	background: #ffffff !important;
	border: 1px solid #E8E8E8 !important;
	border-radius: 3px !important;
	box-shadow: 0 2px 10px rgba(0,0,0,.08) !important;
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease;
	width: 100%;
	display: flex !important;
	flex-direction: column !important;
	text-align: center !important;
}

#gmt-ci-wrap .gmt-ci-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(0,0,0,.14) !important;
}

/* ── Card image ─────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card__image {
	position: relative;
	overflow: hidden;
	background: #f3f4f6;
	width: 100%;
	height: 150px;
	flex-shrink: 0;
}

#gmt-ci-wrap .gmt-ci-card__image a {
	display: block !important;
	width: 100%;
	height: 100%;
}

#gmt-ci-wrap .gmt-ci-card__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform .35s ease;
}

#gmt-ci-wrap .gmt-ci-card:hover .gmt-ci-card__image img {
	transform: scale(1.03);
}

/* ── Condition badge ────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card__condition-badge {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	background: #FF1E1E !important;
	color: #ffffff !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	padding: 4px 8px !important;
	border-radius: 4px !important;
	line-height: 1 !important;
	z-index: 2;
	text-transform: uppercase;
	letter-spacing: .5px;
	display: inline-block !important;
}

/* ── Card content ───────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card__content {
	padding: 12px 10px 16px !important;
	text-align: center !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	flex: 1;
}

/* ── Title ──────────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card__title {
	margin: 0 0 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	width: 100%;
}

#gmt-ci-wrap .gmt-ci-card__title a {
	color: #E53935 !important;
	text-decoration: none !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	display: block !important;
	text-align: center !important;
	transition: color .18s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

#gmt-ci-wrap .gmt-ci-card__title a:hover {
	color: #b71c1c !important;
	text-decoration: none !important;
}

/* ── Divider ────────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card__divider {
	width: 40px;
	height: 2px;
	background: #222222;
	margin: 8px auto 10px !important;
	flex-shrink: 0;
	display: block;
}

/* ── Prices ─────────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card__prices {
	display: flex !important;
	align-items: baseline !important;
	justify-content: center !important;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 10px !important;
	width: 100%;
}

#gmt-ci-wrap .gmt-ci-price-old {
	font-size: 11px !important;
	color: #9B9B9B !important;
	text-decoration: line-through !important;
	font-weight: 400 !important;
}

#gmt-ci-wrap .gmt-ci-price-new {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #222222 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

/* ── FOB button ─────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-card__fob-btn {
	display: inline-block !important;
	background: #3B3B3B !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-style: italic !important;
	font-weight: 400 !important;
	padding: 5px 10px !important;
	border-radius: 3px !important;
	line-height: 1 !important;
	cursor: default;
	transition: background .18s ease;
	text-decoration: none !important;
	border: none !important;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#gmt-ci-wrap .gmt-ci-card:hover .gmt-ci-card__fob-btn {
	background: #2a2a2a !important;
}

/* ── No results ─────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 24px;
	color: #9ca3af;
}

#gmt-ci-wrap .gmt-ci-no-results i {
	font-size: 48px;
	display: block;
	margin-bottom: 14px;
	color: #e5e7eb;
}

#gmt-ci-wrap .gmt-ci-no-results p {
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #9ca3af !important;
	margin: 0;
}

/* ── Pagination ─────────────────────────────────────────────── */
#gmt-ci-wrap .gmt-ci-pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
}

#gmt-ci-wrap .gmt-ci-page-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: center;
}

#gmt-ci-wrap .gmt-ci-page-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 2px solid #e5e7eb !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	color: #4b5563 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all .22s ease;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#gmt-ci-wrap .gmt-ci-page-btn:hover {
	border-color: #FF1E1E !important;
	color: #FF1E1E !important;
}

#gmt-ci-wrap .gmt-ci-page-btn--active {
	background: #FF1E1E !important;
	border-color: #FF1E1E !important;
	color: #ffffff !important;
}

#gmt-ci-wrap .gmt-ci-page-btn--active:hover {
	background: #cc0000 !important;
	color: #ffffff !important;
}

#gmt-ci-wrap .gmt-ci-ellipsis {
	color: #9ca3af;
	font-size: 13px;
	padding: 0 4px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media ( max-width: 1100px ) {
	#gmt-ci-wrap .gmt-ci-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media ( max-width: 800px ) {
	#gmt-ci-wrap .gmt-ci-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	#gmt-ci-wrap .gmt-ci-search-bar {
		padding: 18px;
	}
}

@media ( max-width: 560px ) {
	#gmt-ci-wrap .gmt-ci-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	#gmt-ci-wrap .gmt-ci-search-inner {
		flex-direction: column;
		align-items: stretch;
	}
	#gmt-ci-wrap .gmt-ci-btn-wrap {
		flex-direction: column;
	}
}

@media ( max-width: 360px ) {
	#gmt-ci-wrap .gmt-ci-grid {
		grid-template-columns: 1fr;
	}
}
