/* Header, navigation, drawers, side cart, footer. */

.f-announce { background: var(--f-ink); color: var(--f-text); text-align: center; font-size: var(--f-fs-xs); }
.f-announce p { margin: 0; padding: 9px var(--f-gutter); }

.f-header { position: sticky; top: 0; z-index: 50; background: var(--f-plum); border-bottom: 1px solid var(--f-line); }
.admin-bar .f-header { top: 32px; }
.f-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--f-header-h); gap: 16px; }
.f-burger { display: none; }
.f-nav__list { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: var(--f-fs-sm); }
.f-nav__list a { padding: 8px 0; position: relative; }
.f-nav__list a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--f-gold); transform: scaleX(0); transition: transform .25s var(--f-ease); }
.f-nav__list a:hover::after, .f-nav__list .current-menu-item a::after { transform: scaleX(1); }

.f-logo { display: inline-flex; align-items: center; gap: 10px; justify-self: center; }
.f-logo__mark { height: 46px; width: auto; }
.f-logo__word { height: 27px; width: auto; }
.f-logo--footer .f-logo__mark { height: 52px; }
.f-logo--footer .f-logo__word { height: 30px; }
.f-logo--drawer .f-logo__mark { height: 36px; }
.f-logo--drawer .f-logo__word { height: 21px; }

.f-icons { display: flex; justify-content: flex-end; gap: 4px; }
.f-cart-count {
	position: absolute; top: 2px; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 9px; background: var(--f-gold); color: var(--f-plum); font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
	font-family: var(--f-font-ui);
}
.f-cart-count[data-count="0"] { display: none; }
.f-sidecart .f-cart-count { position: static; background: none; color: var(--f-gold); font-size: inherit; display: inline; padding: 0; }
.f-wish-count { position: absolute; top: 2px; inset-inline-end: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--f-gold); font-size: 0; }

/* Drawer (mobile menu) */
.f-drawer, .f-sidecart { position: fixed; inset: 0; z-index: 100; }
.f-drawer__overlay, .f-sidecart__overlay { position: absolute; inset: 0; background: rgba(15, 9, 13, 0.62); animation: f-fade .25s var(--f-ease); }
.f-drawer__panel {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 380px);
	background: var(--f-plum); padding: 20px 24px; overflow-y: auto; animation: f-slide-start .3s var(--f-ease);
}
.f-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.f-drawer__nav { list-style: none; border-top: 1px solid var(--f-line); }
.f-drawer__nav li { border-bottom: 1px solid var(--f-line); }
.f-drawer__nav a { display: block; padding: 14px 0; font-size: var(--f-fs-md); }
.f-drawer__nav--sub { margin-top: 24px; }
.f-drawer__nav--sub a { font-size: var(--f-fs-sm); color: var(--f-muted); padding: 10px 0; }

/* Search */
/* Keep overlays below the WordPress admin bar for logged-in editors (visitors have no admin bar). */
.admin-bar .f-search, .admin-bar .f-drawer, .admin-bar .f-sidecart { top: 32px; }
@media (max-width: 782px) { .admin-bar .f-search, .admin-bar .f-drawer, .admin-bar .f-sidecart { top: 46px; } }
.f-search { position: fixed; inset-inline: 0; top: 0; z-index: 90; background: var(--f-plum); border-bottom: 1px solid var(--f-line); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.f-search__inner { display: flex; gap: 12px; align-items: center; padding-block: 18px; }
.f-search form { flex: 1; display: flex; gap: 8px; }
.f-search button[type="submit"] { min-height: 48px; padding: 0 22px; background: var(--f-gold); border: 0; color: var(--f-plum); }

/* Side cart */
.f-sidecart__panel {
	position: absolute; inset-block: 0; inset-inline-end: 0; width: min(92vw, 420px);
	display: flex; flex-direction: column; background: var(--f-plum); border-inline-start: 1px solid var(--f-line);
	animation: f-slide-end .3s var(--f-ease);
}
.f-sidecart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--f-line); }
.f-sidecart__head h2 { margin: 0; font-family: var(--f-font-display); font-size: 1.75rem; }
.f-sidecart__n { font-family: var(--f-font-latin); font-size: 1rem; color: var(--f-gold); }
.f-freeship { padding: 14px 24px 0; font-size: var(--f-fs-xs); }
.f-freeship p { margin-bottom: 8px; }
.f-freeship__bar { display: block; height: 2px; background: var(--f-line); }
.f-freeship__bar span { display: block; height: 100%; background: var(--f-gold); }
.f-sidecart .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.woocommerce-mini-cart { list-style: none; flex: 1; overflow-y: auto; padding: 8px 24px; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--f-line); font-size: var(--f-fs-sm); }
.woocommerce-mini-cart-item > a:not(.remove) { grid-column: 2; display: block; font-family: var(--f-font-latin); font-size: 1.25rem; line-height: 1.2; }
.woocommerce-mini-cart-item img { grid-row: 1 / span 3; grid-column: 1; width: 72px; height: 96px; object-fit: cover; position: absolute; inset-inline-start: 0; top: 16px; }
.woocommerce-mini-cart-item .quantity { grid-column: 2; display: block; height: auto; border: 0; color: var(--f-gold); font-family: var(--f-font-latin); }
.woocommerce-mini-cart-item dl.variation { grid-column: 2; margin: 4px 0; color: var(--f-muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.woocommerce-mini-cart-item dl.variation dt, .woocommerce-mini-cart-item dl.variation dd { margin: 0; display: inline; }
.woocommerce-mini-cart-item dl.variation dd p { display: inline; margin: 0; }
.woocommerce-mini-cart-item .remove { position: absolute; inset-inline-end: 0; top: 14px; color: var(--f-muted); font-size: 18px; line-height: 1; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 18px 24px 6px; border-top: 1px solid var(--f-line); font-size: var(--f-fs-sm); }
.woocommerce-mini-cart__total .amount { font-size: 1.6rem; color: var(--f-gold); }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; padding: 12px 24px 24px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .checkout { order: -1; }
.woocommerce-mini-cart__empty-message { padding: 32px 24px; color: var(--f-muted); text-align: center; }

@keyframes f-fade { from { opacity: 0; } }
@keyframes f-slide-start { from { transform: translateX(100%); } }
@keyframes f-slide-end { from { transform: translateX(-100%); } }
html[dir="ltr"] .f-drawer__panel { animation-name: f-slide-end; }
html[dir="ltr"] .f-sidecart__panel { animation-name: f-slide-start; }
body.f-lock { overflow: hidden; }

/* Footer */
.f-footer { background: var(--f-footer); color: var(--f-text); font-size: var(--f-fs-sm); padding-top: 40px; }
.f-trust { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--f-line); }
.f-trust__item { display: flex; align-items: center; gap: 14px; }
.f-trust__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--f-gold); border-radius: 50%; color: var(--f-gold); }
.f-trust__item strong { display: block; font-weight: 500; }
.f-trust__item small { display: block; color: var(--f-muted); font-size: var(--f-fs-xs); }
.f-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.6fr; gap: 32px; padding-block: 40px; }
.f-footer__brand p { color: var(--f-muted); margin-top: 18px; max-width: 30ch; }
.f-footer__brand .f-logo { justify-content: flex-start; }
.f-fcol summary { list-style: none; color: var(--f-gold); margin-bottom: 14px; cursor: default; font-size: var(--f-fs-sm); }
.f-fcol summary::-webkit-details-marker { display: none; }
.f-fcol__list { list-style: none; display: grid; gap: 10px; }
.f-fcol__list a:hover { color: var(--f-gold-light); }
.f-news__title { font-family: var(--f-font-display); font-size: 1.9rem; margin-bottom: 8px; }
.f-news p { color: var(--f-muted); }
.f-news__form { display: flex; margin-top: 12px; }
.f-news__form input { flex: 1; border-inline-end: 0; }
.f-news__form .f-btn { min-width: 110px; }
.f-news__soon { font-size: var(--f-fs-xs); margin-top: 6px; }
.f-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--f-line); color: var(--f-muted); font-size: var(--f-fs-xs); }
.f-footer__bottom p { margin: 0; }

/* Breadcrumb */
.f-bc { font-size: var(--f-fs-xs); color: var(--f-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.f-bc a:hover { color: var(--f-gold-light); }
.f-bc__sep { opacity: .6; }

/* Generic page */
.f-page { padding-block: clamp(32px, 5vw, 64px); }
.f-page__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.f-prose { max-width: 100%; }
.f-page:not(.f-page--wc) .f-prose { max-width: 760px; }
.f-list { list-style: none; display: grid; gap: 12px; }
.f-404 { text-align: center; padding-block: 120px; }

/* Tablet */
@media (max-width: 1199px) {
	.f-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.f-footer__brand, .f-news { grid-column: span 3; }
	.f-trust { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 900px) {
	:root { --f-header-h: 64px; }
	.f-burger { display: inline-grid; }
	.f-nav { display: none; }
	.f-header__inner { grid-template-columns: auto 1fr auto; }
	.f-logo__mark { height: 36px; }
	.f-logo__word { height: 21px; }
	.f-hide-sm { display: none; }
	.f-footer__grid { grid-template-columns: 1fr; gap: 0; padding-block: 24px; }
	.f-footer__brand, .f-news { grid-column: auto; }
	.f-footer__brand { padding-bottom: 20px; }
	.f-fcol { border-top: 1px solid var(--f-line); }
	.f-fcol summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin: 0; color: var(--f-text); cursor: pointer; }
	.f-fcol summary::after { content: "+"; color: var(--f-gold); font-size: 18px; }
	.f-fcol[open] summary::after { content: "−"; }
	.f-fcol__list { padding-bottom: 16px; }
	.f-news { border-top: 1px solid var(--f-line); padding-top: 24px; }
	.f-footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 600px) {
	.f-trust { grid-template-columns: 1fr 1fr; gap: 16px; }
	.f-trust__ico { width: 40px; height: 40px; }
	.admin-bar .f-header { top: 0; }
}
