/* ==========================================================
   PHIUM ESSENCE
   WOOCommerce CART BLOCK
   File: assets/css/woocommerce/cart.css
   ========================================================== */

body.woocommerce-cart {
	--phium-cart-accent: #ca8d66;
	--phium-cart-accent-dark: #a96f4d;
	--phium-cart-heading: #2b1c15;
	--phium-cart-text: #62564f;
	--phium-cart-muted: #94857c;
	--phium-cart-border: #eadfd6;
	--phium-cart-soft: #faf6f2;
	--phium-cart-white: #ffffff;
	--phium-cart-success: #5f7f4d;

	background: var(--phium-cart-soft);
}


/* ==========================================================
   PAGE SPACING
   ========================================================== */

body.woocommerce-cart main {
	background: var(--phium-cart-soft);
}

body.woocommerce-cart
main > .ct-container,
body.woocommerce-cart
[data-vertical-spacing="top:bottom"] {
	padding-top: clamp(40px, 6vw, 76px) !important;
	padding-bottom: clamp(50px, 7vw, 86px) !important;
}

body.woocommerce-cart .entry-header {
	margin-bottom: clamp(30px, 4vw, 48px);
}

body.woocommerce-cart .entry-title {
	margin: 0;
	color: var(--phium-cart-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(46px, 5vw, 68px);
	font-weight: 500;
	line-height: 1;
}


/* ==========================================================
   MAIN CART GRID
   ========================================================== */

body.woocommerce-cart
.wp-block-woocommerce-cart {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.woocommerce-cart
.wp-block-woocommerce-filled-cart-block {
	display: grid !important;
	grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.9fr);
	align-items: start;
	gap: clamp(34px, 4vw, 64px);
}

body.woocommerce-cart
.wp-block-woocommerce-cart-items-block,
body.woocommerce-cart
.wp-block-woocommerce-cart-totals-block {
	min-width: 0;
}


/* ==========================================================
   CART ITEMS COLUMN
   ========================================================== */

body.woocommerce-cart
.wc-block-cart-items {
	width: 100%;
	margin: 0;
	border: 0 !important;
	border-collapse: collapse;
	background: transparent;
}

body.woocommerce-cart
.wc-block-cart-items thead {
	border-bottom: 1px solid var(--phium-cart-border);
}

body.woocommerce-cart
.wc-block-cart-items thead th {
	padding: 0 0 18px !important;
	border: 0 !important;
	color: var(--phium-cart-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

body.woocommerce-cart
.wc-block-cart-items
.wc-block-cart-items__header-image {
	text-align: left;
}

body.woocommerce-cart
.wc-block-cart-items
.wc-block-cart-items__header-total {
	text-align: right;
}


/* ==========================================================
   CART ITEM ROW
   ========================================================== */

body.woocommerce-cart
.wc-block-cart-items__row {
	border-bottom: 1px solid var(--phium-cart-border) !important;
}

body.woocommerce-cart
.wc-block-cart-items__row td {
	padding-top: 22px !important;
	padding-bottom: 22px !important;
	border: 0 !important;
	vertical-align: top !important;
}

body.woocommerce-cart
.wc-block-cart-item__image {
	width: 105px !important;
	padding-right: 18px !important;
}

body.woocommerce-cart
.wc-block-cart-item__image img {
	display: block;
	width: 92px !important;
	height: 92px !important;
	max-width: 92px !important;
	border-radius: 14px;
	background: #ffffff;
	object-fit: cover;
	box-shadow: 0 6px 18px rgba(43, 28, 21, 0.06);
}

body.woocommerce-cart
.wc-block-cart-item__product {
	padding-right: 18px !important;
}

body.woocommerce-cart
.wc-block-cart-item__total {
	min-width: 120px;
	text-align: right !important;
}


/* ==========================================================
   PRODUCT DETAILS
   ========================================================== */

body.woocommerce-cart
.wc-block-components-product-name {
	display: inline-block;
	margin: 0 0 5px;
	color: var(--phium-cart-heading) !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
}

body.woocommerce-cart
.wc-block-components-product-name:hover {
	color: var(--phium-cart-accent-dark) !important;
}

body.woocommerce-cart
.wc-block-components-product-metadata {
	margin-top: 5px;
	color: var(--phium-cart-text);
	font-size: 12px;
	line-height: 1.55;
}

body.woocommerce-cart
.wc-block-components-product-metadata
.wc-block-components-product-details {
	margin: 0;
}

body.woocommerce-cart
.wc-block-components-product-details__name,
body.woocommerce-cart
.wc-block-components-product-details__value {
	color: var(--phium-cart-text);
	font-size: 12px;
}


/* ==========================================================
   PRICES
   ========================================================== */

body.woocommerce-cart
.wc-block-components-product-price,
body.woocommerce-cart
.wc-block-components-product-price__value,
body.woocommerce-cart
.wc-block-cart-item__total-price-and-sale-badge-wrapper {
	color: var(--phium-cart-heading);
	font-size: 14px;
	font-weight: 600;
}

body.woocommerce-cart
.wc-block-components-product-price
del {
	color: var(--phium-cart-muted);
	font-size: 12px;
	font-weight: 400;
}

body.woocommerce-cart
.wc-block-components-product-price
ins {
	color: var(--phium-cart-heading);
	text-decoration: none;
}

body.woocommerce-cart
.wc-block-components-sale-badge {
	padding: 5px 8px !important;
	border: 0 !important;
	border-radius: 5px !important;
	background: #eee8e3 !important;
	color: var(--phium-cart-text) !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	text-transform: none !important;
}


/* ==========================================================
   QUANTITY
   ========================================================== */

body.woocommerce-cart
.wc-block-components-quantity-selector {
	width: 100px !important;
	min-height: 44px;
	margin-top: 12px;
	border: 1px solid var(--phium-cart-border) !important;
	border-radius: 10px !important;
	background: #ffffff;
	box-shadow: none !important;
}

body.woocommerce-cart
.wc-block-components-quantity-selector
input {
	min-width: 34px;
	color: var(--phium-cart-heading) !important;
	font-size: 14px !important;
	font-weight: 600;
}

body.woocommerce-cart
.wc-block-components-quantity-selector
button {
	width: 32px !important;
	min-width: 32px !important;
	height: 42px !important;
	padding: 0 !important;
	color: var(--phium-cart-heading) !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.woocommerce-cart
.wc-block-components-quantity-selector
button:hover {
	color: var(--phium-cart-accent-dark) !important;
}


/* ==========================================================
   REMOVE LINK
   ========================================================== */

body.woocommerce-cart
.wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--phium-cart-muted) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	box-shadow: none !important;
}

body.woocommerce-cart
.wc-block-cart-item__remove-link:hover {
	color: #a54e44 !important;
}


/* ==========================================================
   CART TOTALS COLUMN
   ========================================================== */

body.woocommerce-cart
.wp-block-woocommerce-cart-totals-block {
	position: sticky;
	top: 125px;
	padding: 0;
}

body.woocommerce-cart
.wc-block-cart__sidebar {
	width: 100% !important;
	margin: 0 !important;
	padding: 26px !important;
	border: 1px solid var(--phium-cart-border);
	border-radius: 18px;
	background: var(--phium-cart-white);
	box-shadow: 0 12px 34px rgba(43, 28, 21, 0.06);
}

body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-heading-block,
body.woocommerce-cart
.wc-block-components-totals-wrapper {
	border-color: var(--phium-cart-border) !important;
}

body.woocommerce-cart
.wc-block-cart__totals-title {
	margin: 0 !important;
	padding: 0 0 18px !important;
	color: var(--phium-cart-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	text-transform: none !important;
}


/* ==========================================================
   COUPON
   ========================================================== */

body.woocommerce-cart
.wc-block-components-totals-coupon {
	padding: 16px 0 !important;
}

body.woocommerce-cart
.wc-block-components-totals-coupon-link {
	color: var(--phium-cart-heading) !important;
	font-size: 13px !important;
	font-weight: 500;
	text-decoration: none !important;
}

body.woocommerce-cart
.wc-block-components-totals-coupon__form {
	gap: 10px;
}

body.woocommerce-cart
.wc-block-components-totals-coupon__input
input {
	height: 46px !important;
	border: 1px solid var(--phium-cart-border) !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	box-shadow: none !important;
}

body.woocommerce-cart
.wc-block-components-totals-coupon__button {
	min-height: 46px !important;
	padding: 0 18px !important;
	border: 1px solid var(--phium-cart-accent) !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: var(--phium-cart-accent-dark) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	box-shadow: none !important;
}

body.woocommerce-cart
.wc-block-components-totals-coupon__button:hover {
	background: var(--phium-cart-accent) !important;
	color: #ffffff !important;
}


/* ==========================================================
   TAX AND TOTAL ROWS
   ========================================================== */

body.woocommerce-cart
.wc-block-components-totals-item {
	padding: 7px 0 !important;
}

body.woocommerce-cart
.wc-block-components-totals-item__label,
body.woocommerce-cart
.wc-block-components-totals-item__value {
	color: var(--phium-cart-text);
	font-size: 13px;
}

body.woocommerce-cart
.wc-block-components-totals-footer-item {
	margin-top: 12px;
	padding: 18px 0 0 !important;
	border-top: 1px solid var(--phium-cart-border);
}

body.woocommerce-cart
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label,
body.woocommerce-cart
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__value {
	color: var(--phium-cart-heading);
	font-size: 18px;
	font-weight: 600;
}

body.woocommerce-cart
.wc-block-components-totals-item__description {
	margin-top: 3px;
	color: var(--phium-cart-muted) !important;
	font-size: 11px !important;
	line-height: 1.45;
}


/* ==========================================================
   CHECKOUT BUTTON
   ========================================================== */

body.woocommerce-cart
.wc-block-cart__submit {
	margin-top: 20px !important;
}

body.woocommerce-cart
.wc-block-cart__submit-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 50px !important;
	padding: 13px 22px !important;
	border: 1px solid var(--phium-cart-accent) !important;
	border-radius: 999px !important;
	background: var(--phium-cart-accent) !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em;
	text-decoration: none !important;
	box-shadow: none !important;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

body.woocommerce-cart
.wc-block-cart__submit-button:hover {
	border-color: var(--phium-cart-accent-dark) !important;
	background: var(--phium-cart-accent-dark) !important;
	transform: translateY(-1px);
}


body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-grid__products {
	margin-top: 44px;
}


/* ==========================================================
   REMOVE TRENDING NOW
   ========================================================== */

body.woocommerce-cart .ct-trending-block {
	display: none !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {

	body.woocommerce-cart
	.wp-block-woocommerce-filled-cart-block {
		grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
		gap: 28px;
	}

	body.woocommerce-cart
	.wc-block-cart__sidebar {
		padding: 22px !important;
	}
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

	body.woocommerce-cart
	main > .ct-container,
	body.woocommerce-cart
	[data-vertical-spacing="top:bottom"] {
		padding-top: 30px !important;
		padding-bottom: 50px !important;
	}

	body.woocommerce-cart
	.wp-block-woocommerce-filled-cart-block {
		grid-template-columns: 1fr !important;
		gap: 30px;
	}

	body.woocommerce-cart
	.wp-block-woocommerce-cart-totals-block {
		position: static;
	}

	body.woocommerce-cart
	.wc-block-cart__sidebar {
		padding: 20px !important;
		border-radius: 15px;
	}

	body.woocommerce-cart
	.wc-block-cart-items thead {
		display: none;
	}

	body.woocommerce-cart
	.wc-block-cart-items__row {
		display: grid !important;
		grid-template-columns: 82px minmax(0, 1fr) !important;
		position: relative;
		padding: 18px 0 !important;
	}

	body.woocommerce-cart
	.wc-block-cart-items__row td {
		padding: 0 !important;
	}

	body.woocommerce-cart
	.wc-block-cart-item__image {
		grid-column: 1;
		width: 82px !important;
		padding-right: 12px !important;
	}

	body.woocommerce-cart
	.wc-block-cart-item__image img {
		width: 70px !important;
		height: 70px !important;
		max-width: 70px !important;
	}

	body.woocommerce-cart
	.wc-block-cart-item__product {
		grid-column: 2;
		padding-right: 0 !important;
	}

	body.woocommerce-cart
	.wc-block-cart-item__total {
		grid-column: 2;
		margin-top: 8px;
		text-align: left !important;
	}

	body.woocommerce-cart
	.wc-block-components-product-name {
		font-size: 17px;
	}
}
/* ==========================================================
   EMPTY CART — REMOVE NEW IN STORE
   ========================================================== */

/* Hide the separator above recommendations */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-separator {
	display: none !important;
}

/* Hide the secondary "New in store" heading */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-heading:not(.with-empty-cart-icon):not(.wc-block-cart__empty-cart__title) {
	display: none !important;
}

/* Hide WooCommerce new-product recommendation blocks */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new,

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-collection,

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-grid,

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-grid__products {
	display: none !important;
}

/* Compact the empty Cart layout */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block {
	min-height: 0 !important;
	padding: 60px 20px 80px !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title,

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.with-empty-cart-icon {
	margin-bottom: 0 !important;
}
/* ==========================================================
   EMPTY CART — REMOVE EXTRA GAP AND SCROLL
   Keep at the absolute end of cart.css
   ========================================================== */

body.woocommerce-cart {
	overflow-x: hidden;
}

body.woocommerce-cart main,
body.woocommerce-cart #main,
body.woocommerce-cart .site-main {
	min-height: 0 !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.woocommerce-cart
main > .ct-container,
body.woocommerce-cart
[data-vertical-spacing="top:bottom"] {
	min-height: 0 !important;
	padding-top: 38px !important;
	padding-bottom: 34px !important;
}


/* Compact empty-cart wrapper */

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	width: 100%;
	min-height: 0 !important;

	margin: 0 !important;
	padding: 20px 20px 42px !important;
}


/* Reduce empty-cart icon size */

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.with-empty-cart-icon::before {
	width: 190px !important;
	height: 190px !important;

	margin-bottom: 34px !important;

	font-size: 190px !important;
	line-height: 1 !important;
}


/* Compact empty-cart heading */

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title,
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.with-empty-cart-icon {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title {
	font-size: clamp(34px, 4vw, 52px) !important;
	line-height: 1.15 !important;
}


/* Remove hidden block spacing */

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
> *:empty {
	display: none !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-separator,
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-heading:not(.wc-block-cart__empty-cart__title):not(.with-empty-cart-icon),
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new,
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-collection,
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-grid {
	display: none !important;

	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
}


/* Remove space before footer */

body.woocommerce-cart
.wp-block-post-content,
body.woocommerce-cart
.entry-content,
body.woocommerce-cart
.wp-block-woocommerce-cart {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.woocommerce-cart
.ct-trending-block {
	display: none !important;
}

body.woocommerce-cart footer,
body.woocommerce-cart .ct-footer {
	margin-top: 0 !important;
}


/* Desktop viewport fit */

@media (min-width: 768px) {

	body.woocommerce-cart
	.wp-block-woocommerce-empty-cart-block {
		padding-top: 10px !important;
		padding-bottom: 34px !important;
	}

	body.woocommerce-cart
	.wp-block-woocommerce-empty-cart-block
	.with-empty-cart-icon::before {
		width: 170px !important;
		height: 170px !important;

		margin-bottom: 28px !important;

		font-size: 170px !important;
	}
}


/* Mobile */

@media (max-width: 767px) {

	body.woocommerce-cart
	main > .ct-container,
	body.woocommerce-cart
	[data-vertical-spacing="top:bottom"] {
		padding-top: 26px !important;
		padding-bottom: 26px !important;
	}

	body.woocommerce-cart
	.wp-block-woocommerce-empty-cart-block {
		padding: 10px 14px 32px !important;
	}

	body.woocommerce-cart
	.wp-block-woocommerce-empty-cart-block
	.with-empty-cart-icon::before {
		width: 130px !important;
		height: 130px !important;

		margin-bottom: 22px !important;

		font-size: 130px !important;
	}

	body.woocommerce-cart
	.wp-block-woocommerce-empty-cart-block
	.wc-block-cart__empty-cart__title {
		font-size: 34px !important;
	}
}
/* ===========================
   Quantity
=========================== */

.woocommerce-cart .quantity input.qty{
    color:#3c261d !important;
    background:#fff !important;
    opacity:1 !important;

    font-size:18px;
    font-weight:600;
    text-align:center;
}

.woocommerce-cart .quantity{
    min-width:110px;
}

.woocommerce-cart .quantity input::-webkit-outer-spin-button,
.woocommerce-cart .quantity input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}
/* ===========================
   Cart Layout
=========================== */

.woocommerce-cart .ct-container{
    max-width:1400px;
    padding-left:48px;
    padding-right:48px;
}

@media(max-width:768px){

.woocommerce-cart .ct-container{
    padding-left:20px;
    padding-right:20px;
}

}
/* ===========================
   Remove extra separators
=========================== */

.wc-block-components-totals-wrapper{
    border-top:none !important;
}

.wc-block-components-totals-item{
    border-top:none !important;
}

.wc-block-components-totals-footer-item{
    border-top:1px solid #ece4de !important;
}

.wc-block-components-totals-item:first-child{
    border-top:none !important;
}
.woocommerce-cart table.shop_table td{
    vertical-align:top;
}

.woocommerce-cart .product-thumbnail img{
    border-radius:12px;
}

.woocommerce-cart .product-name{
    padding-left:18px;
}
/* ==========================================
   WooCommerce Blocks Quantity Fix
   ========================================== */

.wc-block-components-quantity-selector{
    display:flex !important;
    align-items:center;
    justify-content:center;

    width:110px;
    height:60px;

    border:1px solid #e7ddd6;
    border-radius:14px;

    overflow:hidden;
}

.wc-block-components-quantity-selector__input{
    display:block !important;

    width:38px !important;
    min-width:38px !important;

    padding:0 !important;
    margin:0 !important;

    border:0 !important;
    background:transparent !important;

    color:#3b241d !important;

    font-size:18px !important;
    font-weight:600 !important;

    text-align:center !important;

    opacity:1 !important;
    visibility:visible !important;

    appearance:textfield !important;
    -webkit-appearance:none !important;
}

.wc-block-components-quantity-selector__button{
    width:36px !important;
    height:60px !important;

    border:0 !important;
    background:none !important;

    color:#6b554a !important;

    font-size:22px !important;
    font-weight:500 !important;

    cursor:pointer;
}

.wc-block-components-quantity-selector__button:disabled{
    opacity:.4;
}
.wc-block-cart{
    max-width:1400px !important;

    margin:0 auto !important;

    padding-left:50px !important;
    padding-right:50px !important;
}

@media(max-width:768px){

.wc-block-cart{
    padding-left:20px !important;
    padding-right:20px !important;
}

}
/* ==========================================================
   CART SUMMARY — RESTORE SUBTOTAL
   ========================================================== */

body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-subtotal-block {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 20px 0 !important;
	border-bottom: 1px solid #e8ddd6 !important;
}

body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-subtotal-block
.wc-block-components-totals-item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-subtotal-block
.wc-block-components-totals-item__label,
body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-subtotal-block
.wc-block-components-totals-item__value {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #32231d !important;
}
/* Dynamic cart subtotal restoration */

body.woocommerce-cart .phium-cart-subtotal-fix {
	display: block !important;
	margin: 0 !important;
	padding: 22px 0 !important;
	border-top: 1px solid #e8ddd6;
	border-bottom: 1px solid #e8ddd6;
}

body.woocommerce-cart
.phium-cart-subtotal-fix
.wc-block-components-totals-item {
	display: grid !important;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
}

body.woocommerce-cart
.phium-cart-subtotal-fix
.wc-block-components-totals-item__label,
body.woocommerce-cart
.phium-cart-subtotal-fix
.wc-block-components-totals-item__value {
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #4f4540 !important;
}
/* ==========================================================
   DISCOVERY SET — CART DISPLAY
   ========================================================== */

/* Hide all pricing only from composite component rows */

body.woocommerce-cart
.phium-composite-child
.wc-block-cart-item__total,

body.woocommerce-cart
.phium-composite-child
.wc-block-components-product-price,

body.woocommerce-cart
.phium-composite-child
.wc-block-components-sale-badge,

body.woocommerce-cart
.phium-composite-child
.wc-block-components-product-badge {
	display: none !important;
}


/* Parent Discovery Set price */

body.woocommerce-cart
.phium-composite-parent
.wc-block-cart-item__total {
	display: flex !important;
	align-items: flex-start;
	justify-content: flex-end;
}

body.woocommerce-cart
.phium-composite-parent-price {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #241813;
	white-space: nowrap;
}


/* Single subtotal row */

body.woocommerce-cart
.phium-cart-subtotal-fix {
	display: block !important;
	margin: 0 !important;
	padding: 20px 0 !important;
	border-top: 1px solid #e8ddd6;
	border-bottom: 1px solid #e8ddd6;
}

body.woocommerce-cart
.phium-cart-subtotal-fix
.wc-block-components-totals-item {
	display: grid !important;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
}
/* ==========================================================
   MAIN CART — DISCOVERY SET GROUPED DISPLAY
   ========================================================== */

/* Hide original composite child rows */

body.woocommerce-cart
.phium-composite-child {
	display: none !important;
}


/* Discovery Set parent row */

body.woocommerce-cart
.phium-composite-parent {
	position: relative !important;
	padding-top: 24px !important;
	padding-bottom: 24px !important;
}


/* Parent image */

body.woocommerce-cart
.phium-composite-parent
.wc-block-cart-item__image img {
	width: 110px !important;
	height: 110px !important;
	object-fit: cover !important;
	border-radius: 16px !important;
}


/* Parent title */

body.woocommerce-cart
.phium-composite-parent
.wc-block-components-product-name {
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #2a1c17 !important;
}


/* Parent price */

body.woocommerce-cart
.phium-composite-parent
.wc-block-cart-item__total {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: flex-end !important;
}

body.woocommerce-cart
.phium-composite-parent-price {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #241813 !important;
	white-space: nowrap !important;
}


/* Selected fragrance group */

body.woocommerce-cart
.phium-cart-composite-selections {
	margin-top: 14px !important;
	padding-top: 14px !important;
	border-top: 1px solid #eaded7 !important;
}


/* Heading */

body.woocommerce-cart
.phium-cart-composite-selections__title {
	margin: 0 0 9px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: #8c776c !important;
}


/* Fragrance list */

body.woocommerce-cart
.phium-cart-composite-selections__list {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 8px 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}


/* Each fragrance */

body.woocommerce-cart
.phium-cart-composite-selections__list li {
	position: relative !important;
	margin: 0 !important;
	padding-left: 13px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: #372720 !important;
}


/* Bullet */

body.woocommerce-cart
.phium-cart-composite-selections__list li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #c98e69;
}


/* Mobile */

@media screen and (max-width: 700px) {

	body.woocommerce-cart
	.phium-cart-composite-selections__list {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-cart
	.phium-composite-parent
	.wc-block-cart-item__image img {
		width: 86px !important;
		height: 86px !important;
	}
}
/* ==========================================================
   MAIN CART — GROUPED DISCOVERY SET
   ========================================================== */

/* Hide the original component rows */

body.woocommerce-cart
.wc-block-cart-items__row.phium-composite-child {
	display: none !important;
}


/* Parent row */

body.woocommerce-cart
.wc-block-cart-items__row.phium-composite-parent {
	padding-top: 22px !important;
	padding-bottom: 22px !important;
}


/* Selected fragrances container */

body.woocommerce-cart
.phium-cart-composite-selections {
	width: 100%;
	max-width: 430px;
	margin-top: 16px !important;
	padding-top: 14px !important;
	border-top: 1px solid #eaded7 !important;
	box-sizing: border-box;
}


/* Heading */

body.woocommerce-cart
.phium-cart-composite-selections__title {
	margin: 0 0 9px !important;
	padding: 0 !important;

	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;

	color: #8c776c !important;
}


/* List */

body.woocommerce-cart
.phium-cart-composite-selections__list {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 6px !important;

	margin: 0 !important;
	padding: 0 !important;

	list-style: none !important;
}


/* List item */

body.woocommerce-cart
.phium-cart-composite-selections__list li {
	position: relative;

	margin: 0 !important;
	padding: 0 0 0 14px !important;

	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;

	color: #372720 !important;
}


/* Bullet */

body.woocommerce-cart
.phium-cart-composite-selections__list li::before {
	content: "";

	position: absolute;
	top: 0.55em;
	left: 0;

	width: 4px;
	height: 4px;

	border-radius: 50%;
	background: #c98e69;
}
/* ==========================================================
   CART — RESTORE PROCEED TO CHECKOUT CLICK
   ========================================================== */

body.woocommerce-cart
.wc-block-cart__submit {
	position: relative !important;
	z-index: 20 !important;
	pointer-events: auto !important;
}

body.woocommerce-cart
.wc-block-cart__submit-container {
	position: relative !important;
	z-index: 21 !important;
	pointer-events: auto !important;
}

body.woocommerce-cart
.wc-block-cart__submit-button {
	position: relative !important;
	z-index: 22 !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 100% !important;
	min-height: 52px !important;

	pointer-events: auto !important;
	cursor: pointer !important;
}

body.woocommerce-cart
.wc-block-cart__submit-button *,
body.woocommerce-cart
.wc-block-cart__submit-button
.wc-block-components-button__text {
	pointer-events: none !important;
}

/* Prevent decorative layers from covering the CTA */

body.woocommerce-cart
.wc-block-cart__sidebar::before,
body.woocommerce-cart
.wc-block-cart__sidebar::after,
body.woocommerce-cart
.wc-block-cart__submit::before,
body.woocommerce-cart
.wc-block-cart__submit::after,
body.woocommerce-cart
.wc-block-cart__submit-container::before,
body.woocommerce-cart
.wc-block-cart__submit-container::after {
	pointer-events: none !important;
}
/* ==========================================================
   PROCEED TO CHECKOUT — FULL CLICKABLE CTA
   ========================================================== */

body.woocommerce-cart .wc-block-cart__submit {
	position: relative !important;
	width: 100% !important;
	pointer-events: auto !important;
}

body.woocommerce-cart .wc-block-cart__submit-container {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	pointer-events: auto !important;
}

body.woocommerce-cart a.wc-block-cart__submit-button {
	position: relative !important;
	z-index: 10 !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 100% !important;
	max-width: none !important;
	min-height: 54px !important;
	margin: 0 !important;
	padding: 15px 24px !important;

	box-sizing: border-box !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	text-decoration: none !important;
}

body.woocommerce-cart
a.wc-block-cart__submit-button
.wc-block-components-button__text {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 100% !important;
	height: 100% !important;

	pointer-events: none !important;
}

/* Decorative layers must never block the anchor */

body.woocommerce-cart .wc-block-cart__submit::before,
body.woocommerce-cart .wc-block-cart__submit::after,
body.woocommerce-cart .wc-block-cart__submit-container::before,
body.woocommerce-cart .wc-block-cart__submit-container::after,
body.woocommerce-cart a.wc-block-cart__submit-button::before,
body.woocommerce-cart a.wc-block-cart__submit-button::after {
	pointer-events: none !important;
}
/* ==========================================================
   PHIUM — BLOCK CART EMPTY ICON
   ========================================================== */

/* Remove WooCommerce Blocks default empty-cart icon */
.wc-block-cart__empty-cart__title::before,
.wc-block-cart__empty-cart__title::after {
	content: none !important;
	display: none !important;
	background: none !important;
	mask: none !important;
	-webkit-mask: none !important;
}

/* Add PHIUM SVG icon */
.wc-block-cart__empty-cart__title {
	position: relative !important;
	padding-top: 165px !important;
	margin-top: 40px !important;
	text-align: center !important;
}

.wc-block-cart__empty-cart__title::before {
	content: "" !important;
	display: block !important;

	position: absolute !important;
	top: 0 !important;
	left: 50% !important;

	width: 120px !important;
	height: 136px !important;

	transform: translateX(-50%) !important;

	background-color: transparent !important;
	background-image: url("../../images/empty-cart.svg") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: contain !important;

	mask: none !important;
	-webkit-mask: none !important;
}
/* ==========================================================
   PHIUM CART V28 — COMPOSITE PARENT TOTAL + QTY VISIBILITY
   Append to: assets/css/woocommerce/cart.css
   ========================================================== */

/*
 * WPC keeps the composite parent total in the Cart Block DOM, but one of
 * the existing cart/WPC rules can suppress the Total cell visually.
 * Restore only the composite parent Total. Component rows remain hidden.
 */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
> .wc-block-cart-item__total {
	display: table-cell !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-cart-item__total-price-and-sale-badge-wrapper,
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-cart-item__total
.price,
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-cart-item__total
.wc-block-components-product-price,
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-cart-item__total
.wc-block-components-product-price__value,
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-cart-item__total
.wc-block-formatted-money-amount {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Keep the parent total aligned with the Total column heading. */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-cart-item__total {
	text-align: right !important;
	vertical-align: top !important;
}

.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-cart-item__total
.wc-block-cart-item__total-price-and-sale-badge-wrapper {
	align-items: flex-end !important;
}

/*
 * Quantity is intentionally read-only for the composite parent.
 * V28 supplies the real parent cart quantity as metadata: "Qty: 1".
 */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__qty {
	margin-top: 4px !important;
	font-weight: 600 !important;
}

/* Never restore hidden component rows. */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-component.wooco-hide-component {
	display: none !important;
}
/* ==========================================================
   PHIUM CART V29 — COMPOSITE QTY PRESENTATION
   Append to: assets/css/woocommerce/cart.css
   ========================================================== */

/*
 * WooCommerce Cart Block renders product-detail metadata inline and can
 * insert separators between entries. Keep the composite Qty on its own line.
 */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__qty {
	display: flex !important;
	align-items: center !important;
	gap: 7px !important;

	width: fit-content !important;
	margin: 9px 0 0 !important;
	padding: 0 !important;

	line-height: 1.3 !important;
}

/* Remove WooCommerce metadata separator before Qty. */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__qty::before,
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__qty::after {
	content: none !important;
	display: none !important;
}

/* Quantity label. */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__qty
.wc-block-components-product-details__name {
	display: inline-block !important;
	margin: 0 !important;

	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #5f4b42 !important;
}

/* Quantity value as a small PHIUM pill. */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__qty
.wc-block-components-product-details__value {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	min-width: 27px !important;
	height: 24px !important;
	padding: 0 8px !important;

	border: 1px solid #e4c9b8 !important;
	border-radius: 999px !important;
	background: #fbf3ee !important;

	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #8c5a3d !important;
}

/*
 * Keep Selected fragrances as its own clean metadata block and avoid
 * separators running into the Qty line.
 */
.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__selected-fragrances {
	display: block !important;
	margin: 0 !important;
}

.wc-block-cart-items
.wc-block-cart-items__row.wooco-composite
.wc-block-components-product-details__selected-fragrances::after {
	content: none !important;
	display: none !important;
}
/* ==========================================================
   PHIUM — MOBILE CART REMOVE BUTTON FIX
   WooCommerce Cart Block
   ========================================================== */

@media (max-width: 767px) {

    .wc-block-cart-items__row
    .wc-block-cart-item__product {
        position: relative !important;
        z-index: 5 !important;
    }

    .wc-block-cart-items__row
    .wc-block-cart-item__quantity {
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
    }

    .wc-block-cart-items__row
    .wc-block-cart-item__remove-link {
        position: relative !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .wc-block-cart-items__row
    .wc-block-cart-item__total,
    .wc-block-cart-items__row
    .wc-block-cart-item__total * {
        position: relative !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
}

