/* Skycrest Uniform Store – store extras */

/* ---------- Announcement bar ---------- */
.sc-announcement {
	background: var(--sc-navy-900, #10294f);
	color: #fff;
	font-family: var(--sc-sans, "Figtree", system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.sc-announcement__inner {
	max-width: var(--sc-container, 1240px);
	margin: 0 auto;
	padding: 0.6rem 20px;
}

.sc-announcement a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--sc-gold-500, #b89957);
	text-underline-offset: 3px;
}

.sc-announcement a:hover,
.sc-announcement a:focus-visible {
	color: var(--sc-gold-100, #f5efe3);
}

/* ---------- Low stock (product page, after choosing a size) ---------- */
.woocommerce div.product .stock.sc-low-stock {
	color: #9a6b12;
	font-weight: 700;
}

/* ---------- Second photo on hover ---------- */
li.product.sc-has-hover-image a.woocommerce-LoopProduct-link {
	position: relative;
	display: block;
}

li.product.sc-has-hover-image .sc-hover-image {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

li.product.sc-has-hover-image .sc-hover-image img {
	display: block;
	width: 100%;
	height: auto;
}

li.product.sc-has-hover-image:hover .sc-hover-image,
li.product.sc-has-hover-image a.woocommerce-LoopProduct-link:focus-visible .sc-hover-image {
	opacity: 1;
}

@media (hover: none) {
	li.product.sc-has-hover-image .sc-hover-image {
		display: none;
	}
}

/* ---------- Slide-out cart ---------- */
.sc-cart-drawer[hidden] {
	display: none;
}

.sc-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.sc-cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 27, 53, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sc-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 92vw);
	background: #fff;
	box-shadow: -18px 0 45px rgba(16, 41, 79, 0.18);
	font-family: var(--sc-sans, "Figtree", system-ui, sans-serif);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	outline: none;
}

.sc-cart-drawer.is-open .sc-cart-drawer__overlay {
	opacity: 1;
}

.sc-cart-drawer.is-open .sc-cart-drawer__panel {
	transform: translateX(0);
}

.admin-bar .sc-cart-drawer__panel {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .sc-cart-drawer__panel {
		top: 46px;
	}
}

.sc-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.4rem;
	border-bottom: 1px solid var(--sc-line, #dfe5ec);
}

.sc-cart-drawer__header h2 {
	margin: 0;
	color: var(--sc-navy-900, #10294f);
	font-family: var(--sc-serif, "Fraunces", Georgia, serif);
	font-size: 1.5rem;
	font-weight: 600;
}

.sc-cart-drawer__close {
	min-height: 0 !important;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border: 1px solid var(--sc-line, #dfe5ec) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--sc-navy-900, #10294f) !important;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.sc-cart-drawer__close:hover {
	background: var(--sc-surface, #f6f8fb) !important;
	transform: none !important;
}

.sc-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 0.5rem 1.4rem 1rem;
}

.sc-cart-drawer__body .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item {
	position: relative;
	display: block;
	min-height: 72px;
	padding: 0.9rem 2rem 0.9rem 76px;
	border-bottom: 1px solid var(--sc-line, #dfe5ec);
	color: var(--sc-ink, #18202b);
	font-size: 0.95rem;
	line-height: 1.35;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item a:not(.remove) {
	color: var(--sc-navy-900, #10294f);
	font-weight: 600;
	text-decoration: none;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item img {
	position: absolute;
	top: 0.9rem;
	left: 0;
	width: 60px;
	height: 60px;
	margin: 0;
	border-radius: 8px;
	background: var(--sc-surface, #f6f8fb);
	object-fit: contain;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 0.9rem;
	right: 0;
	color: var(--sc-muted, #667085) !important;
	font-size: 1.25rem;
	line-height: 1;
	text-decoration: none;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item .remove:hover {
	color: #b42318 !important;
	background: none !important;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item dl.variation {
	margin: 0.25rem 0 0;
	color: var(--sc-muted, #667085);
	font-size: 0.85rem;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item dl.variation dt,
.sc-cart-drawer__body .woocommerce-mini-cart-item dl.variation dd,
.sc-cart-drawer__body .woocommerce-mini-cart-item dl.variation p {
	display: inline;
	margin: 0;
}

.sc-cart-drawer__body .woocommerce-mini-cart-item .quantity {
	display: block;
	margin-top: 0.3rem;
	color: var(--sc-muted, #667085);
	font-size: 0.9rem;
}

.sc-cart-drawer__body .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 1rem 0 0;
	color: var(--sc-navy-900, #10294f);
	font-size: 1.05rem;
}

.sc-cart-drawer__body .woocommerce-mini-cart__buttons {
	display: none !important;
}

.sc-cart-drawer__body .woocommerce-mini-cart__empty-message {
	margin: 2rem 0;
	color: var(--sc-muted, #667085);
	text-align: center;
}

.sc-cart-drawer__footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	padding: 1rem 1.4rem 1.4rem;
	border-top: 1px solid var(--sc-line, #dfe5ec);
}

.sc-cart-drawer.is-empty .sc-cart-drawer__footer {
	grid-template-columns: 1fr;
}

.sc-cart-drawer.is-empty .sc-cart-drawer__checkout {
	display: none !important;
}

.sc-cart-drawer__keep {
	min-height: 48px;
	padding: 0.75rem 1rem !important;
	border: 1px solid var(--sc-navy-900, #10294f) !important;
	border-radius: var(--sc-radius-sm, 8px) !important;
	background: #fff !important;
	color: var(--sc-navy-900, #10294f) !important;
	font-weight: 700 !important;
	cursor: pointer;
}

/* Gold with navy text on hover (white text on gold is hard to read) */
.sc-cart-drawer__keep:hover,
.sc-cart-drawer__keep:focus-visible {
	background: var(--sc-gold-500, #b89957) !important;
	border-color: var(--sc-gold-500, #b89957) !important;
	color: var(--sc-navy-900, #10294f) !important;
	transform: none !important;
}

.sc-cart-drawer__checkout {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
}

html.sc-cart-open,
html.sc-cart-open body {
	overflow: hidden;
}

/* Hide the "added to your cart" banner once the slide-out cart takes over */
.sc-cart-drawer-handled {
	display: none !important;
}


/* Override WooCommerce's default mini-cart widget styles on shop pages */
.sc-cart-drawer .sc-cart-drawer__body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
	position: relative !important;
	display: block !important;
	margin: 0 !important;
	padding: 0.9rem 2rem 0.9rem 76px !important;
	min-height: 72px;
	list-style: none !important;
	background: none !important;
}

.sc-cart-drawer .sc-cart-drawer__body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item::before {
	content: none !important;
}

.sc-cart-drawer .sc-cart-drawer__body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img {
	position: absolute !important;
	top: 0.9rem !important;
	left: 0 !important;
	float: none !important;
	width: 60px !important;
	height: 60px !important;
	max-width: none !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.sc-cart-drawer .sc-cart-drawer__body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove {
	position: absolute !important;
	top: 0.9rem !important;
	right: 0 !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	border-radius: 0 !important;
}

.sc-cart-drawer .sc-cart-drawer__body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove:hover {
	background: none !important;
}

/* ---------- Gentle scroll reveal ---------- */
html.sc-reveal-ready:not(.sc-reveal-done) .store-intro__inner > *:not(.sc-revealed),
html.sc-reveal-ready:not(.sc-reveal-done) .sc-popup-feature:not(.sc-revealed),
html.sc-reveal-ready:not(.sc-reveal-done) .home-products__heading:not(.sc-revealed),
html.sc-reveal-ready:not(.sc-reveal-done) ul.products li.product:not(.sc-revealed) {
	opacity: 0;
	transform: translateY(16px);
}

html.sc-reveal-ready .store-intro__inner > *,
html.sc-reveal-ready .sc-popup-feature,
html.sc-reveal-ready .home-products__heading,
html.sc-reveal-ready ul.products li.product {
	transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.sc-cart-drawer__panel,
	.sc-cart-drawer__overlay,
	li.product.sc-has-hover-image .sc-hover-image {
		transition: none;
	}
}

/* ---------- "New" badge (first 30 days) ---------- */
.sc-new-badge {
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	z-index: 3;
	padding: 0.35rem 0.65rem;
	border-radius: 99px;
	background: #4a6a94;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(16, 41, 79, 0.14);
}

/* When the item is also on sale, sit just below the Sale badge */
.sc-new-badge.is-stacked {
	top: 2.65rem;
}
