/*
Theme Name: Peptides Theme
Theme URI: https://peptechpharma.com
Author: Peptech Pharma
Author URI: https://peptechpharma.com
Description: WooCommerce + Elementor theme for Peptech Pharma / PeptideLab. Built to work with WooCommerce, Elementor, PRO Elements, Jetpack, MailPoet, Customer Reviews, Google/TikTok/Reddit/Snapchat for WooCommerce, and Image Optimizer. Installing this theme does not remove existing plugins.
Version: 1.5.8
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: peptides-theme
Tags: e-commerce, woocommerce, custom-menu, featured-images, translation-ready, elementor
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--pt-header-bg: #f7f7f7;
	--pt-nav: #7a7770;
	--pt-nav-active: #6ec1e4;
	--pt-logo-dark: #0b3d5c;
	--pt-logo-light: #6ec1e4;
	--pt-account-bg: #000000;
	--pt-account-text: #ffffff;
	--pt-font: "Instrument Sans", system-ui, sans-serif;
}

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

body {
	margin: 0;
	font-family: var(--pt-font);
	color: #1a1916;
	background: #fff;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* —— Header / Navbar (same compact bar on every page) —— */
.site-header {
	background: var(--pt-header-bg);
	border-top: 1px solid #1a1a1a;
	position: relative;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 56px;
	height: 56px;
	padding: 0 50px;
	box-sizing: border-box;
}

.site-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	max-width: none;
}

.site-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.site-header__brand .custom-logo {
	max-height: 40px;
	width: auto;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

/* Same Peptech logo size on home, shop, and all pages */
.site-logo__img {
	display: block;
	height: 40px !important;
	width: auto !important;
	max-height: 40px !important;
	max-width: 120px !important;
	object-fit: contain;
	object-position: left center;
}

.site-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	font-family: var(--pt-font);
	font-size: 14px;
	font-weight: 400;
	color: var(--pt-nav);
	transition: color 0.3s ease;
	white-space: nowrap;
}

.primary-menu .menu-item-shop-all > a,
.primary-menu a:hover {
	color: var(--pt-nav-active);
}

.site-header__utils {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 15px;
}

.site-header__search-toggle,
.site-header__cart {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-family: var(--pt-font);
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.02em;
	color: var(--pt-nav);
	line-height: 1;
}

.site-header__search-toggle:hover,
.site-header__cart:hover {
	color: var(--pt-nav);
}

.site-header__account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--pt-account-bg);
	color: var(--pt-account-text);
	font-family: var(--pt-font);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 10px 24px;
	border-radius: 999px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.site-header__account:hover {
	opacity: 0.88;
	color: var(--pt-account-text);
}

.site-header__menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 6px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.site-header__menu-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: #1a1916;
}

.site-header__search {
	border-top: 1px solid rgba(122, 119, 112, 0.25);
	padding: 12px 50px 16px;
	background: var(--pt-header-bg);
}

.site-header__search[hidden] {
	display: none;
}

.site-header__search-form {
	display: flex;
	gap: 10px;
	max-width: 640px;
	margin: 0 auto;
}

.site-header__search-form input[type="search"] {
	flex: 1;
	border: 1px solid #d8d5cf;
	border-radius: 0;
	padding: 10px 14px;
	font-family: var(--pt-font);
	font-size: 14px;
	background: #fff;
}

.site-header__search-form button {
	border: 0;
	background: #000;
	color: #fff;
	font-family: var(--pt-font);
	font-size: 12px;
	font-weight: 500;
	padding: 10px 20px;
	border-radius: 999px;
	cursor: pointer;
}

@media (max-width: 1100px) {
	.site-header__inner {
		padding: 0 28px;
		height: 56px;
		min-height: 56px;
	}

	.primary-menu {
		gap: 18px;
	}

	.site-header__brand,
	.site-header__utils {
		flex-basis: auto;
	}
}

@media (max-width: 900px) {
	.site-header__inner {
		padding: 0 16px;
		height: 52px;
		min-height: 52px;
	}

	.site-logo__img {
		height: 34px !important;
		max-height: 34px !important;
		max-width: 110px !important;
	}

	.site-header__menu-toggle {
		display: inline-flex;
	}

	.site-header__nav {
		flex: 0 0 auto;
		order: 3;
	}

	.site-header__brand {
		order: 1;
		flex: 1;
		max-width: none;
	}

	.site-header__utils {
		order: 2;
		flex: 0 0 auto;
	}

	.primary-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--pt-header-bg);
		padding: 8px 20px 20px;
		border-top: 1px solid rgba(122, 119, 112, 0.2);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
	}

	.site-header.is-nav-open .primary-menu {
		display: flex;
	}

	.primary-menu li {
		border-bottom: 1px solid rgba(122, 119, 112, 0.15);
	}

	.primary-menu a {
		display: block;
		padding: 14px 0;
	}

	.site-header__search {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 480px) {
	.site-header__inner {
		height: 48px;
		min-height: 48px;
		padding: 0 12px;
	}

	.site-logo__img {
		height: 30px !important;
		max-height: 30px !important;
		max-width: 100px !important;
	}

	.site-header__search-toggle {
		display: none;
	}

	.site-header__account {
		padding: 7px 12px;
	}
}

/* —— Cart drawer (slides in from right) —— */
html.cart-drawer-open,
html.cart-drawer-open body {
	overflow: hidden;
}

.cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 10000;
	pointer-events: none;
	visibility: hidden;
}

.cart-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cart-drawer.is-open .cart-drawer__overlay {
	opacity: 1;
}

.cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.is-open .cart-drawer__panel {
	transform: translateX(0);
}

.cart-drawer__close {
	position: absolute;
	top: 18px;
	right: 20px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	cursor: pointer;
}

.cart-drawer__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	padding: 52px 28px 28px;
}

.cart-drawer__empty {
	margin: 24px 0 0;
	font-family: var(--pt-font);
	font-size: 16px;
	color: #7a7770;
}

.cart-drawer__items {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
}

.cart-drawer__item {
	display: grid;
	grid-template-columns: 64px 1fr 28px;
	gap: 16px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #e6e4df;
}

.cart-drawer__item:first-child {
	padding-top: 8px;
}

.cart-drawer__item-media img,
.cart-drawer__thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 0;
}

.cart-drawer__item-info {
	min-width: 0;
}

.cart-drawer__item-name {
	display: block;
	font-family: var(--pt-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #000;
	margin-bottom: 6px;
}

.cart-drawer__item-meta {
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-family: var(--pt-font);
	font-size: 15px;
	color: #000;
}

.cart-drawer__item-qty {
	font-weight: 400;
}

.cart-drawer__item-price,
.cart-drawer__item-price .amount {
	font-weight: 600;
}

.cart-drawer__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: auto;
	padding: 0;
	border: 1px solid #cfcbc3;
	border-radius: 50%;
	background: #fff;
	color: #000;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cart-drawer__remove:hover {
	background: #f3f2ef;
	border-color: #000;
}

.cart-drawer__footer {
	margin-top: auto;
	padding-top: 20px;
}

.cart-drawer__subtotal {
	font-family: var(--pt-font);
	font-size: 20px;
	font-weight: 700;
	color: #000;
	margin-bottom: 18px;
}

.cart-drawer__subtotal .amount {
	font-weight: 700;
}

.cart-drawer__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	background: #000;
	color: #fff;
	font-family: var(--pt-font);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	border-radius: 0;
	transition: opacity 0.2s ease;
}

.cart-drawer__checkout:hover {
	opacity: 0.88;
	color: #fff;
}

@media (max-width: 480px) {
	.cart-drawer__panel {
		width: 100%;
	}

	.cart-drawer__body {
		padding: 48px 20px 20px;
	}
}

/* —— Site footer —— */
.site-footer {
	background: #1a1916;
	color: #989898;
	font-family: var(--pt-font);
}

.site-footer__inner {
	padding: 50px;
}

.site-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 48px;
	margin-bottom: 30px;
}

.site-footer__brand {
	flex: 1 1 42%;
	max-width: 420px;
}

.site-footer__logo {
	display: inline-flex;
	align-items: center;
	margin: 0 0 14px;
	line-height: 0;
	text-decoration: none;
}

.site-footer__logo:hover {
	opacity: 0.9;
}

.site-footer__logo-img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	object-position: left center;
	background: transparent;
}

.site-footer__tagline {
	margin: 0;
	max-width: 280px;
	font-family: var(--pt-font);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.55;
	color: #989898;
}

.site-footer__menus {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 48px 64px;
	justify-content: flex-end;
	min-width: 0;
}

.site-footer__col {
	flex: 0 1 auto;
	min-width: 130px;
	max-width: 100%;
}

.site-footer__heading {
	margin: 0 0 10px;
	font-family: var(--pt-font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	color: #fff;
	text-transform: uppercase;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.site-footer__links a,
.site-footer__nolink {
	display: inline-block;
	max-width: 100%;
	font-family: var(--pt-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: #989898;
	text-decoration: none;
	white-space: normal;
	overflow: visible;
	word-break: normal;
	transition: color 0.2s ease;
	cursor: default;
}

.site-footer__links a {
	cursor: pointer;
}

.site-footer__links a:hover {
	color: #fff;
}

.site-footer__legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 0;
	border-top: 1px solid #989898;
}

.site-footer__copy {
	margin: 0;
	font-family: var(--pt-font);
	font-size: 12px;
	font-weight: 400;
	color: #989898;
}

.site-footer__policies {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: flex-end;
}

.site-footer__policies a {
	font-family: var(--pt-font);
	font-size: 13px;
	font-weight: 400;
	color: #989898;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__policies a:hover {
	color: #fff;
}

.site-footer__disclaimer {
	padding: 30px 0 0;
}

.site-footer__disclaimer p {
	margin: 0;
	font-family: var(--pt-font);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.55;
	color: #989898;
}

@media (max-width: 900px) {
	.site-footer__inner {
		padding: 40px 28px;
	}

	.site-footer__top {
		flex-direction: column;
		gap: 36px;
	}

	.site-footer__brand {
		max-width: none;
	}

	.site-footer__tagline {
		max-width: 420px;
	}

	.site-footer__menus {
		width: 100%;
		justify-content: space-between;
		gap: 28px;
	}
}

@media (max-width: 640px) {
	.site-footer__inner {
		padding: 36px 20px;
	}

	.site-footer__menus {
		flex-direction: column;
		gap: 28px;
	}

	.site-footer__legal {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 24px 0;
	}

	.site-footer__policies {
		justify-content: flex-start;
		gap: 16px;
	}

	.site-footer__disclaimer {
		padding-top: 24px;
	}
}

/* —— Product page banner above footer —— */
.product-footer-banner {
	width: 100%;
	background: #fff;
	line-height: 0;
	overflow: hidden;
}

.product-footer-banner__image {
	display: block;
	width: 100%;
	height: auto;
	min-height: 42vh;
	max-height: 62vh;
	object-fit: cover;
	object-position: center center;
}
