/* =========================================================================
   Joom - WordPress / WooCommerce widgets in any widget area (shop filters,
   blog sidebar, footer): product lists (Products, Top rated, Recently viewed,
   Recent reviews), the mini cart, tag clouds and product search.
   Filter-panel layout lives in assets/css/shop.css.
   ========================================================================= */

/* Tag cloud: even chips. */
.widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.widget .tagcloud a {
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--border-color, #e7e5e4);
	border-radius: 0;
	background: #ffffff;
	color: var(--text-color, #334155);
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
}

.widget .tagcloud a:hover {
	border-color: var(--price-color, #111827);
	color: var(--price-color, #111827);
}

/* Product lists (Products, Top rated, Recently viewed, Recent reviews, cart):
   photo on the left, details flowing beside it. */
.widget ul.product_list_widget li {
	display: block;
	overflow: hidden;
	min-height: 80px;
	padding: 0 0 14px;
	border: 0;
	line-height: 1.45;
}

.widget ul.product_list_widget li + li {
	padding-top: 14px;
	border-top: 1px solid var(--border-color, #e7e5e4);
}

.widget ul.product_list_widget li > a {
	display: block;
	gap: 0;
	color: var(--price-color, #111827);
	font-size: 14px;
	font-weight: 500;
}

.widget ul.product_list_widget li img {
	float: left;
	width: 64px;
	height: 80px;
	margin: 0 14px 0 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
}

.widget ul.product_list_widget .star-rating {
	display: block;
	float: none;
	margin: 4px 0;
	font-size: 11px;
}

.widget ul.product_list_widget del {
	margin-right: 4px;
	color: var(--regular-price-color, #94a3b8);
	font-size: 0.9em;
}

.widget ul.product_list_widget ins {
	color: var(--sale-price-color, #FA3434);
	text-decoration: none;
}

.widget ul.product_list_widget .woocommerce-Price-amount {
	font-size: 14px;
	font-weight: 600;
}

.widget ul.product_list_widget .reviewer {
	display: block;
	color: var(--light-text-color, #64748b);
	font-size: 12.5px;
}

/* Mini cart widget */
.widget_shopping_cart ul.product_list_widget li {
	position: relative;
	padding-right: 24px;
}

.widget_shopping_cart a.remove {
	position: absolute;
	top: 14px;
	right: 0;
	color: var(--light-text-color, #64748b) !important;
	font-size: 18px;
	line-height: 1;
}

.widget_shopping_cart .quantity {
	display: block;
	color: var(--light-text-color, #64748b);
	font-size: 13px;
}

.widget .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 6px 0 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border-color, #e7e5e4);
}

.widget .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
}

.widget .woocommerce-mini-cart__buttons .button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--price-color, #111827);
	border-radius: 0;
	background: transparent;
	color: var(--price-color, #111827);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.widget .woocommerce-mini-cart__buttons .button.checkout {
	background: var(--price-color, #111827);
	color: #ffffff;
}

/* Product search widget */
.widget .woocommerce-product-search {
	display: flex;
}

.widget .woocommerce-product-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--border-color, #e7e5e4);
	border-right: 0;
	border-radius: 0;
	font-size: 14px;
}

.widget .woocommerce-product-search button {
	flex: 0 0 auto;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--price-color, #111827);
	border-radius: 0;
	background: var(--price-color, #111827);
	color: #ffffff;
}

.widget .woocommerce-product-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	font-size: 0;
}

.widget .woocommerce-product-search button::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.widget ul.product_list_widget .product-title {
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

/* WooCommerce's clearfix pseudo-elements would take grid cells. */
.widget_shopping_cart .woocommerce-mini-cart__buttons::before,
.widget_shopping_cart .woocommerce-mini-cart__buttons::after,
.widget_shopping_cart .woocommerce-mini-cart__total::before,
.widget_shopping_cart .woocommerce-mini-cart__total::after {
	display: none;
}

.widget_shopping_cart ul.product_list_widget li > a:not(.remove) {
	text-decoration: none;
}

/* Same specificity as WooCommerce's own mini-cart rules (this file loads later). */
.woocommerce .widget_shopping_cart .cart_list li a.remove,
.woocommerce.widget_shopping_cart .cart_list li a.remove {
	right: 0;
	left: auto;
}

.woocommerce .widget_shopping_cart .total,
.woocommerce.widget_shopping_cart .total {
	border-top: 1px solid var(--border-color, #e7e5e4);
}

.woocommerce .widget_shopping_cart .woocommerce-mini-cart__buttons::before,
.woocommerce .widget_shopping_cart .woocommerce-mini-cart__buttons::after,
.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons::before,
.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons::after,
.woocommerce .widget_shopping_cart .woocommerce-mini-cart__total::before,
.woocommerce .widget_shopping_cart .woocommerce-mini-cart__total::after {
	display: none;
}

.widget ul.product_list_widget li a,
.widget ul.product_list_widget li a:hover {
	text-decoration: none;
}

.widget ul.product_list_widget li a:hover .product-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------
   WordPress core widgets, classic and block versions: Search, Recent posts,
   Categories, Archives, Pages, Meta, Navigation menu, Recent comments,
   Calendar, Text / Custom HTML.
   ------------------------------------------------------------------------- */
.widget ul,
.widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget_recent_entries li,
.widget_categories li,
.widget_archive li,
.widget_pages li,
.widget_meta li,
.widget_nav_menu li,
.widget_recent_comments li,
.wp-block-latest-posts li,
.wp-block-categories li,
.wp-block-archives li,
.wp-block-page-list li,
.wp-block-latest-comments li {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--border-color, #e7e5e4) 70%, transparent);
	font-size: 14px;
	line-height: 1.45;
}

.widget li:last-child {
	border-bottom: 0;
}

/* Nested levels: indented, no rules between them. */
.widget li > ul,
.widget li > ol {
	margin: 6px 0 -9px 14px;
}

.widget li li {
	padding: 6px 0;
	border-bottom: 0;
}

.widget li a {
	color: var(--text-color, #334155);
	font-size: inherit;
	font-weight: inherit; /* header menu typography targets every .sub-menu a */
	text-decoration: none;
}

.widget li a:hover,
.widget li.current-cat > a,
.widget li.current-menu-item > a,
.widget li.current_page_item > a,
.widget li a[aria-current="page"] {
	color: var(--price-color, #111827);
}

.widget li a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Post counts ("(4)") sit at the end of the row. */
.widget_categories li,
.widget_archive li,
.wp-block-categories li,
.wp-block-archives li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	color: var(--light-text-color, #94a3b8);
	font-size: 12px;
}

.widget_categories li > a,
.widget_archive li > a,
.wp-block-categories li > a,
.wp-block-archives li > a {
	font-size: 14px;
}

.widget_categories li > ul,
.wp-block-categories li > ul {
	flex-basis: calc(100% - 14px);
}

.widget_recent_entries .post-date,
.wp-block-latest-posts__post-date,
.wp-block-latest-comments__comment-date {
	display: block;
	margin-top: 2px;
	color: var(--light-text-color, #64748b);
	font-size: 12px;
}

.widget_recent_comments li,
.wp-block-latest-comments__comment-meta {
	color: var(--light-text-color, #64748b);
}

.widget_recent_comments li a,
.wp-block-latest-comments__comment-meta a {
	color: var(--price-color, #111827);
	font-weight: 500;
}

.wp-block-latest-comments {
	padding: 0;
}

.wp-block-latest-comments__comment {
	margin: 0;
}

/* Dropdown mode (categories, archives). */
.widget select,
.wp-block-categories-dropdown select,
.wp-block-archives-dropdown select {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--border-color, #e7e5e4);
	border-radius: 0;
	background-color: #ffffff;
	color: var(--text-color, #334155);
	font-size: 14px;
}

/* Search: core form and the Search block. */
.widget .search-form,
.wp-block-search__inside-wrapper {
	display: flex;
	margin: 0;
}

.widget .search-form label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.widget .search-form .search-field,
.wp-block-search__input {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--border-color, #e7e5e4);
	border-right: 0;
	border-radius: 0;
	background: #ffffff;
	font-size: 14px;
}

.widget .search-form .search-submit,
.wp-block-search__button {
	flex: 0 0 auto;
	height: 42px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--price-color, #111827);
	border-radius: 0;
	background: var(--price-color, #111827);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

/* Calendar */
.widget_calendar table,
.wp-block-calendar table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	text-align: center;
}

.widget_calendar caption,
.wp-block-calendar caption {
	margin-bottom: 8px;
	color: var(--price-color, #111827);
	font-weight: 600;
}

.widget_calendar th,
.widget_calendar td,
.wp-block-calendar th,
.wp-block-calendar td {
	padding: 6px 0;
	border: 0;
}

.widget_calendar th,
.wp-block-calendar th {
	background: transparent;
	color: var(--light-text-color, #64748b);
	font-weight: 500;
}

.widget_calendar td a,
.wp-block-calendar td a {
	display: inline-block;
	min-width: 26px;
	background: var(--price-color, #111827);
	color: #ffffff;
	text-decoration: none;
}

.widget_calendar #today,
.wp-block-calendar #today {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 13px;
}

.wp-calendar-nav a {
	color: var(--text-color, #334155);
	text-decoration: none;
}

/* Text and Custom HTML keep normal inline links. */
.widget_text a,
.widget_custom_html a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.widget_text p:last-child,
.widget_custom_html p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Free-shipping progress (inc/cart.php): cart drawer and cart page.
   ------------------------------------------------------------------------- */
.mj-free-shipping-bar-wrap[hidden] {
	display: none;
}

.mj-fs-text {
	margin: 0 0 10px;
	color: var(--text-color, #334155);
	font-size: 13px;
}

.mj-fs-text strong {
	color: var(--price-color, #111827);
	font-weight: 600;
}

.mj-fs-track {
	height: 3px;
	overflow: hidden;
	background: var(--border-color, #e7e5e4);
}

.mj-fs-track span {
	display: block;
	height: 100%;
	background: var(--price-color, #111827);
	transition: width 0.4s ease;
}

.mj-free-shipping-bar-wrap.is-complete .mj-fs-track span {
	background: #15803d;
}

/* -------------------------------------------------------------------------
   WooCommerce notices on every page ("added to your cart", errors...).
   ------------------------------------------------------------------------- */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 24px;
	padding: 14px 18px 14px 48px;
	border: 1px solid var(--border-color, #e7e5e4);
	border-left: 3px solid var(--price-color, #111827);
	background: color-mix(in srgb, var(--text-color, #334155) 5%, #ffffff);
	color: var(--price-color, #111827);
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
	outline: none;
}

.woocommerce .woocommerce-error li,
.woocommerce .woocommerce-message li,
.woocommerce .woocommerce-info li {
	margin: 0;
	padding: 0;
}

.woocommerce .woocommerce-error {
	border-left-color: #b91c1c;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
	color: var(--price-color, #111827);
}

.woocommerce .woocommerce-error::before {
	color: #b91c1c;
}

.woocommerce .woocommerce-message::after {
	display: none;
}

.woocommerce .woocommerce-message .button {
	order: 2;
	float: none;
	height: 38px;
	padding: 0 18px;
	border: 1px solid var(--price-color, #111827);
	border-radius: 0;
	background: transparent;
	color: var(--price-color, #111827);
	font-size: 12px;
	font-weight: 600;
	line-height: 36px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}


/* -------------------------------------------------------------------------
   Page titles (page.php): the same display face as the shop heading.
   ------------------------------------------------------------------------- */
body.page #primary .entry-header .entry-title {
	margin: 8px 0 28px;
	color: var(--price-color, #111827);
	font-family: var(--mj-display-font, inherit);
	font-size: clamp(32px, 3.4vw, 48px);
	font-weight: 500;
	line-height: 1.1;
}

body.joom-header-premium {
	--mj-display-font: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}
