/*
 * Yen's catalog: shop, category and product pages only.
 * Loaded by wp-content/novamira-sandbox/yens-catalog.php when WooCommerce reports
 * a shop, product category/tag or product page. Header and footer are untouched.
 */

@font-face {
	font-family: "Marcellus";
	src: url("fonts/marcellus-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.yens-catalog {
	--yc-ink: #2b2f36;
	--yc-muted: #6b6f76;
	--yc-line: #e7e4e1;
	--yc-panel: #f6f5f3;
	--yc-accent: #3e4a5c;
	--yc-accent-hover: #323c4b;
	--yc-blush: #f3e6e8;
	--yc-link: #9a3424;
	--yc-wa: #178a49;
	--yc-wa-soft: #e7f4eb;
	--yc-display: "Marcellus", "Times New Roman", serif;
	--yc-body: Lato, Helvetica, Arial, sans-serif;
}

.yens-catalog .yens-ico { width: 19px; height: 19px; flex: none; }
.yens-catalog :where(.yens-card, .yens-pdp, .yens-chips, .yens-related, .yens-ibar, .yens-modal, .yens-lb) :where(button) {
	font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: inherit; min-height: 0; border-radius: 0;
}

/* ---------- Shop and category pages ---------- */
/* Neve keeps 30% free for a shop sidebar this site does not use. */
.yens-catalog .nv-shop.col { max-width: 100% !important; flex: 1 1 100% !important; }

/* Category buttons and the sort menu share one row; everything else spans the width. */
.yens-catalog .nv-shop.col {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 24px;
	align-items: center;
}
.yens-catalog .nv-shop.col > * { grid-column: 1 / -1; min-width: 0; }
/* Breadcrumb and result count are hidden on shop and category pages for a cleaner top. */
.yens-catalog .nv-shop.col > .nv-bc-count-wrap { display: none !important; }
.yens-catalog .nv-shop.col > .woocommerce-products-header { grid-row: 2; grid-column: 1; margin: 0 0 26px !important; padding: 0 !important; }
.yens-catalog .nv-shop.col > .nv-woo-filters { grid-row: 2; grid-column: 2; margin: 0 0 26px !important; padding: 0 !important; justify-self: end; }
.yens-catalog .woocommerce-products-header .yens-chips { margin: 0; }
.yens-catalog .nv-woo-filters .woocommerce-ordering { margin: 0 !important; float: none !important; }
.yens-catalog .woocommerce-products-header__title { font-family: var(--yc-display); font-weight: 400; }
.yens-catalog .term-description,
.yens-catalog .page-description {
	background: var(--yc-panel);
	padding: 16px 20px;
	font-size: 14px;
	color: var(--yc-muted);
	margin-bottom: 20px;
}
.yens-catalog .page-description > *:last-child,
.yens-catalog .term-description > *:last-child { margin-bottom: 0; }

.yens-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.yens-chips a {
	display: inline-block; border: 1px solid var(--yc-line); padding: 8px 15px; border-radius: 999px;
	font-size: 13.5px; line-height: 1.3; background: #fff; color: var(--yc-ink); text-decoration: none;
}
.yens-chips a:hover { border-color: #c9c5c1; }
.yens-chips a[aria-current="page"] { background: var(--yc-ink); border-color: var(--yc-ink); color: #fff; }

/* Subcategory row (e.g. Akoya > Strands / Loose Pairs): quieter underline tabs under the main chips. */
.yens-catalog .woocommerce-products-header .yens-chips--sub,
.yens-chips--sub { gap: 4px 24px; margin: 16px 0 0 4px; }
.yens-chips--sub a {
	border: 0; border-bottom: 1.5px solid transparent; border-radius: 0; background: none;
	padding: 4px 0; font-size: 13.5px; color: var(--yc-muted);
}
.yens-chips--sub a:hover { color: var(--yc-ink); border-bottom-color: var(--yc-line); }
.yens-chips--sub a[aria-current="page"] { background: none; color: var(--yc-ink); border-bottom-color: var(--yc-ink); }

.yens-catalog ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 22px;
	margin: 0 0 48px !important;
	padding: 0 !important;
	list-style: none;
}
.yens-catalog ul.products::before,
.yens-catalog ul.products::after { display: none !important; }
.yens-catalog ul.products li.product {
	width: auto !important; max-width: none !important; float: none !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; box-shadow: none !important; background: none !important; text-align: left !important; min-width: 0;
}
.yens-card { display: flex; flex-direction: column; min-width: 0; }
.yens-card__ph {
	display: block; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; background: var(--yc-panel); border: 1px solid var(--yc-line);
}
.yens-card__ph img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform .4s; }
.yens-card__ph:hover img { transform: scale(1.03); }
.yens-catalog .yens-card__title {
	font-family: var(--yc-display); font-weight: 400; font-size: 17.5px; line-height: 1.3; margin: 14px 0 4px; padding: 0; text-wrap: balance;
}
.yens-card__title a { color: var(--yc-ink); text-decoration: none; }
.yens-card__title a:hover { color: var(--yc-link); }
.yens-card__meta { margin: 0 0 12px; font-size: 13px; color: var(--yc-muted); }
.yens-card__meta .amount { color: var(--yc-ink); }
.yens-card__add { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--yc-muted); cursor: pointer; margin-top: auto; }
.yens-card__add input,
.yens-modal input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--yc-accent); }

/* ---------- Product page ---------- */
.yens-catalog.single-product div.product > .summary,
.yens-catalog.single-product div.product > .woocommerce-product-gallery { display: none !important; }
.yens-catalog.single-product div.product { display: block !important; }
.yens-pdp {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin: 8px 0 0; color: var(--yc-ink); font-family: var(--yc-body);
}
.yens-pdp__media { background: var(--yc-panel); padding: 28px 24px 22px; min-width: 0; }
.yens-pdp__main {
	position: relative; display: grid !important; place-items: center; width: 100%; max-width: 640px; aspect-ratio: 1 / 1; margin: 0 auto !important; cursor: zoom-in !important;
}
.yens-pdp__main img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; margin: 0 !important; }
.yens-zoom-hint {
	position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92);
	color: var(--yc-ink); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 7px 11px; border: 1px solid var(--yc-line);
}
.yens-zoom-hint .yens-ico { width: 15px; height: 15px; }
.yens-pdp__thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.yens-pdp__thumbs button { width: 64px !important; height: 64px; border: 1px solid transparent !important; background: #fff !important; overflow: hidden; }
.yens-pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.yens-pdp__thumbs button[aria-current="true"] { border-color: var(--yc-ink) !important; }
.yens-pdp__panel { padding: 36px 0 40px clamp(20px, 5vw, 64px); min-width: 0; }
.yens-catalog .yens-pdp__title {
	font-family: var(--yc-display); font-weight: 400; font-size: clamp(26px, 2.7vw, 34px); line-height: 1.22; margin: 0 0 10px; text-wrap: balance; color: var(--yc-ink);
}
.yens-pdp__price { margin: 0 0 24px; color: var(--yc-muted); font-size: 14.5px; letter-spacing: .03em; }
.yens-pdp__price a { color: var(--yc-link); }
.yens-row {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--yc-line);
	min-height: 58px; padding: 8px 0; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
}
.yens-row:last-child { border-bottom: 1px solid var(--yc-line); }
.yens-row > span, .yens-row > label { min-width: 0; margin: 0; }
.yens-row b { font-weight: 400; color: var(--yc-muted); margin-left: 6px; letter-spacing: .08em; }
.yens-catalog .yens-row select {
	font: inherit; font-size: 13px; letter-spacing: .04em; text-transform: none; border: 1px solid var(--yc-line); background-color: #fff; color: var(--yc-ink);
	padding: 8px 30px 8px 10px; max-width: 60%; width: auto; min-height: 0; margin: 0;
}
.yens-buy { display: flex; gap: 14px; margin: 26px 0 28px; }
.yens-qty { display: inline-flex; align-items: center; border: 1px solid #c3c6cb; min-height: 56px; }
.yens-qty button { width: 40px; height: 54px; font-size: 18px !important; }
.yens-qty output { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.yens-catalog .yens-btn {
	flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 10px; background: var(--yc-accent) !important; color: #fff !important;
	min-height: 56px !important; font-size: 13px !important; letter-spacing: .22em !important; text-transform: uppercase !important;
}
.yens-catalog .yens-btn:hover { background: var(--yc-accent-hover) !important; }
.yens-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 32px; }
.yens-acts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.yens-acts > * {
	display: flex !important; align-items: center; gap: 13px; font-size: 12px !important; letter-spacing: .16em !important; text-transform: uppercase !important;
	text-decoration: none; text-align: left; line-height: 1.35; color: var(--yc-ink) !important;
}
.yens-acts i { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--yc-blush); display: grid; place-items: center; font-style: normal; }
.yens-acts .yens-wa i { background: var(--yc-wa-soft); color: var(--yc-wa); }
.yens-acts [aria-pressed="true"] i { background: var(--yc-ink); color: #fff; }
.yens-acc details { border-top: 1px solid var(--yc-line); }
.yens-acc details:last-child { border-bottom: 1px solid var(--yc-line); }
.yens-acc summary {
	list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 19px 0;
	font-family: var(--yc-display); font-size: 20px; cursor: pointer; color: var(--yc-ink);
}
.yens-acc summary::-webkit-details-marker { display: none; }
.yens-acc summary::after {
	content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--yc-ink); border-bottom: 1.5px solid var(--yc-ink);
	transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.yens-acc details[open] summary::after { transform: rotate(225deg); }
.yens-acc__body { padding-bottom: 22px; color: var(--yc-muted); line-height: 1.7; }
.yens-acc__body p { margin: 0 0 12px; }
.yens-acc__body a { color: var(--yc-link); }
.yens-acc__body video { max-width: 100%; }

.yens-related { padding: 60px 0 40px; }
.yens-catalog .yens-related h2 { font-family: var(--yc-display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); text-align: center; margin: 0 0 30px; }
.yens-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }

/* ---------- Inquiry list bar ---------- */
.yens-ibar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: var(--yc-ink); color: #fff; font-family: var(--yc-body);
	padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.yens-ibar__in { max-width: 1170px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-right: 72px; }
.yens-ibar .yens-ibar__go { background: #fff !important; color: var(--yc-ink) !important; padding: 11px 18px !important; font-size: 12.5px !important; letter-spacing: .14em !important; text-transform: uppercase !important; font-weight: 700; }
.yens-ibar .yens-ibar__clr { color: #c9ccd1 !important; font-size: 13px; text-decoration: underline; margin-right: 14px !important; }

/* ---------- WhatsApp chat button ---------- */
.yens-chat {
	position: fixed; z-index: 9991; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	display: flex; align-items: center; gap: 9px; background: var(--yc-wa); color: #fff !important; padding: 13px 20px; border-radius: 999px;
	text-decoration: none !important; font-weight: 700; font-family: var(--yc-body); font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.yens-chat:hover { filter: brightness(1.08); }
.yens-has-bar .yens-chat { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Inquiry modal ---------- */
.yens-modal {
	position: fixed; inset: 0; z-index: 99990; background: rgba(20,22,26,.5); display: grid; place-items: center; overflow: auto;
	padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	font-family: var(--yc-body); color: var(--yc-ink);
}
.yens-modal[hidden], .yens-lb[hidden], .yens-ibar[hidden] { display: none !important; }
.yens-modal__card { background: #fff; width: min(600px, 100%); padding: 30px; position: relative; max-height: 100%; overflow: auto; }
.yens-modal__close { position: absolute !important; top: 12px; right: 14px; font-size: 28px !important; width: 38px; height: 38px; line-height: 1; }
.yens-catalog .yens-modal h2 { font-family: var(--yc-display); font-weight: 400; font-size: 27px; margin: 0 0 4px; }
.yens-modal__sub { margin: 0 0 18px; color: var(--yc-muted); font-size: 14px; }
.yens-modal__items { display: grid; gap: 8px; margin-bottom: 18px; }
.yens-modal__item { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; background: var(--yc-panel); padding: 6px 12px 6px 6px; font-size: 13.5px; line-height: 1.35; min-width: 0; }
.yens-modal__item img { width: 50px; height: 50px; object-fit: cover; }
.yens-modal__item small { display: block; color: var(--yc-muted); overflow-wrap: anywhere; }
.yens-modal .wpforms-container { margin: 0 !important; }
.yens-modal .wpforms-field { padding: 6px 0 !important; }
.yens-modal .wpforms-field-label { font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--yc-muted) !important; font-weight: 700 !important; }
.yens-modal .wpforms-field input,
.yens-modal .wpforms-field textarea { max-width: 100% !important; width: 100% !important; border-radius: 0 !important; border-color: #d5d7da !important; }
.yens-modal .wpforms-field textarea { min-height: 130px !important; }
.yens-modal .wpforms-submit-container { padding-top: 10px !important; }
.yens-modal .wpforms-submit {
	width: 100% !important; min-height: 52px; background: var(--yc-accent) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important;
	font-size: 13px !important; letter-spacing: .2em; text-transform: uppercase;
}
.yens-modal__alt { margin: 10px 0 0; font-size: 14px; color: var(--yc-muted); }
.yens-modal__alt a { color: var(--yc-wa); font-weight: 700; }

/* ---------- Photo viewer ---------- */
.yens-lb {
	position: fixed; inset: 0; z-index: 99995; background: rgba(14,15,17,.94); display: grid; grid-template-rows: auto 1fr auto; color: #fff;
	padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
	font-family: var(--yc-body);
}
.yens-lb__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .12em; color: #c9cbcf; min-height: 44px; padding: 0 6px; }
.yens-lb__top button { font-size: 32px !important; width: 44px; height: 44px; line-height: 1; color: #fff !important; }
.yens-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.yens-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-out; }
.yens-lb__nav { position: absolute !important; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50% !important; background: rgba(255,255,255,.14) !important; color: #fff !important; font-size: 26px !important; display: grid !important; place-items: center; }
.yens-lb__nav:hover { background: rgba(255,255,255,.26) !important; }
.yens-lb__prev { left: 6px; }
.yens-lb__next { right: 6px; }
.yens-lb__thumbs { display: flex; justify-content: center; gap: 8px; padding-top: 12px; flex-wrap: wrap; }
.yens-lb__thumbs button { width: 52px; height: 52px; opacity: .5; border: 1px solid transparent !important; overflow: hidden; }
.yens-lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.yens-lb__thumbs button[aria-current="true"] { opacity: 1; border-color: #fff !important; }
.yens-lock { overflow: hidden; }

.yens-catalog :where(.yens-pdp, .yens-card, .yens-chips, .yens-ibar, .yens-modal, .yens-lb, .yens-chat) :focus-visible { outline: 2px solid #2f6fd0; outline-offset: 2px; }

@media (max-width: 960px) {
	.yens-catalog ul.products, .yens-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.yens-pdp { grid-template-columns: minmax(0, 1fr); }
	.yens-pdp__panel { padding-left: 0; }
}
@media (max-width: 700px) {
	.yens-catalog .nv-shop.col > .woocommerce-products-header { grid-column: 1 / -1; margin-bottom: 14px !important; }
	.yens-catalog .nv-shop.col > .nv-woo-filters { grid-row: 3; grid-column: 1 / -1; justify-self: start; }
	.yens-catalog ul.products, .yens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
	.yens-catalog .yens-card__title { font-size: 15.5px; }
	.yens-acts { grid-template-columns: 1fr; }
	.yens-pdp__media { padding: 16px 12px; }
	.yens-modal__card { padding: 24px 18px; }
	.yens-chat span { display: none; }
	.yens-chat { padding: 14px; }
	.yens-ibar__in { padding-right: 60px; }
	.yens-has-bar .yens-chat { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
	.yens-catalog * { transition: none !important; }
}


/* ---------- Gallery: no theme hover fill; viewer fits whole photo ---------- */
.yens-catalog .yens-pdp__main,
.yens-catalog .yens-pdp__main:hover,
.yens-catalog .yens-pdp__main:focus,
.yens-catalog .yens-pdp__main:active,
.yens-catalog .yens-lb__top button:hover,
.yens-catalog .yens-lb__top button:focus,
.yens-catalog .yens-lb__thumbs button,
.yens-catalog .yens-lb__thumbs button:hover { background: transparent !important; box-shadow: none !important; }
.yens-lb__stage img { position: static; display: block; width: auto !important; height: auto !important; max-width: calc(100vw - 32px) !important; max-height: calc(100vh - 170px) !important; margin: 0 auto !important; object-fit: contain; }
.yens-lb__nav[hidden] { display: none !important; }

/* Photo panel ends with the photos (and thumbnails) instead of stretching to the page bottom. */
.yens-pdp__media { align-self: start; padding-top: 32px; padding-bottom: 32px; }
@media (max-width: 700px) {
	.yens-pdp__media { padding-top: 16px; padding-bottom: 16px; }
}

/* Plain catalog buttons (inquiry list, photos/video, qty, thumbs, close) keep a clear background on hover/focus
   instead of the theme's red button:hover. Buttons with their own fill (.yens-btn, .yens-ibar__go, viewer arrows) use !important and are unaffected. */
.yens-catalog :is(.yens-card, .yens-pdp, .yens-acts, .yens-chips, .yens-related, .yens-ibar, .yens-modal, .yens-lb) button:is(:hover, :focus, :active) {
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	border-color: transparent;
	color: inherit;
}
