/* ============================================
   Brand colors (matched to main.css) This is v9
   ============================================ */
:root {
	--brand-purple: #902EE6;
	--brand-purple-dark: #183379;
}

html {
	background: #fff;
	-webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea, label,
.cart-action, .btnRemoveAction, .btnAddAction,
#cart-icon-container, #floating-cart-container,
#empty-cart, #btnEmpty, #close, .product-item {
	-webkit-tap-highlight-color: transparent;
}

.page-heading {
	font-size: 2em;
	font-weight: bold;
	margin: 20px 40px;
	width: 85%;
}

/* ============================================
   Buttons - now matched to main.css purple
   ============================================ */
input.checkout {
	background-color: var(--brand-purple);
	border: 2px solid var(--brand-purple);
	border-radius: 5px;
	padding: 13px;
	text-align: center;
	line-height: normal;
	height: auto;
	cursor: pointer;
	color: #fff;
	width: 140px;
	margin-left: 40px;
	font-weight: 700;
	font-size: 1em;
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

input.checkout:hover {
	background-color: var(--brand-purple-dark);
	border-color: var(--brand-purple-dark);
}

input.checkout:disabled {
	background-color: #b98be8;
	border-color: #b98be8;
	cursor: default;
}

input.btnAddAction {
	background-color: var(--brand-purple);
	border-color: var(--brand-purple);
	color: #fff;
	padding: 8px 14px;
	margin-left: 40px;
	text-decoration: none;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
	bottom: 5px;
	width: auto;
	font-weight: 700;
	font-size: 1em;
	text-align: center;
	line-height: normal;
	height: auto;
	border: 2px solid var(--brand-purple);
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    display: block;
    margin: 0 auto;	
}

input.btnAddAction:hover {
	background-color: var(--brand-purple-dark);
	border-color: var(--brand-purple-dark);
}

div#empty-cart {
	padding: 15px;
	text-align: center;
	cursor: pointer;
	font-weight: bold;
}

#cart-icon-container {
	cursor: pointer;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--brand-purple);
}

#floating-cart-container {
	position: fixed;
	top: 50%;
	right: 0px;
	cursor: pointer;
	width: 80px;
	height: 80px;
}

#cart-icon {
	margin-top: 15px;
	margin-left: 22px;
}

div#tot {
	display: none;
}

div#count {
	position: relative;
	font-size: 0.8em;
}

/* ============================================
   Shopping cart - the "reference width" all
   other sections below now match
   ============================================ */
#shopping-cart {
	display: block;
	font-size: 0.9em;
	height: auto;
	margin: 20px 40px !important;
	width: 85%;
	max-width: 900px;
	box-sizing: border-box;
}

strong#totamt {
	margin-left: 180px;
}

input.quantity {
	width: 40px;
}

div#count {
	margin-left: 36px;
	margin-top: 4px;
	color: #ffffff;
}

div#tot {
	background-color: #8080801c;
	padding-bottom: 12px;
	padding-top: 12px;
}

div#txt-heading {
	margin-top: 0px;
	background-color: rgba(224, 224, 224, 1);
	height: 37px;
	display: flex;
	align-items: center;
}

#cart-heading {
	padding: 0 15px;
	display: inline-block;
}

div#carttable {
	margin-top: 5px;
}

#btnEmpty {
	color: #d00000;
	cursor: pointer;
}

div#close {
	position: relative;
	bottom: 68px;
	right: 10px;
	cursor: pointer;
	float: right;
	padding: 6px -3px -1px 6px;
	padding-bottom: -7px;
}

img.cart-item-image {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: #E0E0E0 1px solid;
	padding: 5px;
	vertical-align: middle;
	margin-right: 15px;
}

/* ============================================
   Product grid
   ============================================ */
#product-grid {
	margin: 20px 40px;
	width: 85%;
	max-width: 900px;
	box-sizing: border-box;
}

#product-grid .txt-heading {
	font-size: 1.5em;
	margin-bottom: 7px;
	margin-right: 105px;
	font-weight: bold;
}

.product-item {
	display: inline-block;
	background: #ffffff;
	border: #E0E0E0 1px solid;
	vertical-align: top;
}

.product-item div {
	text-align: center;
	margin: 10px;
}

.product-image {
    height: 107px;
    width: 175px;
    background-color: #FFF;

    display: block;      /* ensure block-level */
    margin: 0 auto;      /* centers horizontally */
}

.product-image-wrapper {
    display: flex;
    justify-content: center;
}


.cart-action {
	cursor: pointer;
}

.btnRemoveAction {
	cursor: pointer;
}

#tbl-cart {
	border: 1px solid #CCC;
	background-color: white;
}

#cart-table {
	font-size: 0.9em;
	width: 100%;
}

.text-right {
	text-align: right;
}

table#cart-table th {
	font-weight: normal;
	border-bottom: #F0F0F0 1px solid;
	text-align: left;
}

table#cart-table th.text-right {
	text-align: right;
}

table#cart-table td.text-right {
	text-align: right;
}

table#cart-table td {
	border-bottom: #F0F0F0 1px solid;
}

table#cart-table tr:last-child td {
	border: none;
}

.inline-block {
	display: inline-block;
}

/* ============================================
   Billing / Shipping details form
   - width now matches #shopping-cart exactly
   - form rows are flexible & wrap responsively
   ============================================ */
.billing-details {
	margin: 20px 40px;
	width: 85%;
	max-width: 900px;
	box-sizing: border-box;
	font-size: 0.7em;
}

.billing-detail-heading {
	font-size: 2.2em;
	margin-bottom: 20px;
	font-weight: bold;
}

.row {
	margin: 12px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.form-label {
	flex: 0 0 150px;
	max-width: 150px;
}

.billing-details .inline-block,
.payment-details .inline-block {
	flex: 1 1 260px;
	min-width: 0;
}

input.input-box-330 {
	border: 1px solid #9a9a9a;
	width: 100%;
	max-width: 330px;
	box-sizing: border-box;
	border-radius: 4px;
	padding: 9px 10px;
	font-size: 1em;
	font-family: inherit;
	transition: border-color 0.2s ease-in-out;
}

input.input-box-330:focus {
	border-color: var(--brand-purple);
	outline: none;
}

/* Select styled to match input-box-330 exactly, overriding main.css's
   generic select rules (border, arrow icon, height, etc.) */
select.input-box-330 {
	border: 1px solid #9a9a9a;
	width: 100%;
	max-width: 330px;
	box-sizing: border-box;
	border-radius: 4px;
	padding: 9px 30px 9px 10px;
	font-size: 1em;
	font-family: inherit;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	height: auto;
	transition: border-color 0.2s ease-in-out;
}

select.input-box-330:focus {
	border-color: var(--brand-purple);
	outline: none;
}

select.input-box-330::-ms-expand {
	display: none;
}

.seller-note {
	width: 200px;
	border-radius: 4px;
}

.seller-label {
	width: 150px;
	margin-bottom: 3px;
}

#one-page-checkout-form .error {
	color: #ee0000;
	padding: 0px;
	background: none;
	border: #ee0000;
}

#one-page-checkout-form .error-field {
	border: 1px solid #d96557;
}

#one-page-checkout-form .error:before {
	content: '*';
	padding: 0 3px;
	color: #D8000C;
}

.product-img {
	height: 100px;
}

/* ============================================
   Payment details - same width treatment
   ============================================ */
.payment-details {
	margin: 20px 40px;
	width: 85%;
	max-width: 900px;
	box-sizing: border-box;
}

.payment-details-heading {
	font-size: 1.5em;
	margin-bottom: 20px;
	font-weight: bold;
}

input.bank-transfer {
	width: 20px;
}

.info-label {
	width: 100%;
	margin-top: 20px;
	font-size: .9em;
	color: #737373;
}

#card-container {
	max-width: 400px;
}

div.order-message {
	margin: 0px 40px;
	padding: 10px;
	border-radius: 3px;
	opacity: 0.83;
	transition: opacity 0.6s;
}

div.order-success {
	color: #00883a;
	background-color: #aef1ca;
	border: 1px solid #9fdeb9;
}

.btn-message-close {
	margin-left: 15px;
	color: #888;
	font-weight: bold;
	float: right;
	font-size: 22px;
	line-height: 20px;
	cursor: pointer;
	transition: 0.3s;
}

.cart-error-message {
	margin: 0px 40px;
	color: #D8000C;
	display: none;
}

/* ============================================
   Responsive breakpoints
   ============================================ */

/* Tablet: tighten margins, let sections take more width */
@media screen and (max-width: 900px) {
	.page-heading,
	#product-grid,
	#shopping-cart,
	.billing-details,
	.payment-details {
		margin: 20px !important;
		width: auto;
		max-width: none;
	}

	div.order-message,
	.cart-error-message {
		margin: 0 20px;
	}

	input.checkout,
	input.btnAddAction {
		margin-left: 20px;
	}
}

/* Mobile: stack label above input, full-width fields, full-width button */
@media screen and (max-width: 600px) {
	.page-heading,
	#product-grid,
	#shopping-cart,
	.billing-details,
	.payment-details {
		margin: 15px !important;
	}

	.row {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.billing-details {
		font-size: 1em;
	}

	.billing-detail-heading {
		font-size: 1.5em;
	}

	.form-label {
		flex-basis: auto;
		max-width: none;
	}

	.billing-details .inline-block,
	.payment-details .inline-block {
		flex-basis: auto;
	}

	input.input-box-330 {
		max-width: none;
	}

	input.checkout {
		width: 100%;
		margin-left: 0;
	}

	input.btnAddAction {
		margin-left: 0;
		width: 100%;
	}

	.product-item {
		display: block;
		width: 100%;
		margin-bottom: 10px;
	}

	.product-image {
		width: 100%;
		height: auto;
	}

	div.order-message,
	.cart-error-message {
		margin: 0 15px;
	}
}