/* Cebu Food Trays 2.1 shared marketplace shell. */
:root {
	--cft-primary: #cf1554;
	--cft-primary-hover: #b71149;
	--cft-primary-soft: #fff0f5;
	--cft-ink: #29262d;
	--cft-muted: #6f6b73;
	--cft-line: #e5e2e7;
	--cft-canvas: #f7f7f7;
	--cft-surface: #fff;
	--cft-font: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Retire the old injected shell. The plugin owns the visible shell. */
body > .cft-shared-ann,
body > .cft-shared-header,
body > .cft-shared-footer {
	display: none !important;
	visibility: hidden !important;
}

.cft-site-shell,
.cft-site-header,
.cft-site-footer,
.cft-site-announcement { font-family: var(--cft-font); }

.cft-site-announcement {
	background: #26150e;
	color: #fff;
	font-size: 12px;
	line-height: 1.35;
}

.cft-site-announcement__inner {
	min-height: 38px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
}

.cft-site-announcement__inner strong {
	color: #ffd38b;
	font-size: 12px;
	font-weight: 750;
	text-align: center;
}

.cft-site-announcement__inner a {
	justify-self: end;
	color: #ffae42 !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
}

.cft-site-logo {
	justify-self: start;
	width: 190px;
	max-width: 190px;
	height: 58px;
	display: flex;
	align-items: center;
	text-decoration: none !important;
}

.cft-site-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 58px;
	object-fit: contain;
}

.cft-site-header svg,
.cft-site-action svg,
.cft-packed-search svg,
.cft-search svg {
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cft-mp .cft-location > svg,
.cft-packed-location > svg {
	width: 24px;
	height: 24px;
	color: var(--cft-primary);
}

.cft-site-action {
	min-width: 44px;
	min-height: 44px;
	padding: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	position: relative;
	border-radius: 10px;
}

.cft-site-action:hover { background: #f7f4f6; }

.cft-site-cart-count {
	position: absolute;
	right: 1px !important;
	top: 0 !important;
	display: grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--cft-primary);
	color: #fff;
	font-size: 10px;
	line-height: 1;
}

.cft-site-cart-count[hidden] { display: none !important; }

.cft-mp .cft-fulfilment a,
.cft-packed-nav a { gap: 7px; min-height: 44px; }

.cft-mp .cft-fulfilment svg,
.cft-packed-nav svg { width: 17px; height: 17px; flex-basis: 17px; }

.cft-mp .cft-search > svg,
.cft-packed-search > svg { color: var(--cft-muted); }

/* One search surface on every route; legacy page input rules must not
   introduce a second border or white pill inside the shared header. */
body .cft-site-header .cft-search,
body .cft-site-header .cft-packed-search {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 44px;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #f4f3f5;
	color: var(--cft-muted);
	font-family: var(--cft-font);
}

body .cft-site-header .cft-search input[type="search"],
body .cft-site-header .cft-packed-search input[type="search"] {
	box-sizing: border-box;
	flex: 1 1 0%;
	width: 100%;
	min-width: 0;
	min-height: 0 !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cft-ink) !important;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
}

body .cft-site-header .cft-search input::placeholder,
body .cft-site-header .cft-packed-search input::placeholder {
	color: var(--cft-muted);
	opacity: 1;
}

body .cft-site-header .cft-search:focus-within,
body .cft-site-header .cft-packed-search:focus-within {
	border-color: var(--cft-primary);
	box-shadow: 0 0 0 3px rgba(207,21,84,.16);
}

/* Product cards are navigational tiles, not underlined prose links.
   Keep hover colour and a visible keyboard outline as interaction cues. */
body .cft-mp .cft-product-card h3 a {
	color: inherit !important;
	text-decoration: none !important;
}

body .cft-mp .cft-product-card h3 a:hover { color: var(--cft-primary) !important; }
body .cft-mp .cft-product-card h3 a:focus-visible {
	outline: 3px solid #1f6feb !important;
	outline-offset: 3px !important;
	border-radius: 3px;
}

/* Complete footer */
.cft-mp .cft-site-footer,
.cft-site-footer {
	margin: 0 !important;
	padding: 54px 0 24px !important;
	background: #242128 !important;
	color: #fff !important;
}

.cft-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 1fr));
	gap: 42px;
}

.cft-site-footer__logo {
	display: block;
	width: min(230px, 100%);
	margin-bottom: 16px;
}

.cft-site-footer__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 82px;
	object-fit: contain;
	object-position: left center;
}

.cft-site-footer p,
.cft-site-footer address {
	margin: 0 0 9px !important;
	color: #cfcbd2 !important;
	font-size: 13px !important;
	font-style: normal;
	line-height: 1.65;
}

.cft-site-footer__brand > p { max-width: 330px; }

.cft-site-socials { display: flex; gap: 10px; margin-top: 18px; }

.cft-site-socials a {
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700;
	text-decoration: none !important;
}

.cft-site-footer__column { display: flex !important; flex-direction: column; align-items: flex-start; gap: 9px !important; }

.cft-site-footer__column h2 {
	margin: 0 0 5px !important;
	color: #fff !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	font-weight: 800 !important;
}

.cft-site-footer__column a {
	color: #d8d4db !important;
	font-size: 13px !important;
	font-weight: 550 !important;
	text-decoration: none !important;
}

.cft-site-footer__column a:hover,
.cft-site-footer__legal a:hover,
.cft-site-socials a:hover { color: #ffb3cc !important; }

.cft-site-footer__contact p { margin-top: 4px !important; }

.cft-site-footer__trust {
	margin-top: 40px;
	padding: 18px 0;
	border-top: 1px solid rgba(255,255,255,.11);
	border-bottom: 1px solid rgba(255,255,255,.11);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
}

.cft-site-footer__trust span {
	position: relative;
	padding-left: 18px;
	color: #e7e3e9 !important;
	font-size: 12px !important;
}

.cft-site-footer__trust span::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #ff7fa9;
	font-weight: 900;
}

.cft-site-footer__legal {
	padding-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cft-site-footer__legal p { margin: 0 !important; font-size: 12px !important; }
.cft-site-footer__legal nav { display: flex !important; flex-wrap: wrap; gap: 8px 18px !important; margin: 0 !important; }
.cft-site-footer__legal a { color: #d8d4db !important; font-size: 12px !important; text-decoration: none !important; }

/* Audit corrections that apply to the marketplace controls. */
.cft-mp .cft-product-card__buttons button,
.cft-mp .cft-fav,
.cft-mp .cft-sheet__close,
.cft-mp .cft-mobile-filter,
.cft-mp .cft-chip-list button { min-height: 44px; }
.cft-mp .cft-fav,
.cft-mp .cft-sheet__close { width: 44px; height: 44px; }
.cft-mp .cft-product-card__meta,
.cft-mp .cft-product-card__category { font-size: 11px; }
.cft-mp .cft-planner-card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 920px) {
	.cft-site-announcement__inner { grid-template-columns: 1fr auto; }
	.cft-site-announcement__area { display: none; }
	.cft-site-announcement__inner strong { text-align: left; }
	.cft-site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
	body .cft-site-header .cft-search input[type="search"],
	body .cft-site-header .cft-packed-search input[type="search"] { font-size: 16px; }
	.cft-site-announcement__inner { min-height: 36px; display: flex; justify-content: center; }
	.cft-site-announcement__inner strong { font-size: 10px; text-align: center; }
	.cft-site-announcement__inner a { display: none; }
	.cft-site-logo { width: 154px; height: 52px; }
	.cft-site-logo img { max-height: 52px; }
	.cft-mp .cft-user-actions,
	.cft-packed-user-actions { gap: 4px; }
	.cft-mp .cft-site-action,
	.cft-packed-user-actions .cft-site-action { min-width: 44px; min-height: 44px; padding: 8px; }
	.cft-site-footer__grid { gap: 30px 24px; }
	.cft-site-footer__legal { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
	.cft-site-announcement__inner strong span { display: none; }
	.cft-site-announcement__inner strong { max-width: 100%; }
	.cft-mp .cft-site-footer,
	.cft-site-footer { padding-top: 42px !important; }
	.cft-site-footer__grid { grid-template-columns: 1fr; }
	.cft-site-footer__logo { width: 210px; }
	.cft-site-footer__trust { display: grid; }
	.cft-site-footer__legal nav { flex-direction: column; }
}

@media (max-width: 340px) {
	.cft-mp .cft-product-grid { grid-template-columns: 1fr; }
}

/* Fold cover screens retain the three header shortcuts without forcing the
   page wider than the viewport. The account action keeps its accessible name;
   only its visible text is compacted at this constrained width. */
@media (max-width: 390px) {
	.cft-mp .cft-app-header__top { gap: 8px; }
	.cft-mp .cft-site-logo { width: 128px; max-width: 128px; }
	.cft-mp .cft-site-logo img { max-height: 46px; }
	.cft-mp .cft-user-actions { gap: 2px; min-width: 0; }
	.cft-mp .cft-user-actions .cft-site-action { width: 44px; min-width: 44px; padding: 6px; }
	.cft-mp .cft-user-actions .cft-icon-link > span { display: none; }
}
