/* Fonts */
/* Frontage (3D block display) ? Bebas Neue | Recoleta (transitional serif) ? DM Serif Display | Body ? Work Sans */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Serif+Display:ital@0;1&family=Work+Sans:wght@300;400;500;600;700&display=swap');


/* Global Color Variables
Primary:   #e11931  (Buddy's Red ? signature brand color since 1946)
Secondary: #00325c  (Detroit Navy ? strong contrast accent)
Dark:      #272727  (Near-black ? body text, borders)
Light:     #f5ebdc  (Warm Cream ? classic pizzeria background)
Grey:      #505050  (Mid-grey ? secondary text, disabled states)
*/

:root {
	--primary: #e11931;
	--secondary: #00325c;
	--dark: #272727;
	--light: #f5ebdc;
	--grey: #505050;

	--primary-font: 'Bebas Neue', 'Oswald', sans-serif;
	--secondary-font: 'Work Sans', 'Helvetica Neue', sans-serif;
	--accent-font: 'DM Serif Display', Georgia, serif;

	/* Bootstrap Overrides */
	--bs-black: var(--dark) !important;
	--bs-link-hover-color-rgb: var(--dark) !important;
	--bs-primary: var(--primary) !important;
	--bs-background-blue: var(--secondary) !important;
	--bs-emphasis-color: var(--primary) !important;
	--bs-heading-color: var(--primary) !important;
	--bs-medium-grey: var(--primary) !important;
	--bs-highlight-rgb: var(--primary) !important;
	--bs-highlight: var(--primary) !important;
	--bs-secondary-rgb: var(--dark) !important;
	--bs-gray: var(--dark) !important;
}


@keyframes descend {
	from {
		opacity: 0;
		translate: 0 -50px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

.card {
	opacity: 0;
	animation: descend .9s ease-in-out forwards;
}


/* Universal Elements */
a {
	color: var(--primary);
	background: transparent;
}

a:hover {
	color: var(--secondary);
	background: transparent;
}

body {
	font-family: var(--secondary-font);
	color: var(--dark);
	background-color: var(--light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--primary-font);
	letter-spacing: 0.04em;
}

/* Heading size overrides ? Bebas Neue is a condensed display font; boost sizes for impact */
h1, .h1 { font-size: 3.25rem; line-height: 3.5rem; }
h2, .h2 { font-size: 2.5rem;  line-height: 2.75rem; }
h3, .h3 { font-size: 2rem;    line-height: 2.25rem; }
h4, .h4 { font-size: 1.75rem; line-height: 1.875rem; }
h5, .h5 { font-size: 1.375rem; line-height: 1.5rem; }
h6, .h6 { font-size: 1.125rem; line-height: 1.25rem; }

/* Bootstrap fw-bold override for display font */
h1.fw-bold, h2.fw-bold, h3.fw-bold, h4.fw-bold, h5.fw-bold, h6.fw-bold {
	font-weight: 400 !important;
}

/* End Universal Elements */


/* Header */

.logo-container {
	display: flex;
	justify-content: center;
}

.logo-container>a {
	display: block;
	width: 60%;
	max-width: 420px;
	min-width: 160px;
}

.logo-container>a>img {
	display: block;
	width: 50%;
}

.navbar-main {
	height: 80px;
	background: var(--light) !important;
	display: flex;
	justify-content: space-between;
}

.c-dropdown-menu {
	padding: 0 15px !important;
}

.c-profile__group .c-dropdown-menu-card .c-dropdown-card .c-profile-links .c-dropdown-menu li .dropdown-item {
	border-bottom: 1px solid var(--dark) !important;
}

.c-btn__signin .btn,
.c-btn__signup .btn {
	white-space: nowrap;
}

.navbar-brand {
	display: none;
}


.nav-item__language {
	display: none !important;
}

.header-links {
	display: none;
}

.header-container {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.nav.c-nav__delivery {
	background: var(--primary) !important;
	color: #ffffff !important;
}

.nav-item>.c-btn__sm {
	color: var(--dark);
}

.nav-item>img {
	filter: brightness(0);
}

/* Profile Menu Icon ? dark on cream header */
.c-profile__group .c-profile__dropdown span {
	color: var(--dark) !important;
}

/* Desktop Header */
@media only screen and (min-width:48.001rem) {}

/* Mobile Header */
@media only screen and (max-width:48rem) {
	.navbar-toggler-icon {
		filter: brightness(0);
	}

	.c-nav__delivery .c-label__text {
		color: #ffffff;
	}

	.c-header__main>nav>div {
		margin: auto;
		display: block !important;
	}

	.logo-container>a>img {
		margin: auto;
		width: 25% !important;
	}

	.navbar-cart__wrapper {
		display: flex;
		justify-content: space-between;
		position: absolute;
		top: 7px;
		width: 100%;
	}

	header.c-header__main nav.navbar {
		padding: 0.25rem 1rem .75rem !important;
	}
}

/* End Header */


/* Footer */

.left-footer-links,
.right-footer-links {
	display: flex;
	flex-direction: column;
}

.top-footer-links {
	display: flex;
	width: 50%;
	justify-content: space-evenly;
}

.bottom-footer {
	width: 100%;
	padding: 20px 20px 5px 20px;
}

.bottom-footer-links {
	display: flex;
	width: 100%;
	justify-content: space-between;
}

.bottom-footer-links>a,
.left-footer-links>a,
.right-footer-links>a,
footer h3 {
	color: var(--light);
}

.top-footer {
	display: flex;
	width: 100%;
	padding: 20px 0;
	border-top: 3px double var(--primary);
	justify-content: center;
}

.bottom-footer {
	display: flex;
	justify-content: center;
	padding-top: 10px;
	padding-right: 45px;
	border-top: 1px dashed rgba(245, 235, 220, 0.4);
}

footer {
	padding-top: 0;
	background-color: var(--secondary);
	background-image: url(../../XImages/base_images/buddys-detroit-skyline-01_1.png);
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 100% auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

footer a {
	text-decoration: none;
}

.middle-footer-logo>img {
	width: 30%;
}

.middle-footer-logo {
	display: flex;
	justify-content: center;
}

#monkeyCopyRight>a {
	color: var(--light);
}

.copy_text {
	color: var(--light);
}

/* Desktop Footer */
@media only screen and (min-width:48.001rem) {}

/* Mobile Footer */
@media only screen and (max-width:48rem) {

	.top-footer,
	.top-footer-links,
	.bottom-footer,
	.bottom-footer-links {
		flex-direction: column;
		width: 100%;
		align-items: center;
		text-align: center;
	}

	.middle-footer-logo>img {
		width: 25%;
	}

	.bottom-footer {
		padding: 10px 0;
	}
}

/* End Footer */


/* Main Content */

.card-product__price .btn-quick-add img {
	filter: brightness(0) invert(1);
	transition: filter 0.3s ease;
	background: transparent !important;
}

.card-product__price .btn-quick-add:hover img {
	filter: none;
}

.btn-outline-primary {
	background-color: var(--secondary) !important;
	color: #ffffff !important;
	border: none !important;
}

.c-checkout__details {
	border: 1px solid var(--dark);
	padding: 20px;
	background: #ffffff;
	border-radius: 0;
}

#v-loyalty-rewards,
#v-saved-locations {
	margin-top: 3.375rem;
}

#v-loyalty-rewards>div:nth-child(1),
#v-saved-locations>div:nth-child(2) {
	display: none;
}

#v-pills-tab>.nav-item>.nav-link {
	border-bottom: 1px solid var(--dark);
}

.c-sidebar__account {
	margin: 3.375rem 3rem;
	border: 1px solid var(--dark);
	padding: 20px;
	background: #ffffff;
	border-radius: 0;
}

#accountInformationForm {
	border: 1px solid var(--dark);
	padding: 20px;
	background: #ffffff;
	border-radius: 0;
}

/* Tab Nav ? flat style */
.c-product__tabs .nav-tabs .nav-item .nav-link.active::before {
	background-color: var(--primary);
	width: calc(100% + 0.5rem);
	left: -0.25rem;
}

.c-product__tabs .nav-tabs .nav-item .nav-link:hover,
.c-product__tabs .nav-tabs .nav-item .nav-link.active {
	color: var(--primary) !important;
}

.nav-link.active {
	border-radius: 0;
	background-color: transparent !important;
}

.c-product__tabs .catering-menu__main_slider::after {
	content: none !important;
}

.nav-tabs__categories {
	padding: 10px;
	border: 1px solid var(--dark) !important;
	border-radius: 0;
}

#btnCheckoutFixed {
	background: var(--light);
	padding: 1rem 3rem 1rem 2.1rem;
}

.c-product-item__details .c-product__block {
	padding: 24px;
	border: 1px solid var(--dark);
	background: #ffffff;
	border-radius: 0;
}

.accordion-item:last-of-type .accordion-button.collapsed {
	border-radius: 0;
}

.btn-primary {
	--bs-btn-color: #ffffff !important;
	--bs-btn-bg: var(--primary) !important;
	--bs-btn-border-color: transparent !important;
	--bs-btn-hover-color: rgba(255, 255, 255, 0.4) !important;
	--bs-btn-hover-bg: var(--primary) !important;
	--bs-btn-hover-border-color: transparent !important;
	--bs-btn-focus-shadow-rgb: 225, 25, 49;
	--bs-btn-active-color: #ffffff !important;
	--bs-btn-active-bg: var(--secondary) !important;
	--bs-btn-active-border-color: transparent !important;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
	--bs-btn-disabled-color: #ffffff !important;
	--bs-btn-disabled-bg: #8e9094 !important;
	--bs-btn-disabled-border-color: transparent !important;
}

/* Global button base ? square, no border, color-only transition */
.btn {
	border-radius: 0 !important;
	border: none !important;
	transition: color 0.3s ease !important;
}

.btn.btn-primary:hover {
	background-color: var(--primary) !important;
	color: rgba(255, 255, 255, 0.4) !important;
}

.c-card__product .card img,
.c-product-item__details .c-product__details .c-product__img {
	background-color: #ffffff;
}

.c-group-filter .c-btn-filter:hover,
.c-group-filter .c-btn-filter:active,
.c-group-filter .c-btn-filter.show,
.c-group-filter .c-btn-filter:focus-visible,
.c-group-filter .icon__close:focus-visible {
	border: 1px solid var(--primary) !important;
}

#sidebarCart .btn-add-to-cart.c-collapse-arrow:hover,
#sidebarCart .btn-add-to-cart.c-collapse-arrow:active,
#sidebarCart .btn-add-to-cart.c-collapse-arrow {
	background-color: var(--primary) !important;
	border: 1px solid var(--secondary) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
	background-color: rgba(225, 25, 49, 0.08);
}

.c-collapse-arrow:hover {
	background-color: rgba(225, 25, 49, 0.08) !important;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:active {
	color: rgba(255, 255, 255, 0.4) !important;
	border: none !important;
	background-color: var(--secondary) !important;
}

.c-btn__signin>a,
.c-btn__signin>a:hover {
	background: var(--primary) !important;
	color: #ffffff !important;
}

.c-btn__signin .btn:hover {
	background: var(--primary) !important;
	color: rgba(255, 255, 255, 0.4) !important;
}

.c-btn__signup .btn:hover {
	background: var(--secondary) !important;
	color: rgba(255, 255, 255, 0.4) !important;
}

.c-btn__signin:hover,
.c-btn__signup:hover,
#btnCheckout:hover {
	transform: none;
}

#heading_preorder,
.c-content__heading {
	color: var(--primary);
}

.c-sidebar__cart.open,
.c-sidebar__cart.close {
	transition: all 0.3s ease-in-out;
}

.c-product__tags .badge {
	background-color: var(--primary) !important;
}

.c-product__sub-categries.row {
	padding: 10px;
}

/* Category section titles ? use accent serif font for character */
.c-product__tabs .product-section h4.c-section__title {
	font-family: var(--accent-font);
	font-style: italic;
	color: var(--secondary);
	letter-spacing: 0;
}

/* Card title */
.c-card__product h4 {
	font-family: var(--primary-font);
	letter-spacing: 0.04em;
}

/* ============================================================
   SKEWED CARD HOVER ? x-effect-enter style
   Cards lean in at a slight skew angle with a bold red
   offset shadow, replicating Buddy's entrance animation.
   ============================================================ */

.c-card__product .card {
	border: 2px solid var(--dark);
	border-radius: 0;
	will-change: transform;
	transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.25s ease,
	            border-color 0.25s ease;
}

.c-card__product .card:hover {
	transform: skewX(4deg) translateY(-5px);
	border-color: var(--primary) !important;
	box-shadow: 6px 6px 0 var(--primary);
}

.item-header {
	text-transform: uppercase;
	font-family: var(--primary-font);
}

.dropdown-menu,
.overflow-auto {
	scrollbar-color: var(--light) var(--primary);
	scrollbar-width: thin;
}

/* Skip to Menu and Submit Menu Buttons */
#skipToMenu,
#submitMenu {
	background-color: var(--primary) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 12px 32px !important;
	font-family: var(--primary-font) !important;
	font-weight: 400 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	text-align: center !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	width: 50%;
	display: flex;
	justify-content: center;
	margin: 0 auto;
}

#skipToMenu:hover,
#submitMenu:hover {
	background-color: var(--primary) !important;
	color: rgba(255, 255, 255, 0.4) !important;
	transform: none;
	text-decoration: none !important;
}

.c-skip__menu #findStores:disabled,
.c-card__store .startOrderButton:disabled {
	background: #babbbb !important;
}

/* Desktop Main Content */
@media only screen and (min-width:48.001rem) {
	.c-card__product .card {
		transform: scale(0.9);
	}

	.c-card__product .card:hover {
		transform: skewX(4deg) translateY(-5px) scale(0.95);
	}
}

/* Mobile Main Content */
@media only screen and (max-width:48rem) {}

/* End Main Content */


/* Things that should not be local, these really need to be main app style rules */

@media (max-width: 48em) {
	.c-sidebar__block {
		height: 0;
	}
}

.credit-card-multi-image {
	max-width: 250px;
}

/* Quick-add img filter (duplicate for specificity) */
.card-product__price .btn-quick-add img {
	filter: brightness(0) invert(1);
}

/* Add background to edit button */
#activateEditButton {
	background-color: var(--light);
}

/* Menu Item Image Sizer */
.c-product-item__details .c-product__details .c-product__img.default_product_image {
	object-fit: cover;
}

/* Larger description block, 2 lines with no expand */
.c-product__description .productSummaryText {
	height: 3rem;
	overflow: hidden;
}

/* Hide Loyalty */
.c-dropdown-menu li:has(a[href="/online/loyaltyReward"]),
.c-dropdown-menu li:has(a[href="/online/dev425/loyaltyReward"]),
.c-sidebar__account li:has(a[href="/online/loyaltyReward"]),
.c-sidebar__account li:has(a[href="/online/dev425/loyaltyReward"]) {
	display: none;
}

/* Credit Card Selection */
[id^="profile_id_-"][id$="_label"]:has(input:checked)::before {
	content: "\2713\0020 ";
	color: var(--bs-highlight);
	margin-right: 0.5em;
}

#payment_method_2 #cc_profiles li.c-payment-method__item--profile-MOO:has(.c-form-choice:nth-of-type(1):last-of-type) {
	display: none;
}

/* END Credit Card Selection */

/* Add to cart sticky fix */
.c-main__content.mainContentActive.c-main__product {
	padding-bottom: 0px !important;
	margin-bottom: 0 !important;
}

.c-quantity-cart__fixed.fixed-bottom {
	position: sticky;
	bottom: 0;
	left: auto;
	right: auto;
	z-index: 1020;
}

.c-quantity-cart__fixed {
	width: calc(100% - 400px);
	margin-inline: auto;
	transform: translateX(0);
	display: none;
	opacity: 0;
	transition: opacity 1s, visibility 1s ease-in-out;
}

.c-quantity-cart__fixed.show {
	display: block;
	opacity: 1;
}

.c-quantity-cart__fixed {
	width: 100%;
}

/* END Add to cart sticky fix */

/* Checkout Button Sticky Fix */
body.itemDetails #form_trackAndCart,
body.itemDetails #cartDetails,
body.itemDetails #trackCart {
	height: 100%;
}

body.itemDetails #trackCart {
	display: flex !important;
	flex-direction: column;
}

body.itemDetails .cart-items__wrapper {
	flex: 1 !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
	display: flex !important;
	flex-direction: column;
}

body.itemDetails .c-cart-items__group {
	flex: 1 !important;
}

body.itemDetails #btnCheckoutFixed {
	position: sticky !important;
	bottom: 0 !important;
	top: unset !important;
	left: unset !important;
	right: unset !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	transform: none !important;
	box-sizing: border-box !important;
	flex-shrink: 0;
	z-index: 10 !important;
}
/* END Checkout Button Sticky Fix */

/* Hide dietary icons on production items */
.c-selection__items .c-items__group .c-dietary__tags {
	display: none !important;
}

/* END Hide dietary icons on production items */

/* Checkout Button Width */
.c-checkout__fixed {
	max-width: 399px !important;
}

@media (max-width: 991.98px) {
	.c-checkout__fixed {
		max-width: 299px !important;
	}
}

@media (max-width: 767.98px) {
	.c-checkout__fixed {
		max-width: 100% !important;
	}
}
/* END Checkout Button Width */

/* FIX MORE BUTTON ON SAFARI */
.detailsBox.productSummaryText #productSubFeDetailText {
	display: block;
	position: relative;
	z-index: 0;
}

.detailsBox.productSummaryText {
	position: relative;
	padding-bottom: 1.75rem;
	overflow: hidden;
}

.detailsBox.productSummaryText .c-text__more.productSubFeDetail {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 10;
	display: inline-block;
	background: #fff;
	padding-left: .5rem;
	-webkit-transform: translateZ(0);
	will-change: transform;
}

.detailsBox.productSummaryText #productSubFeDetailText > p:last-child {
	margin-bottom: .5rem;
}

@supports (-webkit-touch-callout: none) {
	.detailsBox.productSummaryText .c-text__more.productSubFeDetail {
		position: static;
		margin-top: .25rem;
	}
	.detailsBox.productSummaryText { padding-bottom: 0; }
}
/* END FIX MORE BUTTON ON SAFARI */

/* Custom/Static Page Styling */
section:has(>.c-main__inner) {
	background: var(--light);
	min-height: calc(100vh - 200px);
}

.c-main__inner {
	background: #ffffff;
	border-radius: 0;
	padding: 2rem 3rem;
	max-width: 900px;
	margin: 2rem auto;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.c-content__layout {
	font-family: var(--secondary-font);
	color: var(--dark);
	line-height: 1.7;
}

@media only screen and (max-width:48rem) {
	.c-main__inner {
		padding: 1.25rem 1rem;
		margin: 1rem;
	}
}

/* END Custom/Static Page Styling */

/* Delivery / Pick Up Toggle Switch */
.c-check__control {
	position: relative;
	background-color: #f5f5f5;
	margin: 0 !important;
	border: 1px solid var(--grey);
	border-radius: 0;
	padding: 3px !important;
	overflow: hidden;
	--bs-gutter-x: 0;
}

.c-check__control .c-input__check {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.c-check__control::before {
	content: '';
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 3px;
	width: calc(50% - 3px);
	background: var(--primary);
	border-radius: 0;
	transition: transform 0.3s ease;
	z-index: 0;
	box-shadow: 0 2px 6px rgba(225, 25, 49, 0.35);
}

.c-check__control:has(.c-preorder__button-item--pickUp.is-active)::before {
	transform: translateX(100%);
}

.c-check__control .btn-delivery {
	position: relative;
	z-index: 1;
	background: transparent !important;
	border: none !important;
	color: var(--dark) !important;
	transition: color 0.3s ease !important;
	border-radius: 0 !important;
}

.c-check__control .is-active .btn-delivery {
	color: var(--light) !important;
}
/* END Delivery / Pick Up Toggle Switch */

/* Item selection required badge ? fix height clip and force wrap at bullet on mobile */
@media (max-width: 767.98px) {
	.item-select-info {
		max-width: 3.75rem !important;
		min-height: 22px !important;
		height: auto;
	}
}
