* {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.hide-desktop {
	display: none !important;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: #000;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
  overflow-x: hidden; /* Prevent horizontal scroll on html element too */
}

p {
	margin-bottom: 14px;
}

a {
	text-decoration: none;
}

ul {
	list-style-type: none;
}

button {
	cursor: pointer;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Important to remove any default margin */
}

.wrapper {
	max-width: 1200px;
	width: 100%;
	padding: 0 20px;
	margin: 0 auto;
}

.img-fluid {
	max-width: 100%;
	height: auto;
}

/*Header*/
.main-header {
	border-top: 0px solid #f5f5f5;
}

.main-header a {
	color: #000;
}

.header-top .wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
}

/* Store-specific styling: Premium Plates (store ID 19) */
.store-premiumplates .header-top {
	background-color: black;
}

.store-premiumplates .header-top a,
.store-premiumplates .header-top p {
	color: white;
}

.header-bottom {
	border-top: 1px solid #d2d2d2;
	border-bottom: 1px solid #d2d2d2;
}

.main-menu {
	display: flex;
	justify-content: center;
	padding: 15px 0;
	gap: 30px;
}


.header-free {
	background-color: #efefef;
	border: none;
	text-align: center;
	padding: 10px 0;
}	

/*Basket section*/
.basket-section .wrapper {
	display: flex;
	align-items: flex-start;
	padding-top: 20px;
}

.basket-left,
.basket-right {
	padding: 20px 0 30px;
}

.basket-left {
	width: 65%;
	border-right: 1px solid #e1e1e1;
	padding-right: 40px;
}

.basket-right {
	width: 35%;
	padding-left: 40px;
	position: sticky;
	top: 0;
	z-index: 1;
}

.basket-left-header {
	display: flex;
	align-items: center;
	justify-content:  space-between;
	margin-bottom: 0px;
}

.basket-left-header h2 {
	font-size: 24px;
	font-weight: 400;
}

.basket-left-header a {
	color: #000;
}


.basket-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0px 0px;
}

.basket-table th:nth-child(1) {
	width: 60%;
}

.basket-table th:nth-child(2) {
	width: 20%;
}

.basket-table th:nth-child(3) {
	width: 20%;
	text-align: right;
}

.basket-table th {
	font-weight: 400;
	text-align: left;
	padding-bottom: 10px;
}

.basket-table td {
	vertical-align: middle;
	border-top: none;
	padding: 30px 0;
}

/* Line Item Styles */
.cart-item-row td {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 5px;
}

.cart-item-row td:first-child {
	padding-left: 5px;
}

.basket-number {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.basket-number img {
	width: 90px;
	height: auto;
	display: block;
}

/* Paired plates layout */
.paired-plates-row .basket-number {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.paired-plates-images {
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: flex-start;
	flex-shrink: 0;
	margin-left: 5px;
}

.paired-plate-image {
	width: 140px;
}

.paired-plate-image img {
	width: 100%;
	display: block;
	border-radius: 3px;
}

.paired-plate-image p {
	margin: 8px 0 0 0;
	font-size: 11px;
	color: #666;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.basket-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.basket-item-details > p:first-child {
	font-weight: 600;
	margin: 0;
	font-size: 16px;
}

.basket-item-details .item-registration {
	font-size: 14px;
	color: #666;
	margin: 0;
	text-transform: uppercase;
}

/* Quantity Controls */
.basket-quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: visible;
	background: white;
	height: auto;
}

.basket-quantity input {
	width: 50px;
	height: 36px;
	padding: 0 6px;
	text-align: center;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	-webkit-appearance: none;
	-moz-appearance: textfield;
	appearance: textfield;
	background: white;
	line-height: 36px;
}

.basket-quantity input:focus {
	outline: none;
	background: #f8fbff;
	border-left-color: #4a90e2;
	border-right-color: #4a90e2;
}

.basket-quantity input::-webkit-inner-spin-button,
.basket-quantity input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.qty-btn {
	min-width: 30px;
	min-height: 36px;
	width: 36px;
	height: 36px;
	border: none;
	background: white;
	cursor: pointer;
	font-size: 18px;
	line-height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.2s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	color: #333;
	flex-shrink: 0;
}

.qty-btn:hover {
	background: #f5f5f5;
	color: #000;
}

.qty-btn:active {
	transform: scale(0.95);
	background: #e8e8e8;
}

.qty-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.qty-minus {
	font-weight: bold;
}

.qty-plus {
	font-weight: bold;
}

.qty-remove {
	font-size: 24px;
	color: #666;
	margin-left: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.qty-remove:hover {
	background: #fee;
	border-color: #d32f2f;
	color: #d32f2f;
}

.qty-remove:active {
	background: #fdd;
}

.qty-select {
	display: none;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	height: 36px;
	background: #fff;
}

/* Paired quantity controls */
.paired-quantity-controls {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
}

.qty-control-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.qty-control-row > span {
	font-size: 12px;
	color: #666;
	font-weight: 500;
	min-width: 38px;
}

.qty-control-row .basket-quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: visible;
	height: auto;
}

.qty-control-row .qty-btn {
	width: 30px;
	height: 30px;
	font-size: 16px;
	border: none;
	line-height: 30px;
}

.qty-control-row input {
	width: 40px;
	height: 30px;
	padding: 0 4px;
	text-align: center;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	font-size: 13px;
	line-height: 30px;
}

.qty-control-row input:focus {
	background: #f8fbff;
	border-left-color: #4a90e2;
	border-right-color: #4a90e2;
}

.qty-control-row .qty-remove {
	font-size: 20px;
	width: 30px;
	height: 30px;
	margin-left: 6px;
	border: 1px solid #ddd;
	border-radius: 4px;
	line-height: 30px;
}
.fitting-kit-row .qty-remove,
.fitting-kit-row .qty-remove-desktop {
	display: none !important;
}

/* Price Display */
.td-price {
	font-weight: 700;
	text-align: right;
	font-size: 16px;
}

.td-price-mobile {
	display: none;
}

.paired-price-breakdown {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
}

.paired-price-breakdown > div {
	display: flex;
	gap: 6px;
	align-items: center;
	height: 30px;
}

.paired-price-breakdown > div > span {
	font-weight: 700;
	font-size: 16px;
	color: #000;
	line-height: 30px;
}

/* Desktop paired price with remove button (combined mode) */
.paired-price-desktop-combined {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	justify-content: flex-end;
	padding-top: 5px; /* Align with top of qty boxes */
}

.qty-remove-pair-desktop {
	display: inline-flex;
	width: 22px;
	height: 22px;
	font-size: 20px;
	background: #8685856f;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.qty-remove-pair-desktop:hover {
	background: #d32f2f;
}

/* Hide mobile remove button on desktop */
.qty-remove-pair {
	display: none;
}

.basket-list {
	margin-top: 20px;
}

.basket-list li:not(:last-child) {
	margin-bottom: 5px;
}

.basket-table .td-upgrade {
	border: none;
	padding-top: 10px;
}

.basket-upgrade {
	margin-bottom: 20px;
}

.basket-upgrade label {
	font-weight: 700;
}

.basket-upgrade input {
	margin-right: 20px;
}

.basket-check {
	padding-left: 30px;
}

.check-list {
	margin-top: 20px;
}

.check-list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}

.check-list li:before {
	content: '';
	position: absolute;
	top: 2px;
	left: 0;
	width: 14px;
	height: 10px;
	background-image: url('../img/check.jpg');
	background-repeat: no-repeat;
}

.check-list li strong {
	color: #4f7d00;
}


.check-list li small {
	color: #cc0000;
}

.basket-number {
	display: flex;
	align-items: start;
}

.basket-number label {
	display: flex;
	align-items: center;
}

.basket-number img {
	display: block;
	margin: 0 32px 0 0px;
}

.basket-number p:first-child {
	font-size: 16px;
	margin-bottom: 5px;
}

.basket-number small {
	font-weight: 300;
}

/* Plate options styling */
.plate-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.option-item {
	display: flex;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.option-label {
	color: #333;
	font-weight: 500;
}

.option-label strong {
	font-weight: 600;
}

/* Shipping/Delivery method labels - reduce from 16px to 13px */
#delivery-options-container label strong {
	font-size: 13px;
}

.option-value {
	color: #666;
	text-transform: uppercase;
}

.basket-progress {
	background-color: #e5e5e5;
	height: 8px;
	position: relative;
}

.basket-status {
	position: absolute;
	top: 0;
	left: 0;
	background-color: #395a00;
	height: 100%;
}

.basket-price {
	border-top: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	padding: 20px 0;
	margin: 40px 0;
}

.basket-price li {
	display: flex;
	justify-content: space-between;
}

.basket-price li:not(:last-child) {
	margin-bottom: 10px;
}

.original-price {
	color: #cc0000;
}

.sale-discount,
.subtotal {
	color: #4f7d00;
}

.total {
	font-weight: 700;
}

.checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #4f7d00;
	color: #fff;
	border-radius: 5px;
	width: 100%;
	height: 45px;
	border: none;
	margin-bottom: 30px;
	    font-size: 19px;
	font-weight: 400;
}

.basket-secure p {
	font-size: 14px;
	font-weight: 300;
	text-align: center;
	margin-top: 35px;
}

.basket-secure ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.basket-secure ul li {
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
}


.basket-why {
	padding: 20px;
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
}

.hamburger-icon {
  display: inline-block;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #464646;
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

@media (max-width: 767px) {
	.hide-desktop {
		display: block !important;
	}
	.hide-mobile {
		display: none !important;
	}
	.main-header {
		border:  none;
	}
	.main-menu  {
		display: none;
		padding: 0;
	}

	.main-menu.active {
		padding: 15px 0;
		display: flex;
		flex-direction: column;
	}

	/* Fix mobile wrapper padding to prevent overflow */
	.wrapper {
		padding: 0 15px;
	}

	.basket-section .wrapper {
		flex-direction: column;
		padding: 0 10px; /* Reduce padding on basket section for more room */
	}

	.basket-left,
	.basket-right {
		width: 100%;
	}

	.basket-left {
		border: none;
		padding-right: 0;
	}

	.basket-right {
		padding-left: 0;
	}

	.basket-table th:nth-child(1) {
		width: 60%;
	}

	.basket-table th:nth-child(2),
	.basket-table th:nth-child(3) {
		width: 20%;
	}

	.basket-quantity input {
		width: 50px;
	}

	.basket-number {
		flex-direction: column;
	}

	.basket-number img {
		display: block;
		margin: 0 10px 0 0;
	}

	/* Fix plate options alignment on mobile */
	.plate-options {
		margin-top: 10px;
	}

	.option-item {
		display: flex;
		flex-wrap: nowrap;
		gap: 5px;
		margin-bottom: 5px;
		font-size: 12px;
		align-items: baseline;
		width: 100%;
	}

	.option-item .option-label {
		white-space: nowrap;
		flex-shrink: 0;
		min-width: fit-content;
	}

	.option-item .option-value {
		flex: 1;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		min-width: 0;
	}

	/* Basket number adjustments for mobile - LARGER IMAGES */
	.basket-number {
		flex-direction: column; /* Stack image above details for more space */
		gap: 10px;
		align-items: flex-start;
		width: 100%;
	}

	.basket-number img {
		width: 100%; /* Full width of container */
		max-width: 100%;
		height: auto;
		flex-shrink: 0;
	}

	/* Mobile layout: Image and product name in first row, details in separate full-width row */
	.basket-number {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 10px;
	}

	.basket-number img {
		width: 70px;
		max-width: 70px;
		height: auto;
		flex-shrink: 0;
	}

	.mobile-product-name {
		flex: 1;
		margin: 0;
		font-size: 14px;
	}

	/* Details row - full width below main row */
	.cart-item-details-row .details-cell {
		padding: 0 !important;
		background: transparent !important;
	}

	.cart-item-details-row .basket-item-details {
		padding: 15px;
		background: #f0f0f0;
		margin: 0;
	}

	/* Prevent upgrade rows from overflowing viewport */
	.upgrade-row .td-upgrade,
	.upgrade-row td {
		padding: 10px !important;
		overflow: hidden;
		box-sizing: border-box;
	}

	.basket-upgrade {
		margin-bottom: 10px;
	}

	.basket-check {
		padding-left: 15px !important;
		box-sizing: border-box;
	}

	.basket-check p {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	/* Prevent qty and price columns from overflowing viewport */
	.td-qty,
	.td-price {
		padding: 10px 3px !important; /* Reduced horizontal padding from 5px to 3px */
		overflow: hidden;
		box-sizing: border-box;
		max-width: 30vw; /* Increased from 25vw to give more room */
	}

	.td-qty {
		text-align: left;
		padding-left: 5px !important;
		padding-right: 2px !important;
	}

	.td-price {
		padding-left: 2px !important;
		padding-right: 5px !important;
	}

	/* Constrain basket-right (summary totals) to prevent overflow */
	.basket-right {
		padding: 15px 10px !important;
		box-sizing: border-box;
		max-width: 100%;
		overflow: hidden;
	}

	.basket-right > div,
	.basket-right p,
	.basket-right h3 {
		word-wrap: break-word;
		overflow-wrap: break-word;
		max-width: 100%;
	}

	/* Paired plates on mobile - LARGER IMAGES */
	.paired-plates-images {
		gap: 10px;
		flex-direction: column; /* Stack vertically for larger display */
		width: 100%;
	}

	.paired-plate-image {
		width: 100%; /* Full width */
		max-width: 100%;
		flex-shrink: 0;
	}

	.paired-plate-image img {
		width: 100%;
		height: auto;
		max-width: 100%;
	}

	.paired-plate-image p {
		font-size: 10px;
		margin: 3px 0;
		display: none;
	}

	/* Make quantity controls stack better on mobile */
	.basket-quantity {
		flex-wrap: nowrap;
		gap: 8px;
		justify-content: flex-start;
	}

	.basket-quantity input {
		display: none;
	}

	.qty-btn {
		display: none;
	}

	.qty-remove {
		display: inline-flex;
		width: 32px;
		height: 32px;
		font-size: 20px;
	}


	.qty-select .fitting-kit-qty-select .qty-remove {
display: none;

	}
	
	/* Paired quantity controls on mobile */
	.qty-control-row {
		gap: 2px; /* Reduced from 3px for tighter spacing */
		display: flex;
		align-items: center;
		justify-content: flex-start; /* Changed from space-between to flex-start */
		margin-bottom: 8px;
	}

	.qty-control-row .qty-btn {
		width: 20px;
		height: 20px;
		font-size: 14px;
	}

	/* Hide X remove buttons on mobile for paired plates */
	.qty-control-row .qty-remove {
		display: none;
	}

	/* Paired quantity controls layout */
	.paired-quantity-controls {
		width: 100%;
	}

	/* Price appears inline with first qty row in combined mode */
	.qty-control-row .td-price-mobile {
		margin-left: auto;
		position: relative;
		top: 25px;
	}

	/* Remove pair button (X) - appears next to combined price */
	.qty-remove-pair {
		display: inline-flex;
		width: 32px;
		height: 32px;
		font-size: 20px;
		margin-left: 10px;
		position: relative;
		top: 25px;
		background: #6f6e6e8c;
		color: white;
		border: none;
		border-radius: 4px;
		cursor: pointer;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	.qty-remove-pair:hover {
		background: #d32f2f;
	}

	/* Hide desktop remove button on mobile */
	.qty-remove-pair-desktop {
		display: none;
	}

	.qty-control-row input {
		width: 28px;
		padding: 2px;
		font-size: 11px;
	}

	.qty-control-row > span {
		font-size: 11px;
	}

	/* Fix price column on mobile */
	.td-price {
		vertical-align: top;
		padding-top: 10px;
		font-size: 14px;
	}

	.paired-price-breakdown {
		gap: 5px;
	}

	.paired-price-breakdown > div > span:first-child {
		font-size: 10px;
	}

	.paired-price-breakdown > div > span:last-child {
		font-size: 13px;
	}

	/* Make cart table responsive */
	.basket-table {
		table-layout: auto;
		width: 100%;
		max-width: 100%;
	}

	.basket-table th:nth-child(1) {
		width: auto;
	}

	.basket-table th:nth-child(2) {
		width: 35%;
		text-align: left;
	}

	.basket-table th:nth-child(3),
	.basket-table td:nth-child(3) {
		display: none;
	}

	.basket-table td {
		vertical-align: top;
		padding: 15px 5px; /* Increased from 1px for better spacing */
	}

	/* Ensure table cells don't overflow */
	.basket-table td:first-child {
		max-width: 60vw; /* Prevent first column from being too wide */
		overflow: hidden;
	}

	/* Show inline price on mobile; hide desktop price column */
	.td-price {
		display: none;
	}

	.td-price-mobile {
		display: block;
		margin-top: 8px;
		font-weight: 700;
		font-size: 14px;
		color: #000;
		text-align: left;
		width: 100%;
	}

	.qty-control-row .td-price-mobile {
		margin-top: 4px;
	}

	/* Stack paired plate details under images for more space */
	.paired-plates-row .basket-number {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.paired-plates-row .basket-item-details {
		width: 100%;
	}

	/* Stack single plate details under image on mobile (same as paired plates) */
	.single-plate-row .basket-number {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 10px !important;
	}

	.single-plate-row .basket-number img {
		width: 100%;
		max-width: 100%;
		margin: 0;
	}

	.single-plate-row .basket-item-details {
		width: 100%;
	}

	/* Keep qty and price visible without horizontal scroll */
	.basket-quantity {
		flex-wrap: nowrap;
		width: auto; /* Changed from 100% to auto */
		justify-content: flex-start;
		gap: 5px; /* Reduced from 10px for tighter spacing */
		padding: 0; /* Remove any padding */
		border: none; /* Remove border that adds width */
		background: transparent; /* Remove background */
	}

	/* Show dropdown qty selector on mobile */
	.qty-select {
		display: inline-block;
		min-width: 40px; /* Reduced from 45px */
		width: 40px; /* Fixed width */
		height: 32px;
		font-size: 13px;
		padding: 4px 2px; /* Reduced padding */
		flex: 0 0 40px; /* Changed from 45px */
	}

	.basket-quantity .qty-remove {
		margin-left: 5px; /* Reduced from auto to prevent pushing too far */
		width: 28px; /* Smaller remove button */
		height: 28px;
		font-size: 18px;
		flex-shrink: 0;
	}

	/* Fitting kit row tweaks - LARGER IMAGE */
	.fitting-kit-row .basket-number img {
		width: 90px; /* Increased from 80px for better visibility */
		max-width: 150px;
	}

	.fitting-kit-row .basket-number {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.fitting-kit-row .basket-item-details {
		width: 100%;
	}

	.fitting-kit-row .basket-quantity {
		flex-wrap: nowrap;
		gap: 5px; /* Reduced from 10px */
		border: none;
		background: transparent;
	}

	.fitting-kit-row .qty-select {
		min-width: 40px; /* Reduced from 45px */
		width: 40px;
		flex: 0 0 40px;
	}

	.fitting-kit-row .basket-quantity .qty-remove {
		margin-left: auto;
	}
	.fitting-kit-row .qty-remove,
	.fitting-kit-row .qty-remove-desktop {
		display: none !important;
	}

	.header-bottom p {
		display: block;
	}

	/* Hide "ORDER MORE PLATES" link on mobile */
	#order-more-mobile {
		display: none !important;
	}
}
/* Undo Toast Notification */
.undo-toast {
	position: fixed;
	bottom: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 12px 20px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: bottom 0.3s ease;
	z-index: 10000;
	font-size: 14px;
}

.undo-toast.show {
	bottom: 30px;
}

.undo-toast .undo-btn {
	background: #4f7d00;
	color: white;
	border: none;
	padding: 6px 14px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.undo-toast .undo-btn:hover {
	background: #5e9400;
}

.undo-toast .undo-btn:active {
	transform: scale(0.95);
}
