/**
 * 仓库请购页 — 浅色底（Athens / #edebe3）
 * 原 [warehouse_products] 短代码内联深色样式已迁出至此。
 */

body.ausbia-warehouse-surface {
	--athens-bg: #edebe3;
	--athens-panel: #f1efe8;
	--athens-inner: #f7f5f0;
	--athens-border: #d6d0c3;
	--athens-ink: #403a32;
	--athens-muted: #756d60;
	--athens-gold: #a8322d;
	background-color: var(--athens-bg);
	color: var(--athens-ink);
}

body.ausbia-warehouse-surface .entry-title,
body.ausbia-warehouse-surface h1 {
	color: var(--athens-ink);
}

body.ausbia-warehouse-surface .entry-content,
body.ausbia-warehouse-surface .entry-content p {
	color: var(--athens-muted);
}

body.ausbia-warehouse-surface .entry-content > p:first-of-type {
	margin-bottom: 1.25rem;
	line-height: 1.7;
}

.ausbia-warehouse-wrapper {
	margin: 2rem 0;
}

.ausbia-warehouse-wrapper > p {
	color: var(--athens-muted);
}

/* 分类按钮区 */
.ausbia-warehouse-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1.25rem;
}

.ausbia-warehouse-tab {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--athens-border);
	border-radius: 6px;
	background: var(--athens-inner);
	color: var(--athens-ink);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ausbia-warehouse-tab:hover {
	background: rgba(168, 50, 45, 0.08);
	border-color: rgba(168, 50, 45, 0.35);
	color: var(--athens-gold);
}

.ausbia-warehouse-tab.is-active {
	background: var(--athens-gold);
	border-color: var(--athens-gold);
	color: #fff;
}

.ausbia-warehouse-tab .ausbia-warehouse-tab-count {
	color: var(--athens-muted);
	font-size: 0.85rem;
}

.ausbia-warehouse-tab.is-active .ausbia-warehouse-tab-count {
	color: rgba(255, 255, 255, 0.88);
}

.ausbia-warehouse-content {
	margin-top: 0;
}

.ausbia-warehouse-panel {
	display: none;
}

.ausbia-warehouse-panel.is-active {
	display: block;
}

.ausbia-warehouse-rows {
	display: block;
	padding-bottom: 0.25rem;
}

.ausbia-warehouse-rows-inner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ausbia-warehouse-row-scroll-wrap {
	position: relative;
}

.ausbia-warehouse-scrollbar-top {
	height: 8px;
	margin-bottom: 6px;
	border-radius: 4px;
	background: rgba(64, 58, 50, 0.12);
	position: relative;
	cursor: pointer;
}

.ausbia-warehouse-scrollbar-thumb {
	position: absolute;
	top: 0;
	height: 100%;
	min-width: 40px;
	border-radius: 4px;
	background: rgba(64, 58, 50, 0.35);
	cursor: grab;
}

.ausbia-warehouse-scrollbar-thumb:active {
	cursor: grabbing;
}

.ausbia-warehouse-row-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem;
	border-radius: 10px;
	border: 1px solid var(--athens-border);
	background: var(--athens-panel);
	box-shadow: inset 12px 0 14px -10px rgba(64, 58, 50, 0.06), inset -12px 0 14px -10px rgba(64, 58, 50, 0.06);
	scrollbar-width: thin;
	scrollbar-color: rgba(64, 58, 50, 0.35) rgba(64, 58, 50, 0.12);
}

.ausbia-warehouse-row-scroll::-webkit-scrollbar {
	height: 8px;
}

.ausbia-warehouse-row-scroll::-webkit-scrollbar-track {
	background: rgba(64, 58, 50, 0.1);
	border-radius: 4px;
	margin: 0 2px;
}

.ausbia-warehouse-row-scroll::-webkit-scrollbar-thumb {
	background: rgba(64, 58, 50, 0.35);
	border-radius: 4px;
}

.ausbia-warehouse-row-scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(64, 58, 50, 0.5);
}

.ausbia-warehouse-row-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.2rem;
	margin: 0;
	padding: 0 0.25rem;
}

.ausbia-warehouse-row-list .modern-product-card {
	flex: 0 0 190px !important;
	width: 190px !important;
	max-width: 60vw;
	aspect-ratio: 1 / 1 !important;
}

body.ausbia-warehouse-surface .modern-add-to-cart {
	background: rgba(168, 50, 45, 0.92) !important;
}

body.ausbia-warehouse-surface .modern-add-to-cart:hover {
	background: rgba(143, 39, 36, 0.95) !important;
}

body.ausbia-warehouse-surface .modern-product-price {
	color: var(--athens-gold) !important;
}

@media (max-width: 768px) {
	.ausbia-warehouse-row-list .modern-product-card {
		flex-basis: 38vw !important;
		width: 38vw !important;
	}
}
