/* The Rx Spot Marketplace Styles */

/* ========================================
   SEARCH & CART HEADER ELEMENTS
   ======================================== */

.search-container {
	margin-top: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	max-width: 400px;
	width: 100%;
}

.search-container input {
	flex: 1;
	background: rgba(255, 255, 255, 0.1);
	border: solid 1px #ffffff;
	border-radius: 4px;
	padding: 0 1rem;
	height: 2.75rem;
	color: #ffffff;
	font-family: "Source Sans Pro", sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.1rem;
}

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

.search-container input:focus {
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 0 1px #ffffff;
	outline: none;
}

.search-btn {
	background: transparent;
	border: solid 1px #ffffff;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	line-height: 1;
	transition: background-color 0.2s ease-in-out;
}

.search-btn i {
	display: block;
	line-height: 1;
}

.search-btn:hover {
	background-color: rgba(255, 255, 255, 0.075);
}

.cart-button-container {
	margin-top: 1.5rem;
}

.cart-btn {
	background: transparent;
	border: solid 1px #ffffff;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	padding: 0.75rem 1.5rem;
	font-size: 0.8rem;
	letter-spacing: 0.2rem;
	text-transform: uppercase;
	transition: background-color 0.2s ease-in-out;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cart-btn:hover {
	background-color: rgba(255, 255, 255, 0.075);
}

.cart-count {
	background: #ffffff;
	color: #1b1f22;
	border-radius: 4px;
	min-width: 1.5rem;
	height: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.7rem;
	padding: 0 0.4rem;
	white-space: nowrap;
}

/* ========================================
   CATEGORY TABS
   ======================================== */

.category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
	justify-content: center;
}

.tab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: solid 1px #ffffff;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	padding: 0.55rem 1.2rem;
	font-size: 0.7rem;
	letter-spacing: 0.15rem;
	text-transform: uppercase;
	transition: all 0.2s ease-in-out;
	font-family: "Source Sans Pro", sans-serif;
	line-height: 1;
}

.tab-btn:hover {
	background-color: rgba(255, 255, 255, 0.075);
}

.tab-btn.active {
	background-color: #ffffff;
	color: #1b1f22 !important;
	font-weight: 600;
}

/* ========================================
   PRODUCTS GRID — APOTHECARY GLASS
   ======================================== */

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.25rem;
	margin-top: 1.75rem;
}

/* Card: dark glass with hairline border */
.product-card {
	position: relative;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	padding: 0;
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.product-card:hover {
	background: rgba(255, 255, 255, 0.075);
	border-color: rgba(255, 255, 255, 0.25);
}

/* Image on clean white panel — clinical contrast */
.product-image {
	width: 100%;
	height: 168px;
	background: rgba(255, 255, 255, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-image i {
	font-size: 2.75rem;
	color: rgba(27, 31, 34, 0.2);
}

.product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Name: generous, readable, mixed case */
.product-name {
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.02em;
	margin: 1.1rem 1.25rem 0.35rem;
	padding: 0;
	color: #ffffff;
	overflow-wrap: break-word;
	word-break: break-word;
	line-height: 1.3;
}

/* Description: quietly present */
.product-desc {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.6;
	overflow-wrap: break-word;
	word-break: break-word;
	margin: 0 1.25rem 0;
	padding: 0;
	flex: 1;
}

/* Price: separated by hairline rule, price value stands alone */
.product-price {
	margin: 0.85rem 1.25rem 0.3rem;
	padding-top: 0.8rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0;        /* suppress any leftover "Starting from" text */
	line-height: 0;
}

.product-price .price {
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.02em;
	line-height: 1;
	display: block;
}

/* Supply period: quiet footnote */
.supply-period {
	font-size: 0.58rem;
	color: rgba(255, 255, 255, 0.28);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin: 0.3rem 1.25rem 0;
	padding: 0;
}

/* Actions row — always stacked so neither button overflows the narrow card */
.product-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.9rem 1.25rem 1.25rem;
	margin-top: auto;
}

.product-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-width: 0;
	width: 100%;
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0 0.9rem;
	height: 2rem;
	line-height: 1;
	border-radius: 3px;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-actions .button.small {
	font-size: 0.62rem;
	height: 2rem;
	line-height: 1;
}

/* Add button: subtle fill, becomes solid white on hover */
.product-actions .button.add-to-cart {
	padding: 0 1rem;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff;
}

.product-actions .button.add-to-cart:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #1b1f22;
}

/* Learn More: ghost button, full-width below Add */
.product-actions .button.learn-more {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.55);
}

.product-actions .button.learn-more:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.38);
	color: #ffffff;
}

/* ========================================
   CART SIDEBAR
   ======================================== */

.cart-sidebar {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	max-width: 100%;
	height: 100vh;
	background: rgba(27, 31, 34, 0.98);
	border-left: solid 1px rgba(255, 255, 255, 0.2);
	z-index: 1000;
	transition: right 0.325s ease-in-out;
	display: flex;
	flex-direction: column;
}

.cart-sidebar.open {
	right: 0;
}

.cart-header {
	padding: 2rem;
	border-bottom: solid 1px rgba(255, 255, 255, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cart-header h3 {
	margin: 0;
	font-size: 1rem;
	letter-spacing: 0.2rem;
	text-transform: uppercase;
}

.cart-close {
	background: transparent;
	border: none;
	color: #ffffff;
	cursor: pointer;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 100%;
	transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	position: relative;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1.2%3B %7D%3C/style%3E%3Cline x1='4' y1='4' x2='16' y2='16' /%3E%3Cline x1='16' y1='4' x2='4' y2='16' /%3E%3C/svg%3E");
	background-size: 16px 16px;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cart-close:hover {
	background-color: rgba(255, 255, 255, 0.075);
	box-shadow: inset 0 0 0 1px #ffffff;
}

.cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
}

.cart-item {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: solid 1px rgba(255, 255, 255, 0.1);
}

.cart-item-image {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cart-item-image i {
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.5);
}

.cart-item-details {
	flex: 1;
}

.cart-item-name {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	margin-bottom: 0.25rem;
}

.cart-item-price {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
}

.cart-item-remove {
	background: transparent;
	border: solid 1px rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	font-size: 0.65rem;
	transition: all 0.2s ease-in-out;
	align-self: flex-start;
}

.cart-item-remove:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
}

.cart-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: rgba(255, 255, 255, 0.5);
}

.cart-empty i {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.cart-footer {
	padding: 1.5rem 2rem;
	border-top: solid 1px rgba(255, 255, 255, 0.2);
}

.cart-subtotal {
	font-size: 1rem;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	display: flex;
	justify-content: space-between;
}

.cart-disclaimer {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.7rem;
	margin-bottom: 1.5rem;
	line-height: 1.5;
}

.cart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.325s ease-in-out;
}

.cart-overlay.open {
	opacity: 1;
	visibility: visible;
}

/* ========================================
   PRODUCT MODAL
   ======================================== */

.product-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.325s ease-in-out;
}

.product-modal.open {
	opacity: 1;
	visibility: visible;
}

.product-modal-content {
	background: rgba(27, 31, 34, 0.95);
	border: solid 1px rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2.5rem;
	position: relative;
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: solid 1px rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1rem;
	transition: all 0.2s ease-in-out;
}

.modal-close:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
}

/* ========================================
   FAQ STYLES
   ======================================== */

.faq-item {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: solid 1px rgba(255, 255, 255, 0.1);
}

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

.faq-item h3 {
	font-size: 0.9rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.faq-item h3 i {
	color: rgba(255, 255, 255, 0.7);
}

.faq-item p {
	color: rgba(255, 255, 255, 0.8);
	margin-left: 1.75rem;
}

/* ========================================
   LOGIN STYLES
   ======================================== */

.login-links {
	text-align: center;
	margin-top: 1.5rem;
}

.login-links p {
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

#footer .footer-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	max-width: 800px;
	margin: 0 auto 2rem auto;
	text-align: left;
	gap: 3rem;
}

#footer .footer-logo {
	flex: 1;
}

#footer .footer-logo h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	letter-spacing: 0.2rem;
}

#footer .footer-logo p {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
}

#footer .footer-links {
	display: flex;
	gap: 3rem;
}

#footer .footer-section h4 {
	font-size: 0.7rem;
	margin-bottom: 0.75rem;
	letter-spacing: 0.15rem;
}

#footer .footer-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#footer .footer-section ul li {
	margin-bottom: 0.5rem;
}

#footer .footer-section ul li a {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.7);
	border-bottom: dotted 1px rgba(255, 255, 255, 0.3);
}

#footer .footer-section ul li a:hover {
	color: #ffffff;
	border-bottom-color: transparent;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media screen and (max-width: 736px) {
	.products-grid {
		grid-template-columns: 1fr;
	}
	
	.cart-sidebar {
		width: 100%;
		right: -100%;
	}
	
	#footer .footer-content {
		flex-direction: column;
		text-align: center;
		gap: 2rem;
	}
	
	#footer .footer-links {
		justify-content: center;
		gap: 2rem;
	}
	
	.category-tabs {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 0.5rem;
	}
	
	.tab-btn {
		white-space: nowrap;
	}
}

@media screen and (max-width: 480px) {
	.search-container {
		flex-direction: row;
		padding: 0 1rem;
	}
	
	/* product-actions is already column-stacked by default */
}

/* Date input styling */
input[type="date"] {
	color: rgba(255, 255, 255, 0.8);
}

input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	cursor: pointer;
}

/* ========================================
   HERO TEXT SPACING FIXES
   ======================================== */

#header .content .inner h1 {
	margin-bottom: 0.5rem;
}

#header .content .inner .tagline {
	margin-top: 0.75rem;
	margin-bottom: 0;
	line-height: 1.6;
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

@media screen and (max-width: 736px) {
	#header .content .inner {
		padding: 2rem 1.5rem;
	}
	
	#header .content .inner h1 {
		font-size: 1.5rem;
		line-height: 1.3;
		margin-bottom: 0.5rem;
	}
	
	#header .content .inner .tagline {
		font-size: 0.75rem;
		line-height: 1.5;
		margin-top: 0.5rem;
	}
	
	.category-tabs {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(255,255,255,0.3) transparent;
	}
	
	.category-tabs::-webkit-scrollbar {
		height: 4px;
	}
	
	.category-tabs::-webkit-scrollbar-track {
		background: transparent;
	}
	
	.category-tabs::-webkit-scrollbar-thumb {
		background: rgba(255,255,255,0.3);
		border-radius: 2px;
	}
	
	.tab-btn {
		white-space: nowrap;
		flex-shrink: 0;
	}
}

@media screen and (max-width: 480px) {
	#header .content .inner {
		padding: 1.5rem 1rem;
	}
	
	#header .content .inner h1 {
		font-size: 1.25rem;
	}
	
	#header .content .inner .tagline {
		font-size: 0.7rem;
		line-height: 1.4;
	}
	
	#footer .footer-content {
		gap: 1.5rem;
		text-align: center;
	}
	
	#footer .footer-links {
		flex-direction: row;
		justify-content: center;
		gap: 2rem;
		width: 100%;
	}
	
	#footer .footer-section {
		text-align: center;
	}
	
	#footer .footer-section ul li {
		margin-bottom: 0.4rem;
	}
}


/* Fix: suppress focus-visible outline injected by branding-injector.js on cart button */
#cart-toggle:focus,
#cart-toggle:focus-visible {
	outline: none !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
}

/* ── Logo: display uploaded logo image inside the circle ── */
/* When branding-injector sets data-rxspot-logo-active="1", show the img and hide the fallback icon */
.rxspot-logo-mark[data-rxspot-logo-active="1"] img[data-rxspot-logo-img] {
	display: block !important;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.rxspot-logo-mark[data-rxspot-logo-active="1"] .rxspot-logo-fallback {
	display: none !important;
}

#header nav ul li.nav-spacer {
	position: relative;
}

#header nav ul li.nav-spacer::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 1px;
	height: 100%;
	background: #ffffff;
}

/* ── Footer: keep Dimension single-viewport; collapse the multi-column block ── */
/* Legal/Support links remain accessible via FAQ and Help nav items */
#footer .footer-content {
	display: none !important;
}

/* ── Toast notification — Dimension
   Inverted ghost: pure white on jet dark.
   Sharp zero-radius, wide letterspacing,
   deep shadow to float above the void. ── */
#rxspot-toast {
	background: #ffffff !important;
	color: #1b1f22 !important;
	font-family: "Source Sans Pro", sans-serif !important;
	font-weight: 700 !important;
	font-size: 0.68rem !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
	padding: 10px 22px !important;
	box-shadow: 0 8px 36px rgba(0, 0, 0, 0.65) !important;
}
