/* ========== CART.CSS JOHN'S PEPPERS PREMIUM ============== */
/* ============ HERO ============== */
.cart-page .page-hero {
	padding: 8rem 0 5rem;
	text-align: center;
}

.hero-badge {
	display: inline-block;
	padding: .75rem 1.5rem;
	border-radius: 999px;
	margin-bottom: 1.5rem;
	background: rgba(255, 107, 53, .12);
	border: 1px solid rgba(255, 107, 53, .2);
	color: var(--primary);
	font-size: .875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.page-hero h1 {
	margin-bottom: 1.5rem;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.1;
}

.page-hero p {
	max-width: 700px;
	margin: auto;
	line-height: 1.8;
}

/* ======== BREADCRUMB ============ */
.breadcrumb-section {
	padding-bottom: 3rem;
}

.breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem 1.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
}

.breadcrumb a {
	text-decoration: none;
	color: var(--white);
	opacity: .75;
	transition: .3s ease;
}

.breadcrumb a:hover {
	opacity: 1;
	color: var(--primary);
}

.breadcrumb .current {
	color: var(--primary);
	font-weight: 700;
}

/* ======== LAYOUT ============ */
.cart-content {
	padding: 3rem 0 6rem;
}

.cart-layout {
	display: grid;
	gap: 3rem;
}

@media(min-width:992px) {
	.cart-layout {
		grid-template-columns: minmax(0, 2fr) minmax(320px, 400px);
		align-items: start;
	}
}

/* ========= PRODUTOS ============ */
.cart-products {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.price-qty, .total-remove{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap:1rem;
}

.cart-item {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 1.5rem;
	padding: 1.5rem;
	border-radius: 24px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
	transition: .3s ease;
}

.cart-item:hover {
	border-color: rgba(255, 107, 53, .25);
}

.cart-item img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 16px;
}

.cart-item-info h3 {
	font-size: 1rem;
}

.cart-item-price {
	color: var(--primary);
	font-weight: 500;
}

.cart-item-subtotal {
	font-weight: 700;
}

/* ========  QUANTIDADE =========== */
.cart-qty {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.cart-qty button {
	width: 35px;
	height: 35px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	font-size: 1.2rem;
	color: var(--white);
	background: rgba(255, 255, 255, .05);
	transition: .3s ease;
}

.cart-qty button:hover {
	background: var(--red);
}

.cart-qty span {
	min-width: 30px;
	text-align: center;
	font-weight: 700;
}

/* ====== REMOVER ITEM ============= */
.remove-item {
	border: none;
	background: transparent;
	color: var(--red);
	font-size: 1.2rem;
	cursor: pointer;
	font-weight: 600;
	transition: .3s ease;
	margin-top: 1rem;
}

.remove-item:hover {
	color: var(--red-light);
}

/* ======== RESUMO ============ */
.summary-card {
	position: sticky;
	top: 100px;
	padding: 2rem;
	border-radius: 28px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
	backdrop-filter: blur(12px);
}

.summary-card h3 {
	margin-bottom: 2rem;
	font-size: 1.5rem;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.summary-row.total {
	margin-top: 1rem;
	border-bottom: none;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary);
}

.summary-card .btn-primary {
	width: 100%;
	margin-top: 2rem;
}

.summary-card .btn-secondary {
	width: 100%;
	margin-top: 1rem;
}

/* ======= BENEFÍCIOS ========== */
.cart-benefits {
	padding: 6rem 0;
}

.benefits-grid {
	display: grid;
	gap: 2rem;
	margin-top: 3rem;
}

.benefit-item {
	padding: 2rem;
	text-align: center;
	border-radius: 24px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
	transition: .35s ease;
}

.benefit-item:hover {
	transform: translateY(-8px);
	border-color: rgba(255, 107, 53, .25);
}

.benefit-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.benefit-item h3 {
	margin-bottom: 1rem;
}

.benefit-item p {
	line-height: 1.8;
}

@media(min-width:768px) {
	.benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media(min-width:1200px) {
	.benefits-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* =========== CTA ============= */
.cart-cta {
	padding-bottom: 6rem;
}

.cart-cta-box {
	position: relative;
	overflow: hidden;
	padding: 4rem 2rem;
	text-align: center;
	border-radius: 32px;
	background: linear-gradient(135deg, rgba(255, 107, 53, .12), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .08);
}

.cart-cta-box::before {
	content: "";
	position: absolute;
	width: 350px;
	height: 350px;
	top: -150px;
	right: -150px;
	border-radius: 50%;
	background: rgba(255, 107, 53, .08);
	filter: blur(80px);
}

.cta-badge {
	display: inline-block;
	margin-bottom: 1.5rem;
	padding: .75rem 1.5rem;
	border-radius: 999px;
	background: rgba(255, 107, 53, .15);
	color: var(--primary);
	font-weight: 700;
}

.cart-cta-box h2 {
	margin-bottom: 1.5rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
}

.cart-cta-box p {
	max-width: 700px;
	margin: 0 auto 2rem;
	line-height: 1.8;
}

/* ========== CARRINHO VAZIO =========== */
.empty-cart {
	padding: 6rem 0;
}

.empty-cart.hidden {
	display: none;
}

.empty-cart-box {
	max-width: 700px;
	margin: auto;
	text-align: center;
	padding: 4rem 2rem;
	border-radius: 32px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
}

.empty-icon {
	font-size: 5rem;
	margin-bottom: 1.5rem;
}

.empty-cart-box h2 {
	margin-bottom: 1rem;
}

.empty-cart-box p {
	margin-bottom: 2rem;
	line-height: 1.8;
}

/* =======  FLOATING CART ========== */
.floating-cart {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
}
.floating-cart a {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient( 135deg, #ff0000, #000000 );
    box-shadow:0 15px 35px rgba(0,0,0,.25);
    border: 2px solid green
}
#cartCount {
	position: absolute;
	top: -5px;
	right: -5px;
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: .75rem;
	font-weight: 700;
	border: 2px solid #000;
}

/* ========== MOBILE ============== */
@media(min-width:200px){
    .floating-cart {
        position: fixed;
        right: 20px;
        bottom: 90px !important;
        z-index: 9999;
    }
}
@media(max-width:768px) {
	.cart-item {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.cart-item img {
		max-width: 220px;
		margin: auto;
	}

	.cart-qty {
		justify-content: center;
	}

	.summary-card {
		position: static;
	}

	.floating-cart {
		right: 15px;
		bottom: 15px;
	}

	.floating-cart a {
		width: 60px;
		height: 60px;
	}
}

