* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #e9ecef;
	min-height: 100vh;
	color: #333;
	transition: background-color 0.3s ease;
}

/* Dynamic backgrounds based on retailer */
body.DM-bg {
	background: #f0f9f0;
}
body.BWS-bg {
	background: #fff6ee;
}
body.LL-bg {
	background: #ffeeef;
}

/* Header */
.header {
	background: #1a1a1a;
	color: white;
	padding: 15px 45px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 70px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.6rem;
	font-weight: 700;
}

.search-container {
	max-width: 350px;
	width: 350px;
	position: relative;
}

.search-input {
	width: 100%;
	padding: 10px 15px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	font-size: 0.9rem;
}

.search-input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

/* Navigation Bar with Tabs */
.nav-bar {
	background: #f8f9fa;
	padding: 0px 20px 0px 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.tabs-section {
	display: flex;
	align-items: flex-end;
}

.retailer-tabs {
	display: flex;
	gap: 1px;
}

.retailer-tab {
	padding: 8px 16px;
	background: #e9ecef;
	border: 1px solid #dee2e6;
	border-bottom: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.85rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	border-radius: 4px 4px 0 0;
	position: relative;
	color: #495057;
}

.retailer-tab:hover {
	background: #dee2e6;
}

.retailer-tab.active {
	background: white;
	border-color: #dee2e6;
	color: #333;
	z-index: 2;
	border-bottom: 1px solid white;
}

.retailer-icon {
	width: 16px;
	height: 16px;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.65rem;
	font-weight: bold;
	border-radius: 2px;
}

/* Retailer icon colors */
.DM-icon {
	background: #4c8251;
}
.BWS-icon {
	background: #ed7029;
}
.LL-icon {
	background: #131212;
}

.filters-section {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	padding: 8px 0px 16px 0px;
}

.top-filters {
	display: flex;
	align-items: center;
	gap: 15px;
}

.bottom-filters {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sort-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.price-range-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sort-label,
.price-range-text {
	font-size: 0.85rem;
	color: #6c757d;
	white-space: nowrap;
}

.sort-select {
	padding: 4px 8px;
	border: 1px solid #dee2e6;
	background: white;
	font-size: 0.85rem;
	cursor: pointer;
	border-radius: 4px;
}

.price-slider {
	width: 100px;
	height: 4px;
	background: #dee2e6;
	outline: none;
	cursor: pointer;
}

.price-value {
	font-weight: 600;
	color: #333;
	min-width: 35px;
	font-size: 0.8rem;
}

/* Main Content Area */
.main-content {
	background: white;
	border: 1px solid #dee2e6;
	border-top: none;
	margin: 0 20px;
	max-width: calc(1200px - 40px);
	margin-left: auto;
	margin-right: auto;
	min-height: 500px;
}

.content-header {
	padding: 20px 20px 10px 20px;
	border-bottom: 1px solid #f1f3f4;
	background: #fafbfc;
}

.retailer-title {
	font-size: 1.3rem;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.product-list {
	padding: 0;
}

.product-item {
	background: white;
	padding: 20px;
	border-bottom: 1px solid #f1f3f4;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
	transition: background-color 0.2s ease;
}

.product-item:hover {
	background: #fafbfc;
}

.product-item:last-child {
	border-bottom: none;
}

.product-info {
	flex: 1;
}

.product-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.product-title a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.product-details {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 0.9rem;
	color: #6c757d;
	margin-bottom: 8px;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.retailer-info {
	background: #f8f9fa;
	color: #495057;
	padding: 4px 8px;
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: 4px;
}

.promo-type {
	background: #3498db;
	color: white;
	padding: 3px 6px;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 3px;
	text-transform: capitalize;
}

.multibuy-badge {
	background: #ff6b35;
	color: white;
	padding: 3px 6px;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 3px;
}

.price-section {
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
}

.current-price {
	font-size: 1.8rem;
	font-weight: bold;
	color: #28a745;
}

.multibuy-price {
	font-size: 1.6rem;
	font-weight: bold;
	color: #28a745;
	line-height: 1.2;
}

.unit-price {
	font-size: 0.85rem;
	color: #6c757d;
	font-weight: normal;
}

.original-price {
	text-decoration: line-through;
	color: #6c757d;
	font-size: 1rem;
}

.savings-badge {
	background: #ffc107;
	color: #212529;
	padding: 4px 8px;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.discount-percent {
	background: #e74c3c;
	color: white;
	padding: 2px 6px;
	font-size: 0.7rem;
	font-weight: 600;
	border-radius: 3px;
}

.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #6c757d;
}

.empty-state h3 {
	margin-bottom: 10px;
	color: #495057;
}

.loading-state {
	text-align: center;
	padding: 60px 20px;
	color: #6c757d;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e9ecef;
	border-top: 4px solid #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.loading-text {
	font-size: 1.1rem;
	color: #495057;
	margin-bottom: 5px;
}

.loading-subtext {
	font-size: 0.9rem;
	color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
	.header {
		flex-direction: column;
		gap: 15px;
	}

	.search-container {
		width: 100%;
		max-width: none;
	}

	.nav-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 15px;
		padding: 10px 15px 0px 15px;
	}

	.tabs-section {
		justify-content: center;
	}

	.filters-section {
		align-items: center;
	}

	.retailer-tabs {
		flex-wrap: wrap;
		justify-content: center;
	}

	.product-item {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 15px;
	}

	.price-section {
		align-items: center;
	}

	.main-content {
		margin: 0 15px;
		max-width: calc(100% - 30px);
	}
}

/* Privacy Policy Page*/

/* Main Content Area */

.content-header-pp {
	padding: 30px 40px 20px 40px;
	border-bottom: 1px solid #f1f3f4;
	background: #fafbfc;
}

.page-title {
	font-size: 2rem;
	font-weight: 600;
	color: #333;
	margin: 0;
	margin-bottom: 10px;
}

.last-updated {
	color: #6c757d;
	font-size: 0.9rem;
}

.content-body {
	padding: 40px;
	line-height: 1.6;
}

.content-body h1 {
	font-size: 1.8rem;
	color: #333;
	margin: 30px 0 20px 0;
	border-bottom: 2px solid #dee2e6;
	padding-bottom: 10px;
}

.content-body h2 {
	font-size: 1.4rem;
	color: #495057;
	margin: 25px 0 15px 0;
}

.content-body h3 {
	font-size: 1.2rem;
	color: #495057;
	margin: 20px 0 10px 0;
}

.content-body h4 {
	font-size: 1.1rem;
	color: #495057;
	margin: 15px 0 10px 0;
}

.content-body p {
	margin: 15px 0;
	color: #333;
}

.content-body ul,
.content-body ol {
	margin: 15px 0;
	padding-left: 30px;
}

.content-body li {
	margin: 8px 0;
}

.content-body li p {
	margin: 5px 0;
}

.content-body a {
	color: #007bff;
	text-decoration: none;
}

.content-body a:hover {
	text-decoration: underline;
}

.content-body strong {
	font-weight: 600;
	color: #333;
}

/* Back Navigation */
.back-nav {
	padding: 20px 40px;
	background: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
}

.back-link {
	color: #007bff;
	text-decoration: none;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.back-link:hover {
	text-decoration: underline;
}

/* Sticky Disclaimer Footer */
.disclaimer-footer {
	display: flex;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1a1a1a;
	color: white;
	padding: 12px 20px;
	font-size: 0.8rem;
	text-align: center;
	border-top: 1px solid #333;
	z-index: 1000;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.disclaimer-text {
	max-width: 1200px;
	margin: 0 auto;
	line-height: 1.4;
}

.disclaimer-text a {
	color: #3498db;
	text-decoration: none;
}

.disclaimer-text a:hover {
	text-decoration: underline;
}

.close-disclaimer {
	background: none;
	border: none;
	color: #bdc3c7;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 3px;
	transition: color 0.3s ease;
}

.close-disclaimer:hover {
	color: #e74c3c;
}

.disclaimer-hidden {
	transform: translateY(100%);
}

/* Responsive Design */
@media (max-width: 768px) {
	.main-content {
		margin: 15px;
		max-width: calc(100% - 30px);
	}

	.content-header,
	.content-body,
	.back-nav {
		padding: 20px;
	}

	.page-title {
		font-size: 1.6rem;
	}

	.content-body h1 {
		font-size: 1.5rem;
	}

	.content-body h2 {
		font-size: 1.3rem;
	}

	.content-body ul,
	.content-body ol {
		padding-left: 20px;
	}
}
