/* Menu */
/* Cart Container */
#cart-container {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

/* Cart Link */
#cart-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	font-weight: 600;
	padding-right: 10px;
	transition: all 0.2s ease;
	border: 1px solid rgba(172, 172, 172, 0.4);
	border-radius: 14px;
	padding: 0 11px;
}

/* Cart Icon */
.cart-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url('/images/ui/icons/cart-flaticon.png'); /* Replace with your cart icon */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
    position: relative;
    top: 2px;
}

/* Cart Count Badge */
#cart-count {
	background-color: var(--primary-color);
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	position: absolute;
	top: -10px;
	left: 16px;
}

/* Hover Effect */
#cart-link:hover {
	border-color: rgba(var(--primary-color-rgb), .7);
}


/* Container and layout */

.v-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.h-stack {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: space-between;
	background-color: rgba(172, 172, 172, 0.1);
	padding: 6px 12px;
}

.subtotal-block {
	font-weight: 500;
	font-size: 1.1rem;
    margin-top: 20px;
}

.total-block {
    font-weight: 700;
}

/* Table styles */
.order-summary {
    width: 100%;
    border-collapse: collapse;
}

.order-summary__header th {
    border-bottom: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.order-summary__body td {
    border-bottom: 1px solid #ddd;
    padding: 0.75rem;
}

.line-item__media {
	margin-right: 1rem;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 3px;
}

.line-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.quantity-selector > div:first-child {
	display: flex;
	gap: 0.3rem;
}

.quantity-selector__button {
    background: none;
    border: 1px solid #ddd;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.quantity-selector__input {
    width: 3rem;
    text-align: center;
    height: 32px;
}

.cart-footer {
    margin-top: 2rem;
}

.cart-recap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-lg {
    font-size: 1.25rem;
}

.text-subdued {
    color: #6c757d;
}

.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.button:hover {
    background-color: var(--primary-color-dark);
}

.link {
    color: var(--primary-color-dark);
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}

/* Discount Input Section */
.discount-section {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-section input {
    width: 60%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Discount Row */
.discount-line {
    display: flex;
    align-items: center;
}

.discount-tag {
	display: inline-block;
	background-color: #fff;
	border-radius: 5px;
	padding: 5px 10px;
	font-size: 15px;
	box-shadow: -1px 1px 2px rgba(121, 121, 121, 0.2);
}

.discount-line .icon {
    font-size: 16px;
}

.discount-remove-btn {
	border: none;
	background: none;
	position: relative;
	right: -5px;
}

/* Discount Code Display */
#cart-discount-code {
    font-weight: 600;
    margin: 12px 0;
    display: none;
}

.discount-code-text {
    margin-left: 5px;
}

.discount-code {
    background-color: transparent;
    padding: 0;
    margin-top: 5px;
}

/* Discount Applied Tag */
.discount-applied {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    gap: 8px;
    width: fit-content;
    margin-bottom: 10px;
}

.discount-applied .icon {
    color: #28a745;
    font-size: 18px;
}

.discount-applied .remove-discount-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: red;
    font-weight: bold;
}

.discount-applied .remove-discount-btn:hover {
    color: darkred;
}

@media (max-width: 767px) {
    .quantity-selector {
        flex-direction: column;
    }

    .cart-product-price.d-md-none {
        display: flex;
        flex-direction: column;
        border-top: 1px solid #ddd;
        margin-top: 20px;
        padding-top: 8px;
    }
}