/* Base item sizing — used on mobile/tablet and as fallback */
.pc-item{
    flex: 0 0 clamp(150px, 22%, 220px);
    min-width: 150px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image sizing, capped so it never blows up */
.pc-item .pc-figure {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

.pc-item .pc-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.pc-item .pc-name {
    max-width: 200px;
    text-align: center;
    margin: 8px auto 0;
}


@media (min-width: 768px) {
  .pc-track.fit {
    justify-content: center;
    gap: 32px;
  }
}

/* Desktop only: center the 3 items instead of stretching them */
@media (min-width: 992px) {
  .pc-track.fit {
    justify-content: center;
    gap: 32px;
  }
}

.downloadgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 500px;
	margin: 0 auto;
	justify-content: center;
}

@media (max-width: 700px) {
	.downloadgrid {
	    display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
	}
}

/* ===== Download App Section ===== */
.download-wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}

/* Phone mockup on the left */
.download-phone {
	flex-shrink: 0;
	display: flex;
	align-items: center;
  padding-right: 40px;
}

.download-phone img {
	width: 250px;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* Middle text + badges block */
.download-content {
	flex: 0 1 auto;
	min-width: 260px;
}

.downloadgrid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	gap: 16px;
	align-items: center;
	margin: 0;
}

.store-badge {
	width: 140px;
}

/* QR block on the right */
.download-qr {
	text-align: center;
	flex-shrink: 0;
	margin-left: 0;
}

.download-qr img {
	width: 140px;
	height: 140px;
	object-fit: contain;
	margin: 0 auto;
}

.download-qr p {
	margin: 5px 0 0;
	font-size: 13px;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
	.download-wrapper {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.download-content {
		text-align: center;
	}

	.download-content .sec__head {
		text-align: center;
	}

	.downloadgrid {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.download-phone img {
		width: 180px;
	}
	
	.download-qr{
		display:none;
	}	

	.download-qr img {
		width: 150px;
		height: 150px;
	}
}

