/**
 * TS MedCore - Global Main Stylesheet
 * Brand Palette: Deep Forest Green (#123f32), Muted Gold (#bd9750), Off-White (#fbf9f4)
 */

:root {
	--ts-primary: #123f32;
	--ts-primary-dark: #0a251d;
	--ts-primary-light: #1b5443;
	--ts-accent: #bd9750;
	--ts-accent-hover: #a6823e;
	--ts-bg: #fbf9f4;
	--ts-surface: #ffffff;
	--ts-text-main: #242e2b;
	--ts-text-muted: #5e6b66;
	--ts-border: #e2e8e4;
	--ts-border-subtle: #edf2ee;
	--ts-success: #1f8b4d;
	--ts-warning: #d97706;
	--ts-danger: #dc2626;
	--ts-radius-sm: 4px;
	--ts-radius-md: 8px;
	--ts-radius-lg: 12px;
	--ts-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
	--ts-shadow-md: 0 4px 12px rgba(18,63,50,0.08);
	--ts-shadow-lg: 0 10px 24px rgba(18,63,50,0.12);
	--ts-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ts-font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--ts-font-sans);
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--ts-text-main);
	background-color: var(--ts-bg);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--ts-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover, a:focus {
	color: var(--ts-accent);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	color: var(--ts-primary-dark);
	font-weight: 700;
	line-height: 1.25;
}

/* Container */
.ts-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Accessibility */
.skip-link {
	position: absolute;
	top: -9999px;
	left: -9999px;
}
.skip-link:focus {
	top: 10px;
	left: 10px;
	background: var(--ts-primary);
	color: #fff;
	padding: 10px 16px;
	z-index: 99999;
	border-radius: 4px;
}

/* ==========================================================================
   Header & Announcement Strip
   ========================================================================== */
.ts-announcement-strip {
	background-color: var(--ts-primary-dark);
	color: #e4ebe7;
	font-size: 0.82rem;
	padding: 7px 0;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ts-announcement-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.ts-announcement-msg span {
	margin-right: 4px;
}

.ts-announcement-contacts {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ts-announcement-contacts a {
	color: #f7f9f8;
	font-weight: 500;
}

.ts-announcement-contacts a:hover {
	color: var(--ts-accent);
}

.ts-top-wa {
	background: rgba(37, 211, 102, 0.15);
	color: #a7f3d0 !important;
	padding: 2px 8px;
	border-radius: var(--ts-radius-sm);
}

/* Main Header */
.ts-site-header {
	background: var(--ts-surface);
	border-bottom: 1px solid var(--ts-border);
	box-shadow: var(--ts-shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.ts-header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	gap: 20px;
}

.ts-site-branding .custom-logo {
	max-height: 58px;
	width: auto;
}

.ts-brand-text .ts-logo-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--ts-primary-dark);
}

.ts-logo-symbol {
	font-size: 1.5rem;
	color: var(--ts-accent);
}

.ts-logo-tagline {
	display: block;
	font-size: 0.75rem;
	color: var(--ts-text-muted);
	margin-left: 32px;
	letter-spacing: 0.5px;
}

/* Search Form */
.ts-header-search {
	flex: 1;
	max-width: 520px;
}

.ts-search-form {
	display: flex;
	position: relative;
}

.ts-search-field {
	width: 100%;
	padding: 10px 48px 10px 16px;
	border: 1.5px solid var(--ts-border);
	border-radius: 24px;
	background: var(--ts-bg);
	font-size: 0.9rem;
	color: var(--ts-text-main);
	outline: none;
	transition: all 0.2s ease;
}

.ts-search-field:focus {
	border-color: var(--ts-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(18,63,50,0.12);
}

.ts-search-submit {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	font-size: 1.1rem;
	cursor: pointer;
	padding: 6px 10px;
	color: var(--ts-primary);
}

/* Header Actions */
.ts-header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ts-store-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: var(--ts-bg);
	border: 1px solid var(--ts-border);
	border-radius: var(--ts-radius-md);
	font-size: 0.8rem;
}

.ts-badge-icon {
	font-size: 1.1rem;
}

.ts-badge-text strong {
	display: block;
	color: var(--ts-primary);
	line-height: 1.1;
}

.ts-badge-text small {
	color: var(--ts-text-muted);
}

.ts-action-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--ts-text-main);
	font-size: 0.75rem;
}

.ts-action-link span {
	font-size: 1.25rem;
}

.ts-cart-contents {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ts-primary);
	color: #fff !important;
	padding: 8px 16px;
	border-radius: 24px;
	font-size: 0.88rem;
	font-weight: 600;
	transition: background 0.2s;
}

.ts-cart-contents:hover {
	background: var(--ts-primary-light);
}

.ts-cart-count {
	background: var(--ts-accent);
	color: #fff;
	padding: 2px 7px;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 700;
}

.ts-mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	flex-direction: column;
	gap: 5px;
}

.ts-mobile-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--ts-primary);
	border-radius: 2px;
}

/* Main Navigation Bar */
.ts-main-navigation {
	background: var(--ts-primary);
	border-top: 1px solid rgba(255,255,255,0.08);
}

.ts-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.ts-nav-menu li a {
	display: block;
	padding: 12px 16px;
	color: #e5ede8;
	font-weight: 500;
	font-size: 0.9rem;
	transition: background 0.2s, color 0.2s;
}

.ts-nav-menu li a:hover,
.ts-nav-menu li.current-menu-item a {
	background: var(--ts-primary-dark);
	color: var(--ts-accent);
}

.ts-nav-badge {
	background: var(--ts-accent);
	color: #fff;
	font-size: 0.65rem;
	padding: 2px 6px;
	border-radius: 10px;
	margin-left: 4px;
	text-transform: uppercase;
	font-weight: 700;
}

/* ==========================================================================
   Page Layout & Generic Content
   ========================================================================== */
.ts-main-content {
	padding: 36px 0 60px;
}

.ts-page-container {
	max-width: 960px;
}

.ts-page-header {
	margin-bottom: 28px;
	border-bottom: 2px solid var(--ts-border);
	padding-bottom: 16px;
}

.ts-page-title {
	font-size: 2.2rem;
	color: var(--ts-primary-dark);
	margin-bottom: 8px;
}

.ts-page-lead {
	font-size: 1.1rem;
	color: var(--ts-text-muted);
}

.entry-content {
	background: var(--ts-surface);
	padding: 36px;
	border-radius: var(--ts-radius-lg);
	border: 1px solid var(--ts-border);
	box-shadow: var(--ts-shadow-sm);
}

.entry-content p {
	margin-bottom: 1.4em;
	line-height: 1.7;
}

.entry-content h2, .entry-content h3 {
	margin-top: 1.8em;
	margin-bottom: 0.8em;
	color: var(--ts-primary-dark);
}

.entry-content ul, .entry-content ol {
	padding-left: 24px;
	margin-bottom: 1.5em;
}

.entry-content li {
	margin-bottom: 0.5em;
}

/* Post Cards Grid */
.ts-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}

.ts-post-card {
	background: var(--ts-surface);
	border-radius: var(--ts-radius-md);
	border: 1px solid var(--ts-border);
	overflow: hidden;
	box-shadow: var(--ts-shadow-sm);
	display: flex;
	flex-direction: column;
}

.ts-post-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ts-post-title {
	font-size: 1.25rem;
	margin-bottom: 8px;
}

.ts-post-meta {
	font-size: 0.8rem;
	color: var(--ts-text-muted);
	margin-bottom: 12px;
}

.ts-read-more {
	margin-top: auto;
	font-weight: 600;
	color: var(--ts-primary);
}

/* Buttons */
.ts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: var(--ts-radius-md);
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ts-btn-primary {
	background: var(--ts-primary);
	color: #fff;
}
.ts-btn-primary:hover {
	background: var(--ts-primary-dark);
	color: #fff;
}

.ts-btn-secondary {
	background: var(--ts-bg);
	border: 1.5px solid var(--ts-primary);
	color: var(--ts-primary);
}
.ts-btn-secondary:hover {
	background: var(--ts-primary);
	color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ts-site-footer {
	background: var(--ts-primary-dark);
	color: #d1ded7;
	padding-top: 54px;
}

.ts-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
	gap: 36px;
	padding-bottom: 48px;
}

.ts-footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.ts-footer-symbol {
	font-size: 1.6rem;
	color: var(--ts-accent);
}

.ts-footer-title {
	font-size: 1.25rem;
	color: #ffffff;
}

.ts-footer-address, .ts-footer-contact-line, .ts-footer-email, .ts-footer-hours {
	font-size: 0.88rem;
	line-height: 1.6;
	margin-bottom: 10px;
	color: #b5c7be;
}

.ts-footer-contact-line a, .ts-footer-email a {
	color: #ffffff;
}
.ts-footer-contact-line a:hover, .ts-footer-email a:hover {
	color: var(--ts-accent);
}

.ts-footer-heading {
	color: #ffffff;
	font-size: 1rem;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 8px;
}

.ts-footer-heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 2px;
	background: var(--ts-accent);
}

.ts-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ts-footer-links li {
	margin-bottom: 8px;
}

.ts-footer-links li a {
	color: #b5c7be;
	font-size: 0.88rem;
	transition: color 0.2s ease, transform 0.2s ease;
	display: inline-block;
}

.ts-footer-links li a:hover {
	color: #ffffff;
	transform: translateX(4px);
}

.ts-footer-wa-btn {
	display: inline-block;
	background: #25d366;
	color: #ffffff !important;
	padding: 9px 16px;
	border-radius: var(--ts-radius-md);
	font-weight: 600;
	font-size: 0.88rem;
}
.ts-footer-wa-btn:hover {
	background: #20ba59;
}

/* Footer Bottom Strip */
.ts-footer-bottom {
	background: #061812;
	padding: 16px 0;
	border-top: 1px solid rgba(255,255,255,0.06);
	font-size: 0.82rem;
}

.ts-footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.ts-copyright {
	color: #8c9f95;
}
.ts-copyright strong {
	color: #d1ded7;
}

.ts-dev-credit a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #a4b8af;
	font-size: 0.8rem;
}
.ts-dev-credit a:hover {
	color: #ffffff;
}

.ts-dev-icon {
	width: 14px;
	height: 14px;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
	.ts-header-search {
		order: 3;
		max-width: 100%;
		flex-basis: 100%;
		margin-top: 10px;
	}
	.ts-header-main {
		flex-wrap: wrap;
	}
	.ts-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	.ts-store-badge {
		display: none;
	}
	.ts-mobile-menu-toggle {
		display: flex;
	}
	.ts-main-navigation {
		display: none;
	}
	.ts-main-navigation.is-open {
		display: block;
	}
	.ts-nav-menu {
		flex-direction: column;
		align-items: flex-start;
	}
	.ts-nav-menu li {
		width: 100%;
	}
	.ts-nav-menu li a {
		padding: 12px 20px;
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}
}

@media (max-width: 640px) {
	.ts-footer-grid {
		grid-template-columns: 1fr;
	}
	.ts-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}
	.ts-announcement-inner {
		flex-direction: column;
		text-align: center;
	}
}


/* ==========================================================================
   Front Page Specific Sections
   ========================================================================== */
.ts-front-page {
	padding: 0;
}

.ts-hero-section {
	background: linear-gradient(135deg, #123f32 0%, #0a251d 100%);
	color: #fff;
	padding: 64px 0 72px;
	position: relative;
	overflow: hidden;
}

.ts-hero-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 48px;
	align-items: center;
}

.ts-eyebrow {
	display: inline-block;
	color: var(--ts-accent);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.ts-hero-heading {
	font-size: 2.6rem;
	color: #ffffff;
	line-height: 1.2;
	margin-bottom: 16px;
}

.ts-hero-text {
	font-size: 1.05rem;
	color: #c7ded3;
	line-height: 1.6;
	margin-bottom: 28px;
	max-width: 580px;
}

.ts-hero-actions {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.ts-btn-outline {
	background: transparent;
	border: 1.5px solid rgba(255,255,255,0.4);
	color: #fff !important;
}
.ts-btn-outline:hover {
	border-color: #fff;
	background: rgba(255,255,255,0.1);
}

.ts-hero-trust-row {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 0.84rem;
	color: #b8d4c7;
}

.ts-hero-trust-row .ts-trust-item {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
}

.ts-hero-trust-row .ts-trust-icon {
	color: var(--ts-accent);
	font-weight: bold;
}

.ts-pharmacy-spotlight-card {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	backdrop-filter: blur(8px);
	padding: 32px;
	border-radius: var(--ts-radius-lg);
	color: #fff;
}

.ts-spotlight-badge {
	background: var(--ts-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}

.ts-spotlight-header h3 {
	color: #fff;
	font-size: 1.5rem;
	margin-top: 10px;
	margin-bottom: 8px;
}

.ts-spotlight-link {
	color: var(--ts-accent);
	font-weight: 600;
}
.ts-spotlight-link:hover {
	color: #fff;
}

/* Features Strip */
.ts-features-strip {
	background: #ffffff;
	padding: 40px 0;
	border-bottom: 1px solid var(--ts-border);
}

.ts-features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.ts-feature-box {
	padding: 16px;
}

.ts-feat-icon {
	font-size: 2rem;
	display: inline-block;
	margin-bottom: 10px;
}

.ts-feature-box h4 {
	font-size: 1.05rem;
	margin-bottom: 6px;
	color: var(--ts-primary-dark);
}

.ts-feature-box p {
	font-size: 0.85rem;
	color: var(--ts-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* Front Page Products Section */
.ts-products-section {
	padding: 56px 0;
}

.ts-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 32px;
}

.ts-section-subtitle {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--ts-accent);
	display: block;
	margin-bottom: 4px;
}

.ts-section-title {
	font-size: 1.85rem;
	margin: 0;
}

.ts-view-all-link {
	font-weight: 600;
	color: var(--ts-primary);
	font-size: 0.92rem;
}
.ts-view-all-link:hover {
	color: var(--ts-accent);
}

.ts-front-products-grid,
.ts-products-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	margin: 0 0 36px 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Store Visit Section */
.ts-store-visit-section {
	background: #eef3f0;
	padding: 60px 0;
	border-top: 1px solid var(--ts-border);
}

.ts-visit-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}

.ts-visit-info h2 {
	font-size: 1.85rem;
	margin-bottom: 14px;
}

.ts-visit-btns {
	display: flex;
	gap: 14px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.ts-visit-callout {
	background: #ffffff;
	padding: 32px;
	border-radius: var(--ts-radius-lg);
	border: 1px solid var(--ts-border);
	box-shadow: var(--ts-shadow-sm);
}

.ts-callout-inner h3 {
	font-size: 1.3rem;
	margin-bottom: 10px;
}

.ts-callout-inner p {
	font-size: 0.9rem;
	color: var(--ts-text-muted);
	margin-bottom: 20px;
}

.ts-btn-wa {
	background: #25d366;
	color: #fff !important;
	font-weight: 600;
}
.ts-btn-wa:hover {
	background: #20ba59;
}

@media (max-width: 991px) {
	.ts-hero-grid, .ts-visit-grid {
		grid-template-columns: 1fr;
	}
	.ts-features-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.ts-features-grid {
		grid-template-columns: 1fr;
	}
	.ts-hero-heading {
		font-size: 2rem;
	}
}
