/* CC Bag — COROS-style shopping bag */

.cc-bag {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	background: #fff;
	color: #020015;
	font-family: "DIN Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.35;
}

.cc-bag *,
.cc-bag *::before,
.cc-bag *::after {
	box-sizing: border-box;
}

.cc-bag img {
	max-width: 100%;
	height: auto;
}

.cc-bag__inner {
	width: min(100% - 48px, 1280px);
	margin: 0 auto;
	padding: clamp(32px, 4vw, 64px) 0 clamp(56px, 6vw, 96px);
}

.cc-bag__title {
	margin: 0 0 clamp(36px, 5vw, 64px);
	font-family: "DIN Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: clamp(48px, 5.2vw, 76px);
	line-height: 0.92;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #111;
	font-weight: 700;
}

/* —— Table —— */

.cc-bag-table {
	width: 100%;
}

.cc-bag-table__head,
.cc-bag-item {
	display: grid;
	grid-template-columns: minmax(320px, 1.75fr) minmax(130px, 0.65fr) minmax(150px, 0.65fr) minmax(130px, 0.65fr) 70px;
	column-gap: 24px;
	align-items: center;
}

.cc-bag-table__head {
	border-bottom: 1px solid #d6d6d6;
	padding-bottom: 18px;
	color: #444;
	font-size: clamp(13px, 1vw, 16px);
	line-height: 1.2;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.cc-bag-table__cell {
	text-align: center;
}

.cc-bag-table__cell--product {
	text-align: left;
}

.cc-bag-item {
	min-height: 150px;
	padding: clamp(26px, 3vw, 42px) 0;
	border-bottom: 1px solid #d6d6d6;
}

.cc-bag-item__product {
	display: flex;
	align-items: center;
	gap: clamp(18px, 3vw, 36px);
	min-width: 0;
}

.cc-bag-item__image {
	width: clamp(92px, 10vw, 145px);
	height: clamp(92px, 10vw, 145px);
	flex: 0 0 clamp(92px, 10vw, 145px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cc-bag-item__image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.cc-bag-item__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.cc-bag-item__details {
	min-width: 0;
}

.cc-bag-item__title {
	display: inline-block;
	max-width: 100%;
	color: #020015;
	font-size: clamp(18px, 1.35vw, 22px);
	line-height: 1.25;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.cc-bag-item__title:hover {
	opacity: 0.7;
}

.cc-bag-item__meta {
	margin: 8px 0 0;
	font-size: clamp(14px, 1vw, 16px);
	line-height: 1.35;
	color: #333;
}

.cc-bag-item__unit-price,
.cc-bag-item__line-price {
	text-align: center;
	font-size: clamp(17px, 1.2vw, 20px);
	line-height: 1.25;
	font-weight: 800;
}

.cc-bag-item__quantity {
	text-align: center;
}

/* —— Quantity —— */

.cc-bag-qty {
	width: 132px;
	height: 42px;
	display: grid;
	grid-template-columns: 42px 1fr 42px;
	border: 1px solid #d6d6d6;
	margin: 0 auto;
}

.cc-bag-qty__btn,
.cc-bag-qty__input {
	height: 100%;
	border: 0;
	background: #fff;
	color: #111;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	font-family: inherit;
}

.cc-bag-qty__btn {
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.cc-bag-qty__btn:hover {
	opacity: 0.6;
}

.cc-bag-qty__btn--minus {
	border-right: 1px solid #d6d6d6;
}

.cc-bag-qty__btn--plus {
	border-left: 1px solid #d6d6d6;
}

.cc-bag-qty__input {
	width: 100%;
	appearance: textfield;
	-moz-appearance: textfield;
}

.cc-bag-qty__input::-webkit-outer-spin-button,
.cc-bag-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cc-bag-qty__input:focus {
	outline: 1px solid #111;
	outline-offset: -1px;
}

/* —— Remove —— */

.cc-bag-item__remove {
	text-align: center;
}

.cc-bag-remove {
	appearance: none;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0.25rem;
	color: #666;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cc-bag-remove:hover {
	opacity: 0.5;
}

.cc-bag-remove svg {
	display: block;
	width: 34px;
	height: 34px;
}

/* —— Summary —— */

.cc-bag-summary {
	width: min(100%, 520px);
	margin: clamp(32px, 4vw, 56px) 0 0 auto;
	border-top: 1px solid #d6d6d6;
	padding-top: 28px;
}

.cc-bag-summary__top,
.cc-bag-summary__products {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.cc-bag-summary__top {
	margin-bottom: 26px;
}

.cc-bag-summary__label,
.cc-bag-summary__amount {
	font-size: clamp(20px, 1.7vw, 28px);
	line-height: 1.1;
	font-weight: 900;
	text-transform: uppercase;
}

.cc-bag-summary__products {
	margin-bottom: 34px;
	font-size: clamp(17px, 1.2vw, 20px);
	line-height: 1.3;
	font-weight: 800;
	text-transform: uppercase;
}

.cc-bag-summary span,
.cc-bag-summary strong {
	font-size: inherit;
}

.cc-bag-summary__checkout {
	width: 100%;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff;
	border: 1px solid #111;
	text-decoration: none;
	text-transform: uppercase;
	font-size: clamp(15px, 1vw, 17px);
	font-weight: 900;
	letter-spacing: 0.12em;
	font-family: inherit;
	transition: background 0.2s ease, color 0.2s ease;
}

.cc-bag-summary__checkout:hover {
	background: #fff;
	color: #111;
}

/* —— Empty cart —— */

.cc-bag--empty .cc-bag__inner {
	min-height: clamp(420px, 60vh, 620px);
}

.cc-bag-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: clamp(40px, 8vw, 90px);
	text-align: center;
}

.cc-bag-empty .cc-bag__title {
	margin-bottom: clamp(24px, 4vw, 40px);
}

.cc-bag-empty__icon {
	color: #333;
	margin-bottom: 18px;
	display: flex;
	justify-content: center;
}

.cc-bag-empty__icon svg {
	width: 64px;
	height: 64px;
}

.cc-bag-empty__text {
	margin: 0 0 22px;
	font-family: "DIN Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: clamp(30px, 4.5vw, 42px);
	line-height: 1.1;
	color: #111;
	font-weight: 700;
}

.cc-bag-empty__button {
	width: min(100%, 340px);
	min-height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff;
	border: 1px solid #111;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 0.14em;
	font-family: inherit;
	transition: background 0.2s ease, color 0.2s ease;
}

.cc-bag-empty__button:hover {
	background: #fff;
	color: #111;
}

/* —— Loading —— */

.cc-bag--loading {
	opacity: 0.55;
	pointer-events: none;
}

/* Screen reader only */
.cc-bag .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* —— Phone —— */
@media (max-width: 767px) {
	.cc-bag__inner {
		width: min(100% - 28px, 100%);
		padding-top: 28px;
	}

	.cc-bag__title {
		font-size: 44px;
		margin-bottom: 32px;
	}

	.cc-bag-table__head {
		display: none;
	}

	.cc-bag-item {
		display: block;
		padding: 24px 0;
		position: relative;
		min-height: 0;
	}

	.cc-bag-item__product {
		display: flex;
		align-items: center;
		gap: 16px;
		padding-right: 42px;
		margin-bottom: 18px;
	}

	.cc-bag-item__image {
		width: 88px;
		height: 88px;
		flex: 0 0 88px;
	}

	.cc-bag-item__title {
		font-size: 18px;
		line-height: 1.25;
	}

	.cc-bag-item__meta {
		font-size: 14px;
	}

	.cc-bag-item__unit-price,
	.cc-bag-item__quantity,
	.cc-bag-item__line-price {
		display: block;
		margin-top: 12px;
		text-align: left;
		font-size: 16px;
		line-height: 1.35;
		font-weight: 700;
	}

	.cc-bag-item__unit-price::before {
		content: "Precio unitario: ";
		font-weight: 500;
	}

	.cc-bag-item__quantity::before {
		content: "Cantidad:";
		display: block;
		margin-bottom: 8px;
		font-weight: 500;
	}

	.cc-bag-item__line-price::before {
		content: "Subtotal: ";
		font-weight: 500;
	}

	.cc-bag-qty {
		margin: 0;
		width: 132px;
		height: 42px;
		grid-template-columns: 42px 1fr 42px;
	}

	.cc-bag-qty__btn,
	.cc-bag-qty__input {
		font-size: 17px;
	}

	.cc-bag-item__remove {
		position: absolute;
		top: 22px;
		right: 0;
	}

	.cc-bag-remove svg {
		width: 32px;
		height: 32px;
	}

	.cc-bag-summary {
		width: 100%;
		margin-top: 28px;
		padding-top: 24px;
	}

	.cc-bag-summary__top,
	.cc-bag-summary__products {
		gap: 16px;
	}

	.cc-bag-summary__label,
	.cc-bag-summary__amount {
		font-size: 24px;
	}

	.cc-bag-summary__products {
		font-size: 17px;
	}

	.cc-bag-summary__checkout {
		min-height: 58px;
		font-size: 15px;
		letter-spacing: 0.08em;
	}

	.cc-bag-empty__text {
		font-size: 32px;
	}

	.cc-bag-empty__button {
		min-height: 52px;
		font-size: 15px;
	}
}

/* —— Phone Wide —— */
@media (min-width: 768px) and (max-width: 860px) {
	.cc-bag__inner {
		width: min(100% - 36px, 100%);
	}

	.cc-bag-table__head {
		display: none;
	}

	.cc-bag-item {
		display: grid;
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 26px 0;
		position: relative;
		min-height: 0;
	}

	.cc-bag-item__product {
		display: flex;
		align-items: center;
		gap: 18px;
		padding-right: 48px;
	}

	.cc-bag-item__image {
		width: 105px;
		height: 105px;
		flex: 0 0 105px;
	}

	.cc-bag-item__unit-price,
	.cc-bag-item__quantity,
	.cc-bag-item__line-price {
		text-align: left;
	}

	.cc-bag-item__unit-price::before {
		content: "Precio unitario: ";
		font-weight: 500;
	}

	.cc-bag-item__line-price::before {
		content: "Subtotal: ";
		font-weight: 500;
	}

	.cc-bag-item__quantity::before {
		content: "Cantidad:";
		display: block;
		margin-bottom: 8px;
		font-weight: 500;
	}

	.cc-bag-item__remove {
		position: absolute;
		top: 22px;
		right: 0;
	}

	.cc-bag-qty {
		margin: 6px 0 0;
	}

	.cc-bag-summary {
		width: 100%;
	}
}

/* —— Tablet —— */
@media (min-width: 861px) and (max-width: 980px) {
	.cc-bag-table__head {
		display: none;
	}

	.cc-bag-item {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 18px;
		padding: 28px 0;
		position: relative;
		min-height: 0;
	}

	.cc-bag-item__product {
		grid-column: 1 / -1;
		padding-right: 52px;
	}

	.cc-bag-item__image {
		width: 115px;
		height: 115px;
		flex: 0 0 115px;
	}

	.cc-bag-item__unit-price,
	.cc-bag-item__quantity,
	.cc-bag-item__line-price {
		text-align: left;
	}

	.cc-bag-item__unit-price::before {
		content: "Precio unitario: ";
		font-weight: 500;
	}

	.cc-bag-item__line-price::before {
		content: "Subtotal: ";
		font-weight: 500;
	}

	.cc-bag-item__quantity::before {
		content: "Cantidad:";
		display: block;
		margin-bottom: 8px;
		font-weight: 500;
	}

	.cc-bag-item__remove {
		position: absolute;
		top: 28px;
		right: 0;
	}

	.cc-bag-qty {
		margin: 0;
	}

	.cc-bag-summary {
		width: 100%;
		margin-top: 34px;
	}
}

/* —— Tablet typography (768–1024) —— */
@media (min-width: 768px) and (max-width: 1024px) {
	.cc-bag__title {
		font-size: 54px;
	}

	.cc-bag-item__title {
		font-size: 19px;
	}

	.cc-bag-item__meta {
		font-size: 15px;
	}

	.cc-bag-item__unit-price,
	.cc-bag-item__line-price,
	.cc-bag-item__quantity {
		font-size: 17px;
	}

	.cc-bag-summary__label,
	.cc-bag-summary__amount {
		font-size: 24px;
	}

	.cc-bag-summary__products {
		font-size: 18px;
	}
}

/* —— Tablet Wide —— */
@media (min-width: 981px) and (max-width: 1024px) {
	.cc-bag-table__head,
	.cc-bag-item {
		grid-template-columns: minmax(280px, 1.5fr) 120px 140px 120px 56px;
		column-gap: 16px;
	}

	.cc-bag-item__image {
		width: 105px;
		height: 105px;
		flex: 0 0 105px;
	}

	.cc-bag-summary {
		width: min(100%, 460px);
	}
}

/* —— Desktop —— */
@media (min-width: 1025px) {
	.cc-bag-table__head {
		font-size: 14px;
	}

	.cc-bag-item__title {
		font-size: 20px;
	}

	.cc-bag-item__meta {
		font-size: 15px;
	}

	.cc-bag-item__unit-price,
	.cc-bag-item__line-price {
		font-size: 18px;
	}

	.cc-bag-summary__label,
	.cc-bag-summary__amount {
		font-size: 24px;
	}

	.cc-bag-summary__products {
		font-size: 18px;
	}
}

@media (min-width: 1025px) and (max-width: 1279px) {
	.cc-bag__inner {
		width: min(100% - 48px, 1200px);
	}
}

/* —— Widescreen —— */
@media (min-width: 1280px) {
	.cc-bag-table__head {
		font-size: 15px;
	}

	.cc-bag-item__title {
		font-size: 22px;
	}

	.cc-bag-item__meta {
		font-size: 16px;
	}

	.cc-bag-item__unit-price,
	.cc-bag-item__line-price {
		font-size: 20px;
	}

	.cc-bag-summary__label,
	.cc-bag-summary__amount {
		font-size: 28px;
	}

	.cc-bag-summary__products {
		font-size: 20px;
	}
}

@media (min-width: 1280px) and (max-width: 1439px) {
	.cc-bag__inner {
		max-width: 1280px;
	}

	.cc-bag-summary {
		max-width: 520px;
	}
}

/* —— Ultra Wide —— */
@media (min-width: 1440px) {
	.cc-bag__inner {
		max-width: 1360px;
	}

	.cc-bag-table__head,
	.cc-bag-item {
		grid-template-columns: minmax(360px, 1.9fr) 160px 170px 160px 80px;
	}

	.cc-bag-summary {
		max-width: 560px;
	}
}
