/* =========================================================
   Hard Drives page — assets/css/page-hard-drives.css
   Namespaced with .dc-hd- to avoid clashing with existing
   theme classes. Reuses --primary from the theme if defined.
   ========================================================= */

   :root {
	--dc-hd-navy: #0D0D0D;
	--dc-hd-navy-2: #0D0D0D;
	--dc-hd-blue: var(--primary, #7A171B);
	--dc-hd-orange: #7A171B;
	--dc-hd-orange-dark: #5C1114;
	--dc-hd-ink: #0D0D0D;
	--dc-hd-muted: #6E6E6E;
	--dc-hd-border: #E2E2E2;
	--dc-hd-bg-soft: #FCFAF8;
}

/* ---------- Hero ---------- */
.dc-hd-hero {
	position: relative;
	background: var(--dc-hd-navy);
	color: #FFFFFF;
	padding: 64px 24px;
	text-align: center;
	overflow: hidden;
}

.dc-hd-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto;
}

.dc-hd-hero__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #F0F0F0 ;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 16px;
	
}

.dc-hd-hero__title {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 12px;
}

.dc-hd-hero__sub {
	font-size: 15px;
	color: #E2E2E2;
	margin: 0 0 24px;
}

.dc-hd-hero__sub strong {
	color: #FFFFFF;
}

.dc-hd-hero__cta,
.dc-hd-hero__cta--dark {
	display: inline-block;
	background: var(--dc-hd-blue);
	color: #FFFFFF !important;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease;
	text-decoration: none !important; 
}

.dc-hd-hero__cta:hover {
	background: #7A171B;
	transform: translateY(-1px);
}

.dc-hd-hero__cta--dark {
	background: var(--dc-hd-ink);
}

.dc-hd-hero__cta--dark:hover {
	background: #12181E;
}

/* ---------- Main wrapper ---------- */
.dc-hd-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

.dc-hd-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
}

.dc-hd-section-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--dc-hd-blue);
	text-decoration: none;
	white-space: nowrap;
}

.dc-hd-section-link:hover {
	text-decoration: underline;
}

/* ---------- Badge strip (overlaps bottom of hero, like Outlet page) ---------- */
.dc-hd-badges {
	max-width: 1200px;
	margin: -40px auto 40px;
	padding: 0 24px;
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.dc-hd-badge {
	background: #FFFFFF;
	border: 1px solid var(--dc-hd-border);
	border-radius: 12px;
	padding: 20px 22px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 10px 30px rgba(15, 25, 45, .10);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease;
}

.dc-hd-badge.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.dc-hd-badge__icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.dc-hd-badge--warn .dc-hd-badge__icon { background: #fff4e0; color: #c07a00; }
.dc-hd-badge--success .dc-hd-badge__icon { background: #e4f8ec; color: #1e8a4c; }
.dc-hd-badge--info .dc-hd-badge__icon { background: #F0F0F0; color: var(--dc-hd-blue); }
.dc-hd-badge--warranty .dc-hd-badge__icon { background: #f3e8fe; color: #7a3fc0; }

.dc-hd-badge__title {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--dc-hd-ink);
}

.dc-hd-badge__sub {
	display:block; font-size:12.5px; color:#7b8598; margin-top:2px; 
}

@media (max-width: 992px) {
	.dc-hd-badges {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.dc-hd-badges {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		margin-top: -24px;
	}
	.dc-hd-badge {
		padding: 14px 12px;
	}
	.dc-hd-badge__icon {
		width: 34px;
		height: 34px;
		font-size: 15px;
	}
	.dc-hd-badge__title { font-size: 12px; }
	.dc-hd-badge__sub { font-size: 10.5px; }
}

/* ---------- Empty state (no products yet) ---------- */
.dc-hd-empty {
	background: var(--dc-hd-bg-soft);
	border: 1px dashed var(--dc-hd-border);
	border-radius: 10px;
	text-align: center;
	padding: 48px 24px;
	margin-bottom: 48px;
}

.dc-hd-empty h3 {
	margin: 0 0 6px;
	color: var(--dc-hd-ink);
}

.dc-hd-empty p {
	color: var(--dc-hd-muted);
	margin: 0 0 18px;
	font-size: 14px;
}

/* ---------- Toolbar: search / sort / grid-list toggle ---------- */
.dc-hd-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding: 16px 20px;
	background: #f7f8fb;
	border: 1px solid var(--dc-hd-border);
	border-radius: 10px;
	position: sticky;
	top: 0;
	z-index: 40;
	transition: background-color .2s ease, box-shadow .2s ease, padding .2s ease;
}

/* Sticky state — added by JS once the toolbar reaches the top of the
   viewport while scrolling. Gives it a surface to sit on so text/controls
   stay readable over whatever content is now behind it. */
.dc-hd-toolbar.is-stuck {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .25);
	padding: 10px 16px;
	margin-left: -16px;
	margin-right: -16px;
	border-radius: 0 0 10px 10px;
}

.dc-hd-toolbar__search {
	flex: 1 1 320px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #FFFFFF;
	border: 1px solid var(--dc-hd-border);
	border-radius: 8px;
	padding: 10px 14px;
	color: var(--dc-hd-muted);
	max-width: 380px;
}

.dc-hd-toolbar__search svg {
	flex-shrink: 0;
}

.dc-hd-toolbar__search input {
	border: none;
	outline: none;
	background: transparent;
	font-size: 13px;
	color: var(--dc-hd-ink);
	width: 100%;
}

.dc-hd-toolbar__search input::placeholder {
	color: #6E6E6E;
}

.dc-hd-toolbar__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.dc-hd-toolbar__controls select {
	border: 1px solid var(--dc-hd-border);
	background: #FFFFFF;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	color: var(--dc-hd-ink);
	cursor: pointer;
}

.dc-hd-view-toggle {
	display: flex;
	border: 1px solid var(--dc-hd-border);
	border-radius: 8px;
	overflow: hidden;
	background: #FFFFFF;
}

.dc-hd-view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: none;
	background: transparent;
	color: var(--dc-hd-muted);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.dc-hd-view-btn + .dc-hd-view-btn {
	border-left: 1px solid var(--dc-hd-border);
}

.dc-hd-view-btn:hover {
	background: var(--dc-hd-bg-soft);
}

.dc-hd-view-btn.is-active {
	background: #0D0D0D;
	color: #FFFFFF;
}

/* No results (client-side search match) */
.dc-hd-no-results {
	display: none;
	text-align: center;
	padding: 32px 16px;
	color: var(--dc-hd-muted);
	font-size: 14px;
}

.dc-hd-no-results.is-visible {
	display: block;
}

/* ---------- Back-to-top button (appears on scroll) ---------- */
.dc-hd-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--dc-hd-navy);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 12px 28px -12px rgba(15, 23, 42, .45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, background .15s ease;
	z-index: 60;
}

.dc-hd-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.dc-hd-back-to-top:hover {
	background: var(--dc-hd-blue);
}

@media (max-width: 640px) {
	.dc-hd-back-to-top {
		right: 16px;
		bottom: 16px;
		width: 40px;
		height: 40px;
	}
	.dc-hd-toolbar__controls {
	
	gap: 72px;
	
}
}

/* ---------- Product grid (real WooCommerce items) ---------- */
.dc-hd-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

.dc-hd-product-grid .product-card {
	background: #FFFFFF;
	border: 1px solid var(--dc-hd-border);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.dc-hd-product-grid .product-card:hover {
	box-shadow: 0 12px 28px -16px rgba(15, 23, 42, .3);
	transform: translateY(-3px);
}

/* List view — toggled via JS (adds .is-list-view to the grid) */
.dc-hd-product-grid.is-list-view {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dc-hd-product-grid.is-list-view .product-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px 16px;
}

.dc-hd-product-grid.is-list-view .product-card img,
.dc-hd-product-grid.is-list-view .product-card .attachment-woocommerce_thumbnail {
	width: 96px;
	height: 96px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 6px;
}

.dc-hd-product-grid.is-list-view .product-card .woocommerce-loop-product__title,
.dc-hd-product-grid.is-list-view .product-card .price {
	margin: 0;
}

/* ---------- Brands / sourcing box ---------- */
.dc-hd-brands {
	margin: 8px 0 48px;
}

.dc-hd-brand-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dc-hd-brand {
	background: var(--dc-hd-blue);
	color: #FFFFFF;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

/* ---------- Blog / engineering desk ---------- */
.dc-hd-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

.dc-hd-blog-card {
	display: block;
	background: #FFFFFF;
	border: 1px solid var(--dc-hd-border);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s ease, transform .2s ease;
}

.dc-hd-blog-card:hover {
	box-shadow: 0 12px 28px -16px rgba(15, 23, 42, .3);
	transform: translateY(-3px);
}

.dc-hd-blog-card__img img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}

.dc-hd-blog-card__body {
	padding: 16px;
}

.dc-hd-blog-card__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--dc-hd-blue);
}

.dc-hd-blog-card__title {
	font-size: 15px;
	font-weight: 700;
	margin: 6px 0 6px;
	color: var(--dc-hd-ink);
}

.dc-hd-blog-card__excerpt {
	font-size: 13px;
	color: var(--dc-hd-muted);
	margin: 0 0 10px;
}

.dc-hd-blog-card__more {
	font-size: 13px;
	font-weight: 600;
	color: var(--dc-hd-blue);
}

/* ---------- Bottom CTA banner ---------- */
.dc-hd-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--dc-hd-navy);
	color: #FFFFFF;
	border-radius: 10px;
	padding: 28px 32px;
	flex-wrap: wrap;
}

.dc-hd-banner h3 {
	margin: 0 0 4px;
	font-size: 18px;
}

.dc-hd-banner p {
	margin: 0;
	font-size: 14px;
	color: #E2E2E2;
}

.dc-hd-banner__cta {
	background: var(--dc-hd-orange);
	color: #FFFFFF;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease;
}

.dc-hd-banner__cta:hover {
	background: var(--dc-hd-orange-dark);
}

/* ---------- Scroll-reveal (progressive enhancement, see JS) ---------- */
.dc-hd-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .5s ease, transform .5s ease;
}

.dc-hd-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.dc-hd-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.dc-hd-product-grid { grid-template-columns: repeat(3, 1fr); }
	.dc-hd-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.dc-hd-hero__title { font-size: 26px; }
	.dc-hd-product-grid { grid-template-columns: repeat(1, 1fr); gap: 12px; }
	.dc-hd-blog-grid { grid-template-columns: 1fr; }
	.dc-hd-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Pagination ---------- */
.dc-hd-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 48px;
}

.dc-hd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--dc-hd-border);
	background: #FFFFFF;
	color: var(--dc-hd-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background .15s ease, border-color .15s ease;
}

.dc-hd-pagination .page-numbers:hover {
	border-color: var(--dc-hd-blue);
	color: var(--dc-hd-blue);
}

.dc-hd-pagination .page-numbers.current {
	background: var(--dc-hd-navy);
	border-color: var(--dc-hd-navy);
	color: #FFFFFF;
}

.dc-hd-pagination .page-numbers.dots {
	border: none;
	background: transparent;
}