/* ========================================
   BASKET
======================================== */

.basket {
	padding: 5rem 0 6rem;
}

.basket-header {
	/* margin-bottom: 4rem; */
}

.basket-header h1 {
	margin: 0;
	font-size: 3rem;
	font-weight: 600;
	letter-spacing: -.02em;
}

/* ========================================
   BASKET LAYOUT
======================================== */

.basket-form {
	width: 100%;
}

.basket-summary {
	width: 100%;
}

.basket > .container {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
	gap: 5rem;
	align-items: start;
}

.basket-header {
	grid-column: 1 / -1;
}

/* ========================================
   BASKET ITEMS
======================================== */

.basket-items {
	border-top: 1px solid #ddd;
}

.basket-item {
	display: grid;
	grid-template-columns: 180px 1fr auto;
	gap: 2rem;
	padding: 2rem 0;
	border-bottom: 1px solid #ddd;
}

.basket-item-image {
	width: 180px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.basket-item-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.basket-item-details {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.basket-item-name {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 500;
}

.basket-item-name a {
	color: inherit;
	text-decoration: none;
}

.basket-item-name a:hover {
	opacity: .6;
}

.basket-item-price {
	margin-top: .5rem;
	color: #555;
	font-size: .95rem;
}

.basket-item-main {
	min-width: 0;
}


/* ========================================
   VARIATIONS
======================================== */

.basket-item-details dl {
	margin: .75rem 0 0;
	font-size: .85rem;
}

.basket-item-details dt {
	display: inline;
	font-weight: 500;
}

.basket-item-details dd {
	display: inline;
	margin: 0 1rem 0 .25rem;
	color: #666;
}


/* ========================================
   BASKET CONTROLS
======================================== */

.basket-item-controls {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

.basket-quantity {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.basket-quantity label {
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .08rem;
}

.quantity-selector {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	height: 2.5rem;
}

.quantity-button {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 2.5rem;
	height: 100%;

	padding: 0;
	border: none;
	background: #fff;
	color: #111;

	font-size: 1rem;
	line-height: 1;

	cursor: pointer;

	transition: background .2s ease;
}

.quantity-button:hover {
	background: #f5f5f5;
}

.quantity-selector input {
	width: 2.5rem;
	height: 100%;

	padding: 0;
	border: none;
	background: #fff;

	font: inherit;
	text-align: center;

	appearance: textfield;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.quantity-selector input:focus {
	outline: none;
}

.basket-remove {
	color: #555;
	font-size: .85rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.basket-remove:hover {
	color: #111;
}


/* ========================================
   ITEM TOTAL
======================================== */

.basket-item-total {
	align-self: start;
	font-size: .95rem;
	font-weight: 500;
	white-space: nowrap;
}


/* ========================================
   BASKET ACTIONS
======================================== */

.basket-actions {
	display: flex;
	justify-content: flex-end;
	padding: 1.5rem 0 0;
}

.basket-update {
	padding: .75rem 1.5rem;
	border: 1px solid #111;
	background: #fff;
	color: #111;
	font: inherit;
	cursor: pointer;
	transition:
		background .3s ease,
		color .3s ease;
}

.basket-update:hover {
	background: #111;
	color: #fff;
}


/* ========================================
   BASKET SUMMARY
======================================== */

.basket-summary {
	width: 100%;
	margin: 0;
	padding-top: 2rem;
	border-top: 1px solid #ddd;
}

.basket-summary h2 {
	margin: 0 0 2rem;
	font-size: 1.2rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .08rem;
}

.basket-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 2rem;
	font-size: 1rem;
}

.basket-subtotal span:last-child {
	font-weight: 500;
}

.basket-checkout-button {
	display: block;
	width: 100%;
	padding: 1rem 1.5rem;
	background: #111;
	color: #fff;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .1rem;
	font-size: .85rem;
	transition:
		background .3s ease,
		opacity .3s ease;
}

.basket-checkout-button:hover {
	opacity: .8;
}


/* ========================================
   EMPTY BASKET
======================================== */

.basket-empty {
	padding: 4rem 0;
	text-align: center;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.basket-empty p {
	margin: 0 0 2rem;
	color: #666;
}

.basket-continue {
	display: inline-block;
	padding: 1rem 1.5rem;
	background: #111;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .1rem;
	font-size: .85rem;
	transition: opacity .3s ease;
}

.basket-continue:hover {
	opacity: .8;
}

/* ========================================
   BASKET REASSURANCE
======================================== */

.basket-reassurance {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin-top: 1.5rem;
}

.basket-reassurance-item {
	display: flex;
	align-items: center;
	gap: .75rem;
	color: #666;
	font-size: .85rem;
	line-height: 1.5;
}

.basket-reassurance-icon {
	color: #111;
	font-size: .85rem;
	flex-shrink: 0;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {

	.basket > .container {
	grid-template-columns: 1fr;
	gap: 0;
}

.basket-header {
	grid-column: auto;
}

	.basket {
		padding: 4rem 0 5rem;
	}

	.basket-header {
		margin-bottom: 3rem;
	}

	.basket-header h1 {
		font-size: 2.25rem;
	}

	.basket-item {
		grid-template-columns: 110px 1fr;
		gap: 1.25rem;
	}

	.basket-item-image {
		width: 110px;
	}

	.basket-item-total {
		grid-column: 2;
	}

	.basket-item-controls {
		flex-wrap: wrap;
		gap: 1rem;
		margin-top: 1.5rem;
	}

	.basket-actions {
		justify-content: stretch;
	}

	.basket-update {
		width: 100%;
	}

	.basket-summary {
		max-width: none;
		margin-top: 4rem;
	}

}


@media (max-width: 480px) {

	.basket-item {
		grid-template-columns: 90px 1fr;
		gap: 1rem;
	}

	.basket-item-image {
		width: 90px;
	}

	.basket-item-name {
		font-size: 1rem;
	}

	.basket-item-price {
		font-size: .9rem;
	}

	.basket-item-total {
		grid-column: 2;
	}

}