/* indexBody11Center.css - start
   Rewritten: category rows are now a horizontally-scrolling carousel
   (arrows both sides, drag/swipe on touch) instead of a fixed "first 4
   only" grid — shows every category in the row, not just four, and
   fluidly resizes from one visible card at the narrowest widths to many
   at the widest. Palette/spacing pulled from designTokens.css so this
   matches the nav/sidebar/banner system. */

#divmain {
	padding-top: var(--space-6, 24px);
	padding-bottom: var(--space-8, 32px);
}

/* Home page centre column: #homemain sits next to the sidebar inside
   #divcenter (flex sizing comes from commonBody9Side.css) and stacks the
   Best Sellers banner and the category rows. The rows no longer need their
   own page gutter or width cap - the column already provides both. */
#homemain {
	min-width: 0;
}
#homemain > #divmain {
	max-width: none;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

.cat-row {
	margin-bottom: var(--space-8, 32px);
}
.cat-row:last-child {
	margin-bottom: 0;
}

.cat-row-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-3, 12px);
	margin-bottom: var(--space-3, 12px);
}
.cat-row-head h1 {
	margin: 0;
	font-size: 1.3rem;
	font-family: var(--font-heading, 'Lobster', helvetica, arial);
	color: var(--color-brand-brown, #6b4a27);
	font-weight: normal;
}
.cat-row-viewall {
	flex: 0 0 auto;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-accent-alt, #e58434);
	padding: 6px 10px;
	border-radius: var(--radius-sm, 6px);
	transition: background-color var(--transition, 0.25s ease);
	white-space: nowrap;
}
.cat-row-viewall:hover,
.cat-row-viewall:focus-visible {
	background: var(--color-surface-sunk, #f4f6f7);
	outline: none;
}

/* ---------- Carousel shell ---------- */
.cat-row-carousel-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-2, 8px);
}

.cat-row-carousel {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	gap: var(--space-4, 16px);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding: 4px 2px 10px;
	/* Hide the scrollbar visually (arrows + swipe are the intended controls)
	   while keeping the element scrollable and keyboard-focusable. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.cat-row-carousel::-webkit-scrollbar {
	display: none;
}
.cat-row-carousel:focus-visible {
	outline: 2px solid var(--color-accent-alt, #e58434);
	outline-offset: 2px;
}

.cat-row-item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	/* Fluid card width: ~5-6 per row on a wide desktop, shrinking smoothly
	   down to a bit under 2 cards visible at the narrowest phone width —
	   this is what gives "single column feel at the smallest size, many
	   columns at the widest" for a horizontally-scrolling row. */
	width: clamp(120px, 22vw, 190px);
	border: 1px solid var(--color-border, #dde8ec);
	border-radius: var(--radius-md, 8px);
	overflow: hidden;
	background: var(--color-surface, #fff);
	transition: box-shadow var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), transform var(--transition, 0.25s ease);
}
.cat-row-item:hover,
.cat-row-item:focus-within {
	box-shadow: var(--shadow-md, 0 2px 10px rgba(0,0,0,0.12));
	border-color: var(--color-accent-alt, #e58434);
	transform: translateY(-2px);
}
.cat-row-item a {
	display: block;
	text-decoration: none;
	color: inherit;
}
.cat-row-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.cat-row-item .namespan {
	display: block;
	padding: var(--space-2, 8px) var(--space-2, 8px);
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text, #22323b);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Arrows ---------- */
.cat-row-arrow {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--color-border, #dde8ec);
	background: var(--color-surface, #fff);
	color: var(--color-brand-brown, #6b4a27);
	box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,0.08));
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color var(--transition, 0.25s ease), opacity var(--transition, 0.25s ease), transform var(--transition, 0.25s ease);
	z-index: 2;
}
.cat-row-arrow svg {
	width: 18px;
	height: 18px;
}
.cat-row-arrow:hover,
.cat-row-arrow:focus-visible {
	background: var(--color-accent-alt, #e58434);
	color: #fff;
	outline: none;
}
.cat-row-arrow:active {
	transform: scale(0.94);
}
.cat-row-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 960px) {
	.cat-row-item {
		width: clamp(110px, 30vw, 160px);
	}
	.cat-row-arrow {
		width: 32px;
		height: 32px;
	}
	.cat-row-arrow svg {
		width: 15px;
		height: 15px;
	}
}

@media screen and (max-width: 520px) {
	.cat-row-head h1 {
		font-size: 1.1rem;
	}
	.cat-row-item {
		width: clamp(100px, 38vw, 140px);
	}
	.cat-row-carousel {
		gap: var(--space-3, 12px);
	}
	/* Arrows step aside on very small screens in favor of touch-swipe,
	   which is the primary interaction there — keeps the row from feeling
	   cramped between two 32px buttons on a ~360px viewport. */
	.cat-row-arrow {
		width: 28px;
		height: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cat-row-carousel {
		scroll-behavior: auto;
	}
	.cat-row-item, .cat-row-arrow {
		transition: none !important;
	}
}
/* indexBody11Center.css - end */
