/*
 * Cicka Design – header and footer (every page).
 *
 * Styles Astra's Header/Footer Builder markup only; the content (menus,
 * logo, social links, top bar text, footer widgets, copyright) is edited in
 * the admin as before. Breakpoints follow Astra: tablet <= 921px,
 * mobile <= 544px. The withdrawal button keeps withdrawal-footer.css.
 */

:root {
	--chr-ink: #3A2B2B;
	--chr-ink-2: #5A4846;
	--chr-muted: #7A6A68;
	--chr-accent: #A55F59;
	--chr-accent-hover: #8F4E49;
	--chr-blush: #F8E6E3;
	--chr-line: #EBD3CF;
	--chr-line-soft: #F1E3E0;
	--chr-bg: #FFFCFA;
}

/* =========================================================================
 * Header – top bar (Above Header row)
 * ====================================================================== */
#masthead .ast-above-header-bar,
#masthead .ast-above-header-bar .site-above-header-wrap {
	min-height: 38px;
	border: 0;
	background: var(--chr-blush);
}
#masthead .ast-above-header-bar .ast-builder-grid-row { min-height: 38px; }
#masthead .ast-above-header-bar,
#masthead .ast-above-header-bar .ast-builder-html-element,
#masthead .ast-above-header-bar .ast-builder-html-element p {
	color: var(--chr-ink-2);
	font-size: 12.5px;
	line-height: 1.4;
}
#masthead .ast-above-header-bar .ast-builder-html-element p { margin: 0; }
#masthead .ast-above-header-bar .ast-builder-html-element a { color: var(--chr-ink-2); }
#masthead .ast-above-header-bar .ast-builder-html-element a:hover { color: var(--chr-accent); }

/* Social links (header) */
#masthead .header-social-inner-wrap { display: flex; flex-wrap: wrap; gap: 18px; }
#masthead .header-social-inner-wrap .header-social-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--chr-ink-2);
	font-size: 12.5px;
	line-height: 1.4;
}
#masthead .header-social-inner-wrap .header-social-item .social-item-label { color: inherit; font-size: inherit; }
#masthead .header-social-inner-wrap .header-social-item svg { width: 15px; height: 15px; fill: currentColor; }
#masthead .header-social-inner-wrap .header-social-item:hover,
#masthead .header-social-inner-wrap .header-social-item:focus-visible { color: var(--chr-accent); }

/* =========================================================================
 * Header – main bar (Primary Header row)
 * ====================================================================== */
#masthead .ast-primary-header-bar {
	border-bottom: 1px solid var(--chr-line-soft);
	background: var(--chr-bg);
}
#ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap,
#ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { min-height: 84px; }

/* Logo (the image itself is set in Customize › Site Identity). */
#masthead .site-logo-img .custom-logo-link img,
#masthead .site-logo-img img.custom-logo {
	width: 68px;
	max-width: 68px;
	height: auto;
}
#masthead .site-logo-img { padding-right: 0; }
#masthead .ast-primary-header-bar .site-branding { padding-top: 8px; padding-bottom: 8px; }
#masthead .site-logo-img .custom-logo-link { display: block; line-height: 0; }

/* Menu – soft pills, current page highlighted. */
#ast-desktop-header .main-header-menu { gap: 4px; }
#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
	display: flex;
	align-items: center;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 9px 15px;
	border-radius: 999px;
	color: var(--chr-ink);
	font-size: 15px;
	line-height: 1.3;
	transition: background-color .2s ease, color .2s ease;
}
#ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
#ast-desktop-header .main-header-menu > .menu-item:hover > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item > .menu-link:focus-visible {
	background: var(--chr-blush);
	color: var(--chr-ink);
}
#ast-desktop-header .main-header-menu > .menu-item.current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item.current-menu-ancestor > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item.current_page_item > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item.current-menu-parent > .menu-link {
	background: var(--chr-blush);
	color: var(--chr-accent);
}
/* Drop-down menus (if a menu item gets children). */
#ast-desktop-header .main-header-menu .sub-menu {
	padding: 8px;
	border: 1px solid var(--chr-line-soft);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(58, 43, 43, .12);
}
#ast-desktop-header .main-header-menu .sub-menu .menu-link {
	padding: 9px 14px;
	border: 0;
	border-radius: 10px;
	color: var(--chr-ink);
	font-size: 14px;
}
#ast-desktop-header .main-header-menu .sub-menu .menu-link:hover { background: var(--chr-blush); color: var(--chr-accent); }

/* Account icon (if shown) – a round button. */
#masthead .ast-header-account-link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--chr-line);
	border-radius: 50%;
	background: #fff;
	color: var(--chr-ink);
}
#masthead .ast-header-account-link:hover { border-color: var(--chr-accent); color: var(--chr-accent); }
#masthead .ast-header-account-link svg { width: 18px; height: 18px; fill: currentColor; }

/*
 * Cart – rounded button: bag icon with a count badge, then the total.
 * Astra prints one of two icon types (set in Header Builder › Cart):
 * the default "count box" (.ast-cart-menu-wrap > .count) or an icon such as
 * the bag (.ast-addon-cart-wrap > .astra-icon[data-cart-total]). The whole
 * link is the button and both types are drawn as the same bag + badge.
 */
#masthead .ast-header-woo-cart .ast-site-header-cart .cart-container {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 14px;
	padding: 9px 16px 9px 12px;
	border: 1px solid var(--chr-line);
	border-radius: 999px;
	background: #fff;
	color: var(--chr-ink);
	line-height: 1;
	transition: border-color .2s ease;
}
#masthead .ast-header-woo-cart .ast-site-header-cart .cart-container:hover,
#masthead .ast-header-woo-cart .ast-site-header-cart .cart-container:focus-visible { border-color: var(--chr-accent); }
/* Icon-type wrapper: no box of its own inside the button. */
#masthead .ast-header-woo-cart .ast-addon-cart-wrap {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	line-height: 1;
}
#masthead .ast-header-woo-cart .ast-woo-header-cart-info-wrap { padding: 0; color: var(--chr-ink); font-size: 14px; font-weight: 500; line-height: 1.3; }

/* Default "count box" icon → bag icon with badge. */
#masthead .ast-header-woo-cart .ast-cart-menu-wrap {
	position: relative;
	display: block;
	flex: none;
	width: 20px;
	height: 20px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	line-height: 1;
}
/* The bag, drawn behind the count. */
#masthead .ast-header-woo-cart .ast-cart-menu-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--chr-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
#masthead .ast-header-woo-cart .ast-cart-menu-wrap::after,
#masthead .ast-header-woo-cart .ast-cart-menu-wrap .count::before,
#masthead .ast-header-woo-cart .ast-cart-menu-wrap .count::after { display: none; content: none; }
/* Astra's count becomes the badge. */
#masthead .ast-header-woo-cart .ast-cart-menu-wrap .count {
	position: absolute;
	top: -8px;
	right: -9px;
	left: auto;
	display: block;
	min-width: 18px;
	min-height: 0; /* Astra sets 2.1em, which stretched the badge. */
	height: 18px;
	margin: 0;
	padding: 0 5px;
	border: 0;
	border-radius: 999px;
	background: var(--chr-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	text-align: center;
	transform: none;
}
#masthead .ast-header-woo-cart .ast-cart-menu-wrap .count .ast-count-text {
	display: inline;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
}
#masthead .ast-header-woo-cart .ast-woo-header-cart-total .amount { color: inherit; }
#masthead .ast-header-woo-cart .astra-icon.ast-icon-shopping-bag { position: relative; display: grid; place-items: center; line-height: 1; }
#masthead .ast-header-woo-cart .astra-icon .ast-icon svg { width: 20px; height: 20px; fill: var(--chr-ink); }
#masthead .ast-header-woo-cart .astra-icon.ast-icon-shopping-bag::after {
	content: attr(data-cart-total);
	position: absolute;
	top: -8px;
	right: -9px;
	left: auto;
	min-width: 18px;
	height: 18px;
	margin: 0;
	padding: 0 5px;
	border: 0;
	border-radius: 999px;
	background: var(--chr-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	text-align: center;
	transform: none;
}

/* =========================================================================
 * Header – tablet and phone
 * ====================================================================== */
/* Edge to edge (the Header Builder's 20px spacing made it a floating box). */
.ast-header-break-point #masthead #ast-mobile-header .ast-primary-header-bar.main-header-bar { margin: 0; padding: 0 16px; }
#ast-mobile-header .ast-primary-header-bar .site-primary-header-wrap,
#ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row { min-height: 66px; }
/* Cart and menu button: same height, centred on one line, 8px apart. */
#ast-mobile-header .site-header-primary-section-right { gap: 8px; }
#ast-mobile-header .site-header-primary-section-right > .ast-builder-layout-element { margin: 0; padding-left: 0; padding-right: 0; }
#ast-mobile-header .ast-header-woo-cart,
#ast-mobile-header .ast-header-woo-cart .ast-site-header-cart,
#ast-mobile-header .ast-header-woo-cart .ast-site-header-cart-li { display: flex; align-items: center; height: auto; line-height: 1; }
#ast-mobile-header .ast-header-woo-cart .ast-site-header-cart .cart-container { min-height: 42px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 544px) {
	/* Icon only on phones: a 42px circle like the menu button. */
	#ast-mobile-header .ast-header-woo-cart .ast-site-header-cart .cart-container { width: 42px; height: 42px; padding: 0; justify-content: center; }
}
#ast-mobile-header .site-logo-img .custom-logo-link img,
#ast-mobile-header .site-logo-img img.custom-logo { width: 68px; max-width: 68px; }
#ast-mobile-header .ast-primary-header-bar .site-branding { padding-top: 4px; padding-bottom: 4px; }
#ast-mobile-header .ast-header-woo-cart .ast-addon-cart-wrap { padding: 8px 12px 8px 10px; }

/* Round menu button */
#ast-mobile-header .menu-toggle.main-header-menu-toggle {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--chr-line);
	border-radius: 50%;
	background: #fff;
	color: var(--chr-ink);
}
#ast-mobile-header .menu-toggle.main-header-menu-toggle:hover,
#ast-mobile-header .menu-toggle.main-header-menu-toggle:focus-visible { border-color: var(--chr-accent); color: var(--chr-accent); }
#ast-mobile-header .menu-toggle .mobile-menu-toggle-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* Opened menu (drop-down) – large tap-friendly rows. */
#ast-mobile-header .ast-mobile-header-content {
	padding: 10px 16px 22px;
	border-bottom: 1px solid var(--chr-line-soft);
	background: var(--chr-bg);
	box-shadow: 0 18px 30px rgba(58, 43, 43, .08);
}
#ast-mobile-header .ast-mobile-header-content .main-header-menu { border: 0; background: transparent; }
#ast-mobile-header .ast-mobile-header-content .main-header-menu .menu-item { border: 0; }
#ast-mobile-header .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 4px;
	border: 0;
	border-bottom: 1px solid var(--chr-line-soft);
	background: transparent;
	color: var(--chr-ink);
	font-size: 17px;
	line-height: 1.3;
}
#ast-mobile-header .ast-mobile-header-content .main-header-menu > .menu-item:not(.menu-item-has-children) > .menu-link::after {
	content: "\2192";
	color: var(--chr-muted);
	font-size: 15px;
}
#ast-mobile-header .ast-mobile-header-content .main-header-menu > .menu-item.current-menu-item > .menu-link,
#ast-mobile-header .ast-mobile-header-content .main-header-menu > .menu-item.current-menu-ancestor > .menu-link { color: var(--chr-accent); }
#ast-mobile-header .ast-mobile-header-content .sub-menu .menu-link {
	padding: 11px 4px 11px 16px;
	border: 0;
	background: transparent;
	color: var(--chr-ink-2);
	font-size: 15px;
}
/* Items in the opened menu sit right under each other (the Customizer's
 * "inner element spacing" would otherwise push the social links far down). */
#ast-mobile-header .ast-mobile-header-content > * { padding-top: 0; padding-bottom: 0; }
/* Social links at the bottom of the opened menu (inc/site-chrome.php moves
 * them there), lined up with the menu rows. */
#ast-mobile-header .ast-mobile-header-content > .site-header-focus-item { padding: 0 4px; }
#ast-mobile-header .ast-mobile-header-content .header-social-inner-wrap { gap: 8px; margin-top: 20px; }
#ast-mobile-header .ast-mobile-header-content .header-social-item { padding: 8px 14px; border: 1px solid var(--chr-line); border-radius: 999px; font-size: 13px; }

/* =========================================================================
 * Footer – columns (Above Footer row, widgets from Appearance › Widgets)
 * ====================================================================== */
footer.site-footer { background: var(--chr-blush); }
.site-footer .site-above-footer-wrap {
	margin: 0;
	padding-top: 64px;
	padding-bottom: 0;
	border: 0;
	background: var(--chr-blush);
}
.site-footer .site-above-footer-inner-wrap { gap: 40px; }
@media (min-width: 922px) {
	/* Four columns: a little more room for the first and the last one. */
	.site-footer .site-above-footer-inner-wrap:has(> .site-footer-section-4):not(:has(> .site-footer-section-5)) {
		grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
	}
}
.site-footer .site-above-footer-wrap,
.site-footer .site-above-footer-wrap p,
.site-footer .site-above-footer-wrap li {
	color: var(--chr-ink-2);
	font-size: 15px;
	line-height: 1.65;
}
.site-footer .site-above-footer-wrap .widget { margin-bottom: 0; }
/* The grid gap spaces the columns; Astra's own margins would add to it. */
.site-footer .site-above-footer-inner-wrap > .site-footer-section { margin-bottom: 0; }
.site-footer .site-above-footer-wrap .footer-widget-area { margin-top: 0; margin-bottom: 0; }
.site-footer .site-above-footer-wrap .widget-title {
	margin: 4px 0 16px;
	padding: 0;
	color: var(--chr-accent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}
.site-footer .site-above-footer-wrap .widget_nav_menu ul { margin: 0; padding: 0; list-style: none; }
.site-footer .site-above-footer-wrap .widget_nav_menu li { margin: 0 0 10px; padding: 0; }
.site-footer .site-above-footer-wrap a { color: var(--chr-ink-2); text-decoration: none; transition: color .2s ease; }
.site-footer .site-above-footer-wrap a:hover,
.site-footer .site-above-footer-wrap a:focus-visible { color: var(--chr-accent); }
.site-footer .site-above-footer-wrap .textwidget p { margin: 0 0 14px; }
.site-footer .site-above-footer-wrap .textwidget strong { font-weight: 500; }
.site-footer .site-above-footer-wrap .textwidget a:not([href^="mailto:"]) { text-decoration: underline; text-underline-offset: 3px; }
/* A picture in a text widget (the logo). */
.site-footer .site-above-footer-wrap .textwidget img { display: block; width: 92px; height: auto; margin: 0 0 4px; }

/* An email address in a footer text widget becomes a button. */
.site-footer .site-above-footer-wrap .textwidget a[href^="mailto:"] {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-top: 14px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--chr-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.site-footer .site-above-footer-wrap .textwidget a[href^="mailto:"]::before {
	content: "";
	flex: none;
	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='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%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='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-footer .site-above-footer-wrap .textwidget a[href^="mailto:"] strong { font-weight: inherit; }
.site-footer .site-above-footer-wrap .textwidget a[href^="mailto:"]:hover,
.site-footer .site-above-footer-wrap .textwidget a[href^="mailto:"]:focus-visible { background: var(--chr-accent-hover); color: #fff; }

/* Social links (footer) – white pills. */
.site-footer .footer-social-inner-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.site-footer .footer-social-inner-wrap .footer-social-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--chr-ink);
	font-size: 13px;
	line-height: 1.2;
}
.site-footer .footer-social-inner-wrap .footer-social-item .social-item-label { color: inherit; font-size: inherit; }
.site-footer .footer-social-inner-wrap .footer-social-item svg { width: 15px; height: 15px; fill: currentColor; }
.site-footer .footer-social-inner-wrap .footer-social-item:hover,
.site-footer .footer-social-inner-wrap .footer-social-item:focus-visible { color: var(--chr-accent); }

/* =========================================================================
 * Footer – bottom bar (Below Footer row: copyright + withdrawal button)
 * ====================================================================== */
.site-footer .site-below-footer-wrap {
	padding-top: 0;
	padding-bottom: 0;
	border: 0;
	background: var(--chr-blush);
}
.site-footer .site-below-footer-wrap .site-below-footer-inner-wrap {
	min-height: 0;
	margin-top: 52px;
	padding: 20px 0 26px;
	border-top: 1px solid var(--chr-line);
}
.site-footer .site-below-footer-wrap,
.site-footer .site-below-footer-wrap .ast-footer-copyright,
.site-footer .site-below-footer-wrap .ast-footer-copyright p {
	color: var(--chr-muted);
	font-size: 13px;
}

/* =========================================================================
 * Tablet and phone
 * ====================================================================== */
@media (min-width: 545px) and (max-width: 921px) {
	/* Four columns are too narrow on tablets: two rows of two. */
	.site-footer .site-above-footer-inner-wrap:has(> .site-footer-section-4) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 921px) {
	.site-footer .site-above-footer-wrap { padding-top: 48px; }
	.site-footer .site-above-footer-inner-wrap { row-gap: 32px; }
	.site-footer .site-below-footer-wrap .site-below-footer-inner-wrap { margin-top: 40px; }
}
@media (max-width: 544px) {
	.site-footer .site-above-footer-wrap { padding-top: 40px; }
	.site-footer .site-below-footer-wrap .site-below-footer-inner-wrap { margin-top: 32px; padding: 18px 0 22px; }
}
