/* Modern & Minimal Design */
:root {
	--primary-color: #6366f1;
	--primary-dark: #4f46e5;
	--success-color: #10b981;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-900: #111827;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
	background: #e5e7eb;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Mobile-First Container */
.mobile-container {
	max-width: 480px;
	margin: 0 auto;
	background: white;
	min-height: 100vh;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
	.mobile-container {
		max-width: 100%;
		box-shadow: none;
	}
}

/* Product Header Section */
.product-header-modern {
	background: white;
	padding-top: 40px;
}

.product-image-container {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.product-image-container img {
	width: 100%;
	height: auto;
	display: block;
}

.product-info-modern {
	padding: 24px;
}

.product-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	background: var(--gray-100);
	color: var(--gray-600);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 16px;
}

.product-badges-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.product-badge-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--gray-100);
	color: var(--gray-700);
	border-radius: 16px;
	font-size: 13px;
	font-weight: 500;
}

.product-badge-item i {
	font-size: 12px;
	color: var(--primary-color);
}

.product-title-modern {
	font-size: 32px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 16px;
	line-height: 1.2;
}

.product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.rating-stars {
	color: #fbbf24;
	font-size: 18px;
}

.rating-text {
	color: var(--gray-600);
	font-size: 14px;
}

.product-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--gray-50);
	border-radius: 12px;
}

.meta-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: 10px;
	color: var(--primary-color);
	font-size: 20px;
}

.meta-content {
	flex: 1;
}

.meta-label {
	font-size: 12px;
	color: var(--gray-600);
	margin-bottom: 4px;
}

.meta-value {
	font-size: 16px;
	font-weight: 600;
	color: var(--gray-900);
}

/* Option Selection Section */
.section-card {
	background: white;
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 16px;
	box-shadow: var(--shadow);
}

.section-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 8px;
}

.section-subtitle {
	font-size: 14px;
	color: var(--gray-600);
	margin-bottom: 24px;
}

/* Date/Time Selection */
.datetime-selector {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 32px;
}

.datetime-input {
	position: relative;
}

.datetime-input label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--gray-900);
	margin-bottom: 12px;
}

.datetime-input input[type="date"] {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--gray-200);
	border-radius: 12px;
	font-size: 15px;
	transition: all 0.2s;
	background: white;
}

.datetime-input input[type="date"]:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Time Slot Grid */
.time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 12px;
}

.time-slot {
	padding: 14px 16px;
	border: 2px solid var(--gray-200);
	border-radius: 10px;
	background: white;
	color: var(--gray-700);
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	user-select: none;
}

.time-slot:hover {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.05);
	color: var(--primary-color);
}

.time-slot.selected {
	border-color: var(--primary-color);
	background: var(--primary-color);
	color: white;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.time-slot.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: var(--gray-100);
}

.time-slot.disabled:hover {
	border-color: var(--gray-200);
	background: var(--gray-100);
	color: var(--gray-700);
}

/* Card-Based Option Selection */
.option-group {
	margin-bottom: 32px;
	border: 2px solid var(--gray-200);
	border-radius: 16px;
	overflow: hidden;
	background: white;
}

.option-group-header {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	background: var(--gray-50);
	border-bottom: 2px solid var(--gray-200);
}

.option-group-image {
	width: 100px;
	height: 100px;
	border-radius: 12px;
	object-fit: cover;
	object-position: center center;
	flex-shrink: 0;
	box-shadow: var(--shadow-md);
}

.option-group-info {
	flex: 1;
}

.option-group-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 4px;
}

.option-group-subtitle {
	font-size: 14px;
	color: var(--gray-600);
}

.option-group-description {
	font-size: 12px;
	color: var(--gray-600);
	line-height: 1.5;
	margin-top: 8px;
	padding: 8px 12px;
	background: var(--gray-50);
	border-radius: 8px;
	border-left: 3px solid var(--primary-color);
}

.option-items {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.option-item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border: 2px solid var(--gray-200);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s;
	background: white;
}

.option-item:hover {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.02);
}

.option-item.selected {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.08);
}

/* Custom Checkbox */
.option-item-checkbox {
	width: 22px;
	height: 22px;
	border: 2px solid var(--gray-300);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	transition: all 0.2s;
	flex-shrink: 0;
}

.option-item:hover .option-item-checkbox {
	border-color: var(--primary-color);
}

.option-item.selected .option-item-checkbox {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.option-item-checkbox-icon {
	color: white;
	font-size: 12px;
	display: none;
}

.option-item.selected .option-item-checkbox-icon {
	display: block;
}

.option-item-info {
	flex: 1;
	min-width: 0;
}

.option-item-name {
	font-size: 16px;
	word-break: break-word;
	font-weight: 600;
	color: var(--gray-900);
}

.option-item-description {
	font-size: 12px;
	color: var(--gray-600);
	line-height: 1.4;
	margin-top: 4px;
}

.option-item-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	margin-left: auto;
}

/* When selected, stack price and quantity vertically */
.option-item.selected .option-item-right {
	width: 100%;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin-left: 0;
	padding-right: 0;
}

.option-item-price {
	font-size: 17px;
	font-weight: 700;
	color: var(--primary-color);
	white-space: nowrap;
}

.option-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	max-width: 100%;
	box-sizing: border-box;
}

.option-card {
	position: relative;
	padding: 0;
	border: 2px solid var(--gray-200);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	background: white;
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	min-height: 120px;
}

.option-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.option-card.selected {
	border-color: var(--primary-color);
	background: rgba(99, 102, 241, 0.05);
}

/* Checkbox for option card */
.option-card-checkbox {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 24px;
	height: 24px;
	border: 2px solid var(--gray-300);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	transition: all 0.2s;
	z-index: 1;
}

.option-card:hover .option-card-checkbox {
	border-color: var(--primary-color);
}

.option-card.selected .option-card-checkbox {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.option-card-checkbox-icon {
	color: white;
	font-size: 14px;
	display: none;
}

.option-card.selected .option-card-checkbox-icon {
	display: block;
}

/* Remove old checkbox style */
.option-card.selected::after {
	display: none;
}

.option-card-image {
	width: 120px;
	min-width: 120px;
	height: 120px;
	object-fit: cover;
	object-position: center center;
	flex-shrink: 0;
	border-radius: 12px 0 0 12px;
}

.option-card-content {
	flex: 1;
	min-width: 0;
	padding: 16px 10px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.option-card-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--gray-900);
	margin-bottom: 8px;
	padding-right: 32px;
}

.option-card-description {
	display: none; /* Hidden - description shown in image modal only */
}

.option-card-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--primary-color);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Standalone Option Card (name at top) */
.standalone-option-card {
	flex-direction: column;
}

.standalone-option-header {
	padding: 12px 16px;
	background: var(--gray-50);
	border-bottom: 1px solid var(--gray-200);
}

.standalone-option-header .option-card-name {
	margin-bottom: 0;
	padding-right: 0;
}

.standalone-option-card {
	overflow: hidden;
}

.standalone-option-body {
	display: flex;
	overflow: hidden;
	min-height: 120px;
	position: relative;
}

.standalone-option-body .option-card-image {
	border-radius: 0 0 0 0;
	flex-shrink: 0;
}

.standalone-option-body .option-card-content {
	justify-content: center;
}

/* Price and checkbox in one row */
.standalone-price-checkbox-row {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: flex-end;
}

.standalone-price-checkbox-row .option-card-price {
	margin-bottom: 0;
}

.standalone-price-checkbox-row .option-card-checkbox {
	position: relative;
	top: auto;
	right: auto;
}

/* Quantity selector below */
.standalone-option-body .quantity-selector {
	margin-top: 12px;
}

/* Quantity Selector */
.quantity-selector {
	display: flex;
	align-items: center;
	gap: 8px;
}

.option-item .quantity-selector {
	background: rgba(99, 102, 241, 0.1);
	padding: 6px 12px;
	border-radius: 8px;
	width: 100%;
	max-width: 140px;
}

.option-card .quantity-selector {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--gray-200);
	width: 100%;
	justify-content: flex-end;
}

.quantity-label {
	font-size: 11px;
	color: var(--primary-color);
	font-weight: 600;
	white-space: nowrap;
}

.quantity-controls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.quantity-btn {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--gray-300);
	border-radius: 6px;
	background: white;
	color: var(--gray-700);
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s;
}

.option-item .quantity-btn {
	width: 24px;
	height: 24px;
	border: none;
	background: white;
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
}

.option-item .quantity-btn:hover {
	background: rgba(99, 102, 241, 0.2);
}

.quantity-btn:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.quantity-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.quantity-value {
	min-width: 30px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-900);
}

.option-item .quantity-value {
	min-width: 24px;
	font-size: 13px;
	color: var(--primary-color);
}

/* Prevent horizontal scroll on mobile - delivery detail specific */

/* Order Summary Bottom Fixed */
.order-summary-sticky {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100vw;
	max-width: 100vw;
	z-index: 1000;
	background: white;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
	/* Ensure visibility on mobile browsers with bottom UI */
	padding-bottom: calc(env(safe-area-inset-bottom) + 0px);
	box-sizing: border-box;
	overflow-x: hidden;
	/* Use CSS variable for dynamic bottom positioning */
	bottom: var(--viewport-bottom-offset, 0px);
}

/* Order Summary Popup Animation */
@keyframes summaryPopup {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
		box-shadow: 0 -8px 30px rgba(99, 102, 241, 0.25);
	}
	100% {
		transform: translateY(0);
	}
}

.order-summary-sticky.popup-animation {
	animation: summaryPopup 0.4s ease;
}

@media (min-width: 769px) {
	.order-summary-sticky {
		left: 50%;
		transform: translateX(-50%);
		max-width: 480px;
		padding-bottom: 0;
	}

	.order-summary-sticky.popup-animation {
		animation: summaryPopupDesktop 0.4s ease;
	}
}

/* Desktop popup animation (with translateX consideration) */
@keyframes summaryPopupDesktop {
	0% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(-8px);
		box-shadow: 0 -8px 30px rgba(99, 102, 241, 0.25);
	}
	100% {
		transform: translateX(-50%) translateY(0);
	}
}

.summary-card {
	background: white;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.summary-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: var(--primary-color);
	color: white;
	cursor: pointer;
	user-select: none;
}

.summary-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.summary-toggle-icon {
	font-size: 20px;
	transition: transform 0.3s ease;
	transform: rotate(0deg);
}

.summary-toggle-icon.expanded {
	transform: rotate(180deg);
}

.summary-header-title {
	font-size: 16px;
	font-weight: 600;
}

.summary-header-total {
	font-size: 18px;
	font-weight: 700;
}

.summary-content {
	max-height: 50vh;
	display: none;
	flex-direction: column;
}

.summary-content.expanded {
	display: flex;
}

.summary-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 20px;
	padding: 20px 20px 0 20px;
}

.summary-items {
	flex: 1;
	overflow-y: auto;
	padding: 0 20px;
	max-height: calc(50vh - 300px); /* Reserve space for fixed bottom section */
}

/* Hide scrollbar when empty cart is shown */
.summary-items:has(.empty-cart) {
	overflow-y: hidden;
}

.summary-items::-webkit-scrollbar {
	width: 6px;
}

.summary-items::-webkit-scrollbar-track {
	background: var(--gray-100);
	border-radius: 3px;
}

.summary-items::-webkit-scrollbar-thumb {
	background: var(--gray-400);
	border-radius: 3px;
}

.summary-items::-webkit-scrollbar-thumb:hover {
	background: var(--gray-500);
}

.summary-bottom-section {
	flex-shrink: 0;
	padding: 0 20px 20px 20px;
	background: white;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px solid var(--gray-100);
}

.summary-item:last-child {
	border-bottom: none;
}

.summary-item-info {
	flex: 1;
}

.summary-item-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--gray-900);
	margin-bottom: 4px;
}

.summary-item-details {
	font-size: 12px;
	color: var(--gray-600);
}

.summary-item-price {
	font-size: 16px;
	font-weight: 600;
	color: var(--gray-900);
	margin-left: 16px;
}

.summary-item-remove {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gray-200);
	border: none;
	border-radius: 50%;
	color: var(--gray-600);
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s;
	margin-left: 8px;
	flex-shrink: 0;
}

.summary-item-remove:hover {
	background: #ef4444;
	color: white;
	transform: scale(1.1);
}

.summary-divider {
	height: 1px;
	background: var(--gray-200);
	margin: 20px 0;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.summary-label {
	font-size: 14px;
	color: var(--gray-600);
}

.summary-value {
	font-size: 16px;
	font-weight: 600;
	color: var(--gray-900);
}

.summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 2px solid var(--gray-200);
	margin-top: 20px;
}

.summary-total-label {
	font-size: 18px;
	font-weight: 700;
	color: var(--gray-900);
}

.summary-total-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--primary-color);
	transition: all 0.3s ease;
}

.summary-total-usd {
	font-size: 14px;
	color: var(--gray-600);
	margin-top: 4px;
}

/* Price update animation */
@keyframes priceUpdate {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.15);
		color: #00b894;
	}
	100% {
		transform: scale(1);
	}
}

.price-updated {
	animation: priceUpdate 0.5s ease;
}

/* Animate all price elements */
#subtotalValue,
#totalValue,
#headerTotalValue,
#totalPrice {
	transition: all 0.3s ease;
	display: inline-block;
}

/* Date/Time Selection - Simple */
.date-select-simple {
	margin-bottom: 20px;
}

.date-select-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: white;
	border: 2px solid var(--gray-200);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.2s;
	gap: 16px;
}

.date-select-button:hover {
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.date-select-item {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.date-select-item i {
	color: var(--primary-color);
	font-size: 18px;
}

.date-select-item input {
	border: none;
	background: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--gray-900);
	cursor: pointer;
	width: 100%;
}

.date-select-item input::placeholder {
	color: var(--gray-400);
}

.date-select-button > i {
	color: var(--gray-400);
	font-size: 14px;
}

.date-select-notice {
	display: flex;
	align-items: start;
	gap: 6px;
	margin-top: 8px;
	font-size: 12px;
	color: var(--gray-600);
}

.date-select-notice i {
	color: var(--primary-color);
	margin-top: 2px;
	flex-shrink: 0;
}

/* Modal time selection styling */
#selectTime {
	margin-top: 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

#selectTime .title {
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-700);
	margin-bottom: 0;
	grid-column: 1 / -1;
}

#selectTime .select-time {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	width: 100%;
}

#selectTime .select-time.btn-primary {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

/* Date Selection Modal */
#selected-date-modal-dialog .modal-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 500px;
	width: 100%;
	margin: 0;
}

#selected-date-modal-dialog .modal-content {
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	width: 100%;
}

#selected-date-modal-dialog .modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

/* Datepicker styling */
#datepicker-inline .datepicker-switch {
	text-align: center !important;
	width: 100%;
}

#datepicker-inline .datepicker-days thead tr:first-child th {
	text-align: center;
}

#datepicker-inline .datepicker-days thead tr:first-child {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#datepicker-inline .datepicker-days thead tr:first-child .prev {
	order: 1;
	text-align: left;
}

#datepicker-inline .datepicker-days thead tr:first-child .datepicker-switch {
	order: 2;
	flex: 1;
	text-align: center;
}

#datepicker-inline .datepicker-days thead tr:first-child .next {
	order: 3;
	text-align: right;
}

@media (max-width: 768px) {
	#selectTime {
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
	}

	#selectTime .select-time {
		padding: 8px 4px;
		font-size: 13px;
	}

	#selected-date-modal-dialog .modal-dialog {
		max-width: calc(100vw - 30px);
		width: calc(100vw - 30px);
	}

	#selected-date-modal-dialog .modal-content {
		max-height: 85vh;
		transform: translate(-50%, -85%)
	}

	#selected-date-modal-dialog .modal-body {
		padding: 15px;
	}
}

/* Review Form Styling */
.review-form {
	background: white;
	padding: 32px;
	border-radius: 16px;
	border: 2px solid var(--gray-200);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-form h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--primary-color);
}

.review-form .form-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-700);
	margin-bottom: 8px;
	display: block;
}

.review-form .form-control {
	border: 2px solid var(--gray-200);
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 14px;
	transition: all 0.2s;
	background: var(--gray-50);
}

.review-form .form-control:focus {
	border-color: var(--primary-color);
	background: white;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
	outline: none;
}

.review-form .form-control:disabled {
	background: var(--gray-100);
	color: var(--gray-500);
	cursor: not-allowed;
}

.review-form textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

.review-form .rating {
	padding: 12px 0;
}

.review-form .btn-file-group {
	margin-top: 8px;
}

.review-form .fileinput-button {
	border-radius: 10px;
	padding: 10px 20px;
	font-weight: 600;
	transition: all 0.2s;
	border: 2px dashed var(--primary-color);
	background: rgba(99, 102, 241, 0.05);
	color: var(--primary-color);
}

.review-form .fileinput-button:hover {
	background: rgba(99, 102, 241, 0.1);
	transform: translateY(-1px);
}

.review-form .image-file-area {
	margin-top: 16px;
}

.review-form .image-file-area img {
	border-radius: 12px;
	border: 2px solid var(--gray-200);
}

.review-form .image-file-body {
	font-size: 13px;
	color: var(--gray-600);
	line-height: 1.6;
}

.review-form .submit-review,
.review-form .non-writable-review {
	width: 100%;
	padding: 14px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	margin-top: 8px;
	transition: all 0.2s;
	border: none;
}

.review-form .submit-review {
	background: var(--primary-color);
	color: white;
}

.review-form .submit-review:hover {
	background: #5558e3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.review-form .non-writable-review {
	background: var(--gray-400);
	color: white;
	cursor: not-allowed;
}

.review-form .text-danger {
	color: #ef4444;
}

.review-form .mb-3 {
	margin-bottom: 20px;
}

/* Continue Button */
.btn-continue {
	width: 100%;
	padding: 16px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	margin-top: 16px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.btn-continue-text {
	font-size: 16px;
	font-weight: 600;
}

.btn-continue-min-order {
	font-size: 12px;
	font-weight: 400;
	opacity: 0.85;
}

.btn-continue:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-continue:disabled {
	background: var(--gray-300);
	cursor: not-allowed;
	transform: none;
}

/* Empty State */
.empty-cart {
	text-align: center;
	padding: 20px;
}

.empty-cart-icon {
	font-size: 64px;
	color: var(--gray-300);
	margin-bottom: 16px;
}

.empty-cart-text {
	font-size: 16px;
	color: var(--gray-600);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.product-title-modern {
		font-size: 24px;
	}

	.section-card {
		padding: 20px;
	}

	.option-cards {
		grid-template-columns: 1fr;
	}

	.order-summary-sticky {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100vw;
		z-index: 1000;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
		max-height: 80vh;
		overflow: hidden;
		box-sizing: border-box;
		margin: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.summary-card {
		border-radius: 16px 16px 0 0;
		width: 100%;
		box-sizing: border-box;
	}

	.summary-header {
		padding: 16px;
		box-sizing: border-box;
	}

	.summary-items {
		max-height: calc(50vh - 200px);
		padding: 0 16px;
		box-sizing: border-box;
	}

	.summary-content {
		max-height: 70vh;
		width: 100%;
		box-sizing: border-box;
	}

	.summary-bottom-section {
		padding: 0 16px 16px 16px;
		box-sizing: border-box;
	}
}

/* Loading State */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.loading-overlay.active {
	opacity: 1;
	visibility: visible;
}

.loading-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Image Modal */
.image-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.image-modal.active {
	display: flex;
	opacity: 1;
}

.image-modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.image-modal-image {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-description {
	margin-top: 16px;
	padding: 12px 16px;
	background: white;
	border-radius: 8px;
	color: var(--gray-700);
	font-size: 14px;
	line-height: 1.6;
	max-width: 600px;
	text-align: center;
	display: none;
}

.image-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: white;
	color: var(--gray-900);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 24px;
	transition: all 0.2s;
	border: none;
}

.image-modal-close:hover {
	background: var(--gray-200);
	transform: rotate(90deg);
}

/* Make images clickable */
.option-group-image,
.option-card-image {
	cursor: pointer;
	transition: opacity 0.2s;
}

.option-group-image:hover,
.option-card-image:hover {
	opacity: 0.85;
}

@media (max-width: 768px) {
	.image-modal-content {
		max-width: 95%;
		max-height: 95%;
	}

	.image-modal-close {
		top: 10px;
		right: 10px;
	}
}

/* Product Information Tabs */
.product-info-tabs {
	margin-top: 48px;
	margin-bottom: 32px;
	border: 2px solid var(--gray-200);
	border-radius: 16px;
	overflow: hidden;
}

.info-tab-nav {
	display: flex;
	gap: 0;
	background: var(--gray-50);
	border-bottom: 2px solid var(--gray-200);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--gray-300) var(--gray-100);
	scroll-behavior: smooth;
}

.info-tab-nav::-webkit-scrollbar {
	height: 4px;
}

.info-tab-nav::-webkit-scrollbar-track {
	background: var(--gray-100);
}

.info-tab-nav::-webkit-scrollbar-thumb {
	background: var(--gray-300);
	border-radius: 2px;
}

.info-tab-btn {
	padding: 18px 28px;
	background: transparent;
	border: none;
	border-right: 1px solid var(--gray-200);
	color: var(--gray-600);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	position: relative;
	transition: all 0.3s;
	flex-shrink: 0;
}

.info-tab-btn:last-child {
	border-right: none;
}

.info-tab-btn:hover {
	background: white;
	color: var(--primary-color);
}

.info-tab-btn.active {
	background: white;
	color: var(--primary-color);
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.info-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--primary-color);
}

.info-tab-content {
	display: none;
	animation: fadeIn 0.3s ease;
	padding: 32px;
	background: white;
	min-height: 300px;
}

.info-tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.info-text {
	font-size: 15px;
	line-height: 1.8;
	color: var(--gray-700);
}

.info-text ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Numbered list items (for order info, cancellation, things tabs) */
.info-text ul li[data-number] {
	padding: 20px;
	border: 1px solid var(--gray-200);
	border-radius: 12px;
	margin-bottom: 12px;
	background: var(--gray-50);
	transition: all 0.2s;
	position: relative;
	padding-left: 48px;
}

.info-text ul li[data-number]:last-child {
	margin-bottom: 0;
}

.info-text ul li[data-number]:hover {
	background: white;
	border-color: var(--primary-color);
	box-shadow: var(--shadow);
}

.info-text ul li[data-number]::before {
	content: attr(data-number);
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

/* Timeline for Order Guide */
.guide-title {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 16px;
}

.guide-subtitle {
	text-align: center;
	font-size: 15px;
	color: var(--gray-600);
	margin-bottom: 48px;
}

.timeline {
	position: relative;
	padding: 0;
	display: grid;
	gap: 20px;
}

.timeline-item {
	position: relative;
	background: white;
	border: 2px solid var(--gray-200);
	border-radius: 16px;
	padding: 28px;
	transition: all 0.3s;
}

.timeline-item:hover {
	border-color: var(--primary-color);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.timeline-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	color: white;
	padding: 10px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.timeline-step-number {
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
}

.timeline-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 16px;
	line-height: 1.3;
}

.timeline-description {
	font-size: 15px;
	line-height: 1.8;
	color: var(--gray-600);
	padding: 0;
}

@media (max-width: 768px) {
	.info-tab-btn {
		padding: 14px 20px;
		font-size: 14px;
	}

	.info-tab-content {
		padding: 20px;
	}

	.timeline {
		gap: 16px;
	}

	.timeline-item {
		padding: 20px !important;
	}

	.timeline-badge {
		font-size: 13px;
		padding: 8px 16px;
		gap: 6px;
	}

	.timeline-step-number {
		font-size: 20px;
	}

	.timeline-title {
		font-size: 18px;
		margin-bottom: 12px;
	}

	.timeline-description {
		font-size: 14px;
	}

	.guide-title {
		font-size: 22px;
	}

	.guide-subtitle {
		font-size: 14px;
		margin-bottom: 32px;
	}

	.info-text ul li[data-number] {
		padding: 16px;
		padding-left: 44px;
	}

	/* Review Section Width Fix for Mobile */
	#tab-reviews .col-md-7,
	#tab-reviews .col-md-5 {
		max-width: 100%;
		flex: 0 0 100%;
		padding-left: 0;
		padding-right: 0;
	}

	#tab-reviews .review-form-details {
		margin-top: 24px;
	}
}

/* Review Section Styles */
.review-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 12px;
}

.review-title .title {
	font-size: 18px;
	font-weight: 600;
	color: var(--gray-900);
	flex: 1;
}

.review-title .average-rate {
	font-size: 14px;
	color: var(--gray-600);
	white-space: nowrap;
}

.review-title .average-rate-text {
	font-weight: 600;
	color: var(--primary-color);
}

@media (max-width: 768px) {
	.review-title {
		flex-wrap: nowrap;
	}

	.review-title .title {
		font-size: 16px;
	}

	.review-title .average-rate {
		font-size: 13px;
	}
}
