/* Laruba Badges — product badge and promo note. */

.laruba-badge {
	--laruba-badge-bg: #ffffff;
	--laruba-badge-color: #111111;
	display: inline-block;
	background: var(--laruba-badge-bg);
	color: var(--laruba-badge-color);
	/* Padding and letter-spacing are in em, so this one value sizes the box. */
	font-size: 9.35px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.65em 1.15em;
	border-radius: 0;
	white-space: nowrap;
	pointer-events: none;
}

/* Over the product image, top right — matches the shop card layout. */
.products .product .product_thumbnail .laruba-badge--loop,
.laruba-cat .product .product_thumbnail .laruba-badge--loop {
	position: absolute;
	top: 5%;
	right: 5%;
	left: auto;
	z-index: 3;
}

/* Keep clear of the theme's own sale/new badges, which sit on the left. */
.products .product .product_thumbnail .badge + .laruba-badge--loop {
	margin-top: 0;
}

/* On the product page the badge sits on the page background, not on a photo,
   so a hairline keeps a white badge readable as a badge. */
.laruba-badge--single {
	margin: 0 0 12px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.laruba-badge--preview {
	border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Promo note */
.laruba-promo {
	margin: 6px 0 0;
	font-size: 0.8125em;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.laruba-promo__text {
	display: inline-block;
	padding: 0.25em 0.6em;
	background: #f4f1ec;
	color: #1d1d1d;
	border-radius: 2px;
	white-space: nowrap;
}

.laruba-promo--loop {
	display: block;
	width: 100%;
	margin-top: 8px;
}

.laruba-promo--single {
	margin: 10px 0 16px;
	font-size: 0.9375em;
}

/* Catalogue grids on phones: tighter rows. The theme leaves ~46px between a
   card's price and the next row's photo (16px caption padding + 30px item
   margin); bring that down to ~18px and the photo-to-title gap to 10px. */
@media (max-width: 767px) {
	ul.products.main-shop-archive > li.product,
	.laruba-cat ul.products > li.product {
		margin-bottom: 14px;
	}

	ul.products.main-shop-archive > li.product .caption,
	.laruba-cat ul.products > li.product .caption {
		padding-top: 10px;
		padding-bottom: 4px;
	}

	ul.products.main-shop-archive > li.product .laruba-promo--loop,
	.laruba-cat ul.products > li.product .laruba-promo--loop {
		margin-top: 6px;
	}
}

/* "All socks" served as an archive: category headers get 15px under the title
   from the theme's (empty) subcategory list (`.shop_categories_list`), which
   this page doesn't print — add the same gap so both line up exactly. */
body.laruba-archive .woocommerce-products-header > .col-lg-8::after {
	content: "";
	display: block;
	height: 15px;
}

/* Catalogue pages */
.laruba-cat {
	width: 100%;
}

.laruba-cat__empty {
	margin: 32px 0;
	opacity: 0.75;
}

.laruba-cat__pagination {
	margin: 24px 0 8px;
	text-align: center;
}

.laruba-cat__pagination .page-numbers {
	display: inline-block;
	padding: 4px 10px;
	margin: 0 2px;
}

.laruba-cat__pagination .page-numbers.current {
	font-weight: 600;
	text-decoration: underline;
}

/* Product page: women's / men's photo switch */
.laruba-gender-switch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 4px 0 18px;
	font-size: 13px;
	line-height: 1.2;
}

.laruba-gender-switch__label {
	margin-right: 2px;
	color: #777777;
}

.laruba-gender-switch a {
	padding: 7px 14px;
	color: #1d1d1d;
	text-decoration: none;
	border: 1px solid #d6d1c7;
	transition: border-color 0.2s ease;
}

.laruba-gender-switch a:hover {
	border-color: #1d1d1d;
	text-decoration: none;
}

.laruba-gender-switch a.is-active {
	color: #ffffff;
	background: #1d1d1d;
	border-color: #1d1d1d;
}

.laruba-gender-switch a::after {
	display: none !important;
}

/* Main menu: a separator item (menu CSS class "laruba-menu-separator") */
li.laruba-menu-separator {
	position: relative;
	display: block;
	height: 1px;
	margin: 14px 0 !important;
	padding: 0 !important;
	pointer-events: none;
	list-style: none;
}

li.laruba-menu-separator::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 1px;
	background: currentColor;
	opacity: 0.35;
}

li.laruba-menu-separator > a,
li.laruba-menu-separator > span {
	display: none !important;
}
