/* Prevent Bootstrap modal from hiding scrollbar and causing layout shift */
body.modal-open {
	overflow: auto !important;
	padding-right: 0 !important;
}

.product-card-variants-select,
.product-card-price-tier-select {
	border: 2px solid #e2e6ed;
	border-radius: 20px;
	font-size: 0.8rem;
	font-family: var(--e-global-typography-secondary-font-family), sans-serif !important;
}

.product-card-variants-select option,
.product-card-price-tier-select option {
	font-size: 0.8rem;
	font-family: var(--e-global-typography-secondary-font-family), sans-serif !important;
}

/* Product Weight Tier Select - ensure proper width for chevron */
.product-weight-tier-select {
	width: auto !important;
	min-width: fit-content !important;
	padding-right: 2.5rem !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 12px;
}

.checkout-header {
	height: 55px;
	position: absolute;
	z-index: 9;
	background: #fff;
	padding: 0;
	border-bottom: 1px solid #e2e6ed;
	display: flex;
	align-items: center;
}

/* Specific cart buttons - avoid interfering with Elementor widgets */
/* Note: .add-to-cart-button.button styles are now fully controlled by Elementor */
#checkout-button.button,
.modal .button,
.remove-from-cart.button,
.button-minus-cart,
.button-plus-cart {
	color: #fff;
	border-radius: 0;
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

/* Transform Close and Checkout button text to uppercase */
#checkout-button.button,
.modal .button-secondary[data-bs-dismiss="modal"] {
	text-transform: uppercase;
	cursor: pointer !important;
}

/* Hover states - excluding add-to-cart-button to allow Elementor control */
#checkout-button.button:hover,
.modal .button:hover,
.remove-from-cart.button:hover,
.button-minus-cart:hover,
.button-plus-cart:hover {
	color: #fff;
	border: none;
	border-radius: 0;
}

/* Add to cart button - layout properties only, Elementor controls colors/borders */
.add-to-cart-button {
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.add-to-cart-button .spinner-wrapper {
	display: inline-block;
	line-height: 1;
}

.add-to-cart-button .spinner-border {
	vertical-align: middle;
}

.add-to-cart-button:disabled {
	pointer-events: none;
	opacity: 0.8;
}

.add-to-cart-button:disabled .add-to-cart-text {
	font-weight: 600;
}

.checkout-header h5 {
	font-family: var(--e-global-typography-text-font-family) !important;
}

.checkout-header a {
	color: var(--e-global-color-primary) !important;
	font-weight: bold;
}

.modal {
	--bs-modal-zindex: 6666;
}

/* Typography now controlled via Elementor Global Styles - Cart Modal */
/* .modal-content,
.modal-header,
.modal-body,
.modal-footer,
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5, */
/* .modal-content h6, */
/* Removed - controlled by Elementor Global Styles */
/* .modal-content p,
.modal-content span,
.modal-content small,
.modal-content div,
.cart-item-details,
.cart-item-details a,
.cart-price-info {
	font-family: var(--e-global-typography-secondary-font-family), sans-serif;
} */

.cart-icon {
	cursor: pointer;
}

.remove-from-cart i {
	font-size: 0.8rem;
}

.remove-from-cart {
	padding: 6px 14px !important;
}

#checkout-button:disabled {
	cursor: not-allowed;
	background-color: #ccc !important;
	border-radius: 0 !important;
	font-family: var(--e-global-typography-primary-font-family), sans-serif !important;
}

@media screen and (max-width: 768px) {
	#checkout-button {
		width: 100%;
	}
}

.cart-count-badge {
	font-size: 0.6rem;
	font-family: var(--e-global-typography-text-font-family), sans-serif !important;
	position: absolute;
	margin-left: 20px;
	margin-top: -30px;
	border: 2px solid #fff;
}

.sidebar-cart-overlay {
	position: fixed;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 8;
}

.sidebar-cart {
	position: fixed;
	height: 100%;
	width: 600px;
	top: 0;
	right: 0;
	background-color: #f8f9fa;
	z-index: 9;
}

.sidebar-cart-footer {
	position: absolute;
	bottom: 1.5rem;
	right: 1.5rem;
}

.cart-item-image {
	width: 80px;
	height: 80px;
	object-fit: cover;
	position: relative;
	overflow: hidden;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.cart-item-image img.slider-image {
	opacity: 0;
}

/* Spinner for cart item images */
.cart-item-image .product-image-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border: 3px solid #f3f3f3;
	border-radius: 50%;
	border-top: 3px solid var(--e-global-color-primary);
	animation: spin 1s linear infinite;
	z-index: 1;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Cart item image overlay - controlled by Elementor Global Styles */
.cart-item-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	border-radius: inherit;
}

.card {
	padding: 20px;
}

@media (max-width: 768px) {
	.card {
		padding: 12px;
	}
}

.modal-dialog-slide {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	margin: 0;
	max-width: 500px;
	width: 500px;
	transform: translateX(100%);
	transition: transform 0.3s ease-in-out;
}

.quantity-control {
	width: auto;
	min-width: 180px;
	display: flex;
}

/* Specific styling for cart quantity control - make it narrower */
.quantity-control-cart {
	min-width: 120px !important;
	max-width: 120px !important;
}

.quantity-control button {
	padding: 5px 10px 5px 10px !important;
	flex-shrink: 0;
}

/* Make cart quantity buttons more compact */
.quantity-control-cart button {
	padding: 5px 8px !important;
	min-width: 30px !important;
}

.quantity-control input {
	flex: 1 1 auto !important;
	min-width: 40px !important;
	font-family: var(--e-global-typography-secondary-font-family), sans-serif !important;
	border-radius: 0 !important;
}

/* Make cart quantity input narrower */
.quantity-control-cart input {
	min-width: 30px !important;
	max-width: 50px !important;
}

@media screen and (max-width: 768px) {
	.modal-dialog-slide {
		max-width: 100%;
		width: 100%;
	}
}

@media screen and (min-width: 769px) and (max-width: 991px) {
	.modal-dialog-slide {
		max-width: 100%;
		width: 100%;
	}
}

.modal.fade .modal-dialog-slide {
	transform: translateX(100%);
}

.modal.show .modal-dialog-slide {
	transform: translateX(0);
}

.modal-content {
	height: 100%;
	border-radius: 0;
}

.modal-dialog-slide .modal-content {
	box-shadow: -3px 0 5px rgba(0, 0, 0, 0.2);
}

.cart-item-image {
	flex-shrink: 0;
}

.cart-item-content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cart-item-details {
	flex-grow: 1;
}

.cart-item-details a {
	color: var(--e-global-color-text);
}

.cart-item-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cart-item-actions {
	flex-shrink: 0;
}

@media screen and (max-width: 768px) {
	.cart-item {
		flex-direction: column !important;
	}

	.cart-item-image {
		width: 100%;
		max-width: 100px;
	}

	.cart-item-content {
		width: 100%;
	}

	.cart-item-controls {
		flex-wrap: wrap;
	}
}

.add-to-cart-card-button {
	/* Layout properties only - colors, typography, borders controlled by Elementor */
	text-align: center;
	position: absolute;
	top: 10px;
	right: 10px;
	min-width: 35px;
	min-height: 35px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 !important;
	font-family: var(--e-global-typography-primary-font-family), sans-serif !important;
}

.add-to-cart-card-button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
	border-radius: 0 !important;
}

.added-to-cart-button {
	/* Layout properties only - colors, typography controlled by Elementor */
	text-align: center;
	cursor: initial !important;
	pointer-events: none !important;
	position: absolute;
	top: 10px;
	right: 10px;
	min-width: 35px;
	min-height: 35px;
	z-index: 99;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 !important;
	font-family: var(--e-global-typography-primary-font-family), sans-serif !important;
}

@media (min-width: 1400px) {

	.container,
	.container-xxl {
		max-width: 1400px;
	}
}

@media (max-width: 1399px) {

	.container,
	.container-xxl {
		max-width: 1399px;
	}
}

.accordion {
	--bs-accordion-btn-padding-x: 0;
}

@media (max-width: 1199px) {

	.container,
	.container-xxl {
		max-width: 1199px;
	}
}

#sort-by {
	border: 2px solid #e2e6ed;
	border-radius: 20px;
	font-family: var(--e-global-typography-secondary-font-family), sans-serif !important;
}

#sort-by option {
	font-size: 0.8rem;
	font-family: var(--e-global-typography-secondary-font-family), sans-serif !important;
}

.cart-price-info {
	display: flex;
	justify-content: space-between;
}

#cartModal .modal-body {
	overflow: auto;
	background-color: #f8f8f8;
}

/* ================================
   Cart Slider Default Styles
   ================================ */

/* Cart slider wrapper spacing */
#cartModal .cart-slider-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

/* Cart slider title - shares same styles as cart header */
#cartModal .cart-slider-title {
	font-family: Oswald !important;
	font-size: 1.3em !important;
	text-transform: uppercase !important;
	margin-bottom: 1.5rem !important;
}

/* DISABLED - Now using global Elementor settings from Site Settings > Product Cards */
/* Add to Cart button in cart slider - Icon mode with primary/secondary colors */
/*
#cartModal .products-slider .add-to-cart-card-button {
	background-color: transparent !important;
	border: none !important;
	width: 40px !important;
	height: 40px !important;
	font-size: 18px !important;
	transition: all 0.3s ease !important;
	top: 0px !important;
	right: 0px !important;
	z-index: 10 !important;
}

#cartModal .products-slider .add-to-cart-card-button i,
#cartModal .products-slider .add-to-cart-card-button .add-to-cart-text i {
	color: var(--e-global-color-primary) !important;
}

#cartModal .products-slider .add-to-cart-card-button:hover i,
#cartModal .products-slider .add-to-cart-card-button:hover .add-to-cart-text i {
	color: var(--e-global-color-secondary) !important;
}
*/

/* DISABLED - Now using global Elementor settings */
/* Added to cart button (success state) */
/*
#cartModal .products-slider .added-to-cart-button {
	background-color: transparent !important;
	border: none !important;
	width: 40px !important;
	height: 40px !important;
	font-size: 18px !important;
	top: 0px !important;
	right: 0px !important;
	z-index: 10 !important;
}

#cartModal .products-slider .added-to-cart-button i,
#cartModal .products-slider .added-to-cart-button .add-to-cart-text i {
	color: var(--e-global-color-primary) !important;
}
*/

/* ============================================
   Cart Slider Navigation Arrows & Layout Fixes
   ============================================ */

/* Fix overflow issue - ensure cart modal content doesn't cause horizontal scroll */
#cartModal .modal-body {
	overflow-x: hidden;
}

#cartModal .cart-slider-wrapper {
	overflow: visible;
}

/* Allow arrows to be visible outside container */
#cartModal .products-slider,
#cartModal .products-slider-copy {
	overflow: visible;
}

/* Position slider header/copy wrapper above the slider */
#cartModal .products-slider-copy {
	position: relative;
	margin-bottom: -40px;
	top: -55px;
	height: 32px;
	z-index: 10;
}

/* Position title and arrows container */
#cartModal .products-slider-header {
	position: relative;
	height: 100%;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Hide title and text in cart slider to save space */
#cartModal .products-slider-title,
#cartModal .products-slider-text {
	display: none !important;
}

/* Position arrows at right side of header */
#cartModal .cart-slider-wrapper .prod-slick-prev,
#cartModal .cart-slider-wrapper .prod-slick-next {
	position: relative !important;
	top: auto !important;
	width: 32px !important;
	height: 32px !important;
	z-index: 10 !important;
	opacity: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: var(--e-global-color-primary) !important;
	border-radius: 50% !important;
	border: none !important;
	cursor: pointer !important;
	padding: 6px !important;
}

#cartModal .cart-slider-wrapper .prod-slick-prev i,
#cartModal .cart-slider-wrapper .prod-slick-next i {
	color: #fff !important;
	font-size: 14px !important;
	line-height: 1 !important;
}

#cartModal .cart-slider-wrapper .prod-slick-prev {
	margin-right: 13px !important;
}

#cartModal .cart-slider-wrapper .prod-slick-prev:hover,
#cartModal .cart-slider-wrapper .prod-slick-next:hover {
	background-color: var(--e-global-color-secondary) !important;
}

/* Remove padding from slick-list in cart slider */
#cartModal .products-slider .slick-list {
	padding: 0 !important;
	overflow: visible;
}

/* Ensure slider container allows arrows to be visible */
#cartModal .products-slider-container {
	overflow: visible;
}

/* ============================================
   CART SLIDER STYLES REMOVED
   ============================================
   All #cartModal .products-slider styles have been removed
   to allow Elementor Global Settings to apply properly.
   
   Product cards in cart slider now use:
   - Elementor > Site Settings > Product Cards (Global Settings)
   - jardin-las-vegas-template.css (Base template styles)
   
   This ensures consistency across all product sliders site-wide.
   ============================================ */

/* ============================================
   Cart Slider Card Specific Overrides
   ============================================ */

/* Remove box shadow from cards in cart slider */
#cartModal .products-slider .product-card,
#cartModal .products-slider .card {
	box-shadow: none !important;
}

/* Hide effect badges in cart slider */
#cartModal .products-slider .card-effects,
#cartModal .products-slider .type-and-labs,
#cartModal .products-slider .card-effects-badges,
#cartModal .products-slider .type-and-labs-badges,
#cartModal .products-slider .type-and-labs-dropdown {
	display: none !important;
}

/* Badge colors and positioning for cart slider */
#cartModal .cart-slider-wrapper .discount-badge,
#cartModal .products-slider .discount-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	background-color: var(--e-global-color-primary);
	font-family: "Oswald", sans-serif;
	color: #fff;
	font-weight: 600;
	border-radius: 0;
	padding: 8px;
	display: inline-flex;
	gap: 5px;
	align-items: center;
}

#cartModal .cart-slider-wrapper .sale-badge,
#cartModal .products-slider .sale-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background-color: var(--e-global-color-primary);
	font-family: "Oswald", sans-serif;
	color: #fff;
	font-weight: 600;
	border-radius: 0;
	padding: 8px;
	display: inline-flex;
	gap: 5px;
	align-items: center;
}

#cartModal .quantity-control-cart .product-quantity-cart {
	border: none;
}

/* Add to cart text button specific styling for cart slider */
#cartModal .products-slider .add-to-cart-text-button {
	padding: 0.2rem 0.4rem !important;
}