.floral-builder {
	display: grid;
	grid-template-columns: 220px 1fr 280px;
	gap: 20px;
	min-height: 850px;
}

.builder-left,
.builder-right {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 20px;
}

.builder-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.builder-left h3,
.builder-right h3 {
	margin-top: 0;
}

.shape-btn {
	display: block;
	width: 100%;
	margin-bottom: 10px;
	padding: 12px;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: all .2s ease;
    color: #000;
}

.shape-btn:hover {
	transform: translateY(-1px);
}

.shape-btn.active {
	background: #222;
	color: #fff;
	border-color: #222;
}

.canvas-wrapper {
	background: #fff;
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

#floral-canvas {
	border: 1px dashed #ddd;
	max-width: 100%;
}
#export-devis,
#export-composition {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.flower-item {
	display: flex;
	align-items: center;
    justify-content: space-between;
	gap: 10px;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #eee;
	border-radius: 8px;
}

.flower-item img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	flex-shrink: 0;
}
.flower-infos{
    display: flex;
    flex-direction: column;
}
.flower-item span {
	flex: 1;
	font-size: 14px;
}

.add-flower {
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    padding: 0;
}

.add-flower:hover {
	transform: scale(1.05);
}

.builder-right {
	max-height: 850px;
	overflow-y: auto;
}

.builder-right::-webkit-scrollbar {
	width: 8px;
}

.builder-right::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.builder-summary {
	width: 100%;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
}

#composition-details {
	margin-top: 15px;
}

.composition-line {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.composition-total {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 2px solid #ddd;
	font-size: 18px;
	font-weight: bold;
}

#delete-flower{
	padding:12px 20px;
	border:none;
	border-radius:8px;
	background:#dc3545;
	color:#fff;
	cursor:pointer;
	font-weight:600;
}
.all-btns{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* =====================================
   PC
===================================== */

@media (min-width: 1201px) {
.builder-summary {
	grid-area: 2 / 1 / 3 / 4;
}
.all-btns{
    flex-direction: row;
}
}

/* =====================================
   TABLETTE
===================================== */

@media (max-width: 1200px) {

	.floral-builder {
		grid-template-columns: 1fr;
	}

	.builder-left,
	.builder-center,
	.builder-right {
		width: 100%;
	}

	.builder-left {
		display: flex;
		gap: 10px;
	}

	.shape-btn {
		margin-bottom: 0;
		flex: 1;
	}

	.builder-right {
		max-height: 400px;
	}

}

@media (max-width: 1024px) {

	.floral-builder {
		grid-template-columns: 1fr;
	}

	.builder-left,
	.builder-center,
	.builder-right {
		width: 100%;
	}

	.builder-right {
		max-height: none;
	}
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

	.floral-builder {
		gap: 15px;
	}

	.builder-left,
	.builder-right {
		padding: 15px;
	}

	.canvas-wrapper {
		padding: 10px;
		overflow-x: auto;
	}

	#floral-canvas {
		max-width: 100%;
	}

	.flower-item {
		padding: 8px;
	}

	.flower-item img {
		width: 50px;
		height: 50px;
	}

	.flower-item span {
		font-size: 13px;
	}

	.add-flower {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}

    #export-devis,
	#export-composition {
		width: 100%;
	}

}