/*[ Belal Pizza — Reservation / PDMP / Cart ]
///////////////////////////////////////////////////////////
   New interactive commerce layer: product detail modal,
   shopping cart widget and the premium reservation form.
   Colors and radii intentionally match main.css (#ec1d25
   brand red, #25D366 WhatsApp green, 10px/20px radii).
*/

.is-hidden {
	display: none !important;
}

/*[ Shared overlay lock ]
-----------------------------------------------------------
*/
body.cart-sidebar-locked {
	overflow: hidden;
}

/*[ Product Detail Modal (PDMP) ]
-----------------------------------------------------------
*/
.product-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(17, 17, 17, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 1400;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.product-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.product-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 88vh;
	overflow-y: auto;
	background-color: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	transform: translateY(24px) scale(0.98);
	transition: transform 0.35s;
}

.product-modal-overlay.is-open .product-modal {
	transform: translateY(0) scale(1);
}

.product-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	font-size: 15px;
	cursor: pointer;
	z-index: 2;
	transition: all 0.3s;
}

.product-modal__close:hover {
	background-color: #ec1d25;
	transform: rotate(90deg);
}

.product-modal__media {
	position: relative;
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #222222 0%, #111111 55%, #ec1d25 160%);
	border-radius: 14px 14px 0 0;
	overflow: hidden;
}

.product-modal__icon {
	font-size: 46px;
	color: rgba(255, 255, 255, 0.92);
}

.product-modal__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background-color: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-family: Montserrat;
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 5px 12px;
	border-radius: 20px;
}

.product-modal__new-tag {
	position: absolute;
	bottom: 14px;
	left: 14px;
	margin-left: 0;
}

.product-modal__body {
	padding: 24px 26px 26px;
}

.product-modal__title {
	font-family: Montserrat-Bold;
	font-size: 21px;
	color: #222222;
	margin-bottom: 8px;
}

.product-modal__desc {
	font-family: Montserrat;
	font-size: 14px;
	line-height: 1.6;
	color: #666666;
	margin-bottom: 18px;
}

.product-modal__sizes {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 18px;
}

.pm-size-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.25s;
}

.pm-size-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pm-size-option__label {
	font-family: Montserrat;
	font-weight: 600;
	font-size: 14px;
	color: #222222;
}

.pm-size-option__price {
	font-family: Montserrat-Bold;
	font-size: 14px;
	color: #666666;
}

.pm-size-option:hover {
	border-color: #ec1d25;
}

.pm-size-option.is-selected {
	border-color: #ec1d25;
	background-color: rgba(236, 29, 37, 0.06);
}

.pm-size-option.is-selected .pm-size-option__price {
	color: #ec1d25;
}

.product-modal__custom-note {
	background-color: #fff6f6;
	border: 1px dashed #ec1d25;
	border-radius: 10px;
	padding: 14px 16px;
	font-family: Montserrat;
	font-size: 13px;
	color: #555555;
	margin-bottom: 18px;
}

.product-modal__qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.product-modal__qty-label {
	font-family: Montserrat;
	font-weight: 600;
	font-size: 14px;
	color: #222222;
}

.product-modal__qty-control {
	display: flex;
	align-items: center;
	gap: 0;
	border: 2px solid #e2e2e2;
	border-radius: 30px;
	overflow: hidden;
}

.product-modal__qty-btn {
	width: 36px;
	height: 36px;
	background-color: #f7f7f7;
	border: none;
	font-size: 18px;
	color: #222222;
	cursor: pointer;
	transition: all 0.2s;
}

.product-modal__qty-btn:hover {
	background-color: #ec1d25;
	color: #ffffff;
}

.product-modal__qty-input {
	width: 44px;
	height: 36px;
	border: none;
	border-left: 2px solid #e2e2e2;
	border-right: 2px solid #e2e2e2;
	text-align: center;
	font-family: Montserrat-Bold;
	font-size: 14px;
	color: #222222;
	-moz-appearance: textfield;
}

.product-modal__qty-input::-webkit-outer-spin-button,
.product-modal__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.product-modal__total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px dashed #e2e2e2;
	margin-bottom: 20px;
	font-family: Montserrat;
	font-size: 15px;
	color: #222222;
}

.product-modal__total-row span:last-child {
	font-family: Montserrat-Bold;
	font-size: 20px;
	color: #ec1d25;
}

.product-modal__add-btn,
.product-modal__whatsapp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	border: none;
	border-radius: 30px;
	font-family: Montserrat;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s;
}

.product-modal__add-btn {
	background-color: #ec1d25;
}

.product-modal__add-btn:hover {
	background-color: #c8161d;
}

.product-modal__add-btn.is-added {
	background-color: #25d366;
}

.product-modal__whatsapp-btn {
	background-color: #25d366;
}

.product-modal__whatsapp-btn:hover {
	background-color: #1ebe57;
}

/*[ Cart floating button ]
-----------------------------------------------------------
*/
.cart-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	right: 25px;
	bottom: 100px;
	width: 56px;
	height: 56px;
	background-color: #ec1d25;
	color: #ffffff;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	z-index: 1000;
	transition: all 0.3s;
}

.cart-float-btn:hover {
	background-color: #c8161d;
	transform: scale(1.08);
}

.cart-float-btn__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: none;
	align-items: center;
	justify-content: center;
	background-color: #222222;
	color: #ffffff;
	font-family: Montserrat-Bold;
	font-size: 11px;
	border-radius: 20px;
	border: 2px solid #ffffff;
}

/*[ Cart sidebar ]
-----------------------------------------------------------
*/
.cart-sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(17, 17, 17, 0.6);
	z-index: 1300;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.cart-sidebar-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 400px;
	max-width: 92%;
	height: 100%;
	background-color: #ffffff;
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
	z-index: 1301;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s;
}

.cart-sidebar.is-open {
	transform: translateX(0);
}

.cart-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 1px solid #e2e2e2;
}

.cart-sidebar__header h4 {
	font-family: Montserrat-Bold;
	font-size: 17px;
	color: #222222;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cart-sidebar__close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f7f7f7;
	border: none;
	border-radius: 50%;
	color: #222222;
	cursor: pointer;
	transition: all 0.3s;
}

.cart-sidebar__close:hover {
	background-color: #ec1d25;
	color: #ffffff;
}

.cart-sidebar__items {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 10px 24px;
}

.cart-sidebar__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100%;
	padding: 60px 10px;
	color: #999999;
}

.cart-sidebar__empty i {
	font-size: 42px;
	margin-bottom: 14px;
	color: #e2e2e2;
}

.cart-sidebar__empty p {
	font-family: Montserrat;
	font-size: 14px;
	margin-bottom: 16px;
}

.cart-sidebar__browse-link {
	padding: 10px 22px;
	background-color: #ec1d25;
	color: #ffffff;
	font-family: Montserrat;
	font-weight: 600;
	font-size: 13px;
	border-radius: 30px;
	transition: all 0.3s;
}

.cart-sidebar__browse-link:hover {
	background-color: #c8161d;
	color: #ffffff;
	text-decoration: none;
}

.cart-line-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 0;
	border-bottom: 1px dashed #e2e2e2;
}

.cart-line-item__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cart-line-item__name {
	font-family: Montserrat-Bold;
	font-size: 14px;
	color: #222222;
}

.cart-line-item__size {
	font-family: Montserrat;
	font-size: 12px;
	color: #888888;
}

.cart-line-item__unit-price {
	font-family: Montserrat;
	font-size: 12px;
	color: #aaaaaa;
}

.cart-line-item__controls {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.cart-line-item__qty {
	display: flex;
	align-items: center;
	border: 1px solid #e2e2e2;
	border-radius: 20px;
	overflow: hidden;
}

.cart-line-item__qty-btn {
	width: 24px;
	height: 24px;
	background-color: #f7f7f7;
	border: none;
	font-size: 13px;
	color: #222222;
	cursor: pointer;
}

.cart-line-item__qty-btn:hover {
	background-color: #ec1d25;
	color: #ffffff;
}

.cart-line-item__qty-value {
	display: inline-block;
	min-width: 22px;
	text-align: center;
	font-family: Montserrat-Bold;
	font-size: 12px;
	color: #222222;
}

.cart-line-item__line-total {
	font-family: Montserrat-Bold;
	font-size: 13px;
	color: #ec1d25;
}

.cart-line-item__remove {
	background: none;
	border: none;
	color: #bbbbbb;
	font-size: 14px;
	cursor: pointer;
	transition: color 0.2s;
}

.cart-line-item__remove:hover {
	color: #ec1d25;
}

.cart-sidebar__footer {
	padding: 18px 24px 24px;
	border-top: 1px solid #e2e2e2;
}

.cart-sidebar__footer.is-hidden {
	display: none;
}

.cart-sidebar__total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	font-family: Montserrat;
	font-size: 15px;
	color: #222222;
}

.cart-sidebar__total-row span:last-child {
	font-family: Montserrat-Bold;
	font-size: 21px;
	color: #ec1d25;
}

.cart-sidebar__checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	background-color: #25d366;
	color: #ffffff;
	border: none;
	border-radius: 30px;
	font-family: Montserrat;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	margin-bottom: 10px;
	transition: all 0.3s;
}

.cart-sidebar__checkout-btn:hover {
	background-color: #1ebe57;
}

.cart-sidebar__clear-btn {
	display: block;
	width: 100%;
	background: none;
	border: none;
	font-family: Montserrat;
	font-size: 12px;
	color: #999999;
	text-decoration: underline;
	cursor: pointer;
	text-align: center;
}

.cart-sidebar__clear-btn:hover {
	color: #ec1d25;
}

/*[ Toast ]
-----------------------------------------------------------
*/
.bp-toast {
	position: fixed;
	left: 50%;
	bottom: 30px;
	transform: translate(-50%, 20px);
	background-color: #222222;
	color: #ffffff;
	font-family: Montserrat;
	font-size: 13px;
	padding: 12px 24px;
	border-radius: 30px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	z-index: 1500;
	max-width: 90%;
	text-align: center;
}

.bp-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/*[ Reservation form ]
-----------------------------------------------------------
*/
.reservation-form-card {
	max-width: 870px;
	margin-left: auto;
	margin-right: auto;
	background-color: #ffffff;
	border-radius: 14px;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
	padding: 45px 45px 35px;
}

.rf-field {
	margin-bottom: 22px;
	display: flex;
	flex-direction: column;
}

.rf-field label {
	margin-bottom: 8px;
}

.rf-input,
.rf-textarea {
	width: 100%;
	border: 2px solid #d9d9d9;
	border-radius: 10px;
	padding: 0 20px;
	font-family: Montserrat;
	font-size: 14px;
	color: #333333;
	background-color: #ffffff;
	transition: border-color 0.3s;
}

.rf-input {
	height: 50px;
}

.rf-textarea {
	height: 120px;
	padding-top: 15px;
	padding-bottom: 15px;
	resize: vertical;
}

.rf-input:focus,
.rf-textarea:focus {
	border-color: #ec1d25;
	outline: none;
}

.rf-input.is-invalid,
.rf-textarea.is-invalid {
	border-color: #ec1d25;
	background-color: #fff6f6;
}

.rf-error {
	display: block;
	min-height: 16px;
	font-family: Montserrat;
	font-size: 11px;
	color: #ec1d25;
	margin-top: 6px;
}

.rf-hint {
	display: block;
	font-family: Montserrat;
	font-size: 11px;
	color: #999999;
	margin-top: 6px;
}

.rf-seating-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rf-seating-option {
	position: relative;
	flex: 1 1 150px;
}

.rf-seating-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.rf-seating-option span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	border: 2px solid #e2e2e2;
	border-radius: 10px;
	font-family: Montserrat;
	font-weight: 600;
	font-size: 13px;
	color: #666666;
	cursor: pointer;
	transition: all 0.25s;
}

.rf-seating-option span:hover {
	border-color: #ec1d25;
}

.rf-seating-option input:checked + span {
	border-color: #ec1d25;
	background-color: rgba(236, 29, 37, 0.06);
	color: #ec1d25;
}

.rf-submit-row {
	margin-top: 10px;
}

.rf-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 260px;
	height: 54px;
	background-color: #25d366;
	color: #ffffff;
	border: none;
	border-radius: 30px;
	font-family: Montserrat;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.5px;
	cursor: pointer;
}

.rf-submit-btn:hover {
	background-color: #1ebe57;
}

.rf-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.rf-privacy-note {
	font-family: Montserrat;
	font-size: 12px;
	color: #999999;
	text-align: center;
	margin-top: 16px;
}

/*[ Responsive ]
-----------------------------------------------------------
*/
@media (max-width: 767px) {
	.product-modal-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.product-modal {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 20px 20px 0 0;
	}

	.product-modal__media {
		border-radius: 20px 20px 0 0;
	}

	.cart-sidebar {
		width: 100%;
		max-width: 100%;
	}

	.reservation-form-card {
		padding: 30px 22px 25px;
	}
}

@media (max-width: 576px) {
	.cart-float-btn {
		width: 48px;
		height: 48px;
		font-size: 20px;
		right: 15px;
		bottom: 90px;
	}

	.rf-submit-btn {
		width: 100%;
		min-width: 0;
	}
}
