/*
Theme Name: Solid Theme
Author: Sitemendr
Author URI: https://themes.sitemendr.com
Description: A fast, modern WooCommerce theme built for direct-to-customer shops — live product search, a real-time cart, and WhatsApp-first ordering, all wrapped in a clean, mobile-first design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.5
WC requires at least: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solid-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* Global variables */
:root {
	--color-text: #1c1c1c;
	--color-text-muted: #6b6b6b;
	--color-bg: #ffffff;
	--color-bg-alt: #f7f7f7;
	--color-accent: #d9752e;
	--color-accent-dark: #b85f22;
	--color-border: #ececec;
	--color-success: #2e7d32;
	--color-error: #c0392b;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;

	--container-max: 1240px;
	--header-height: 76px;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;

	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);

	--transition-fast: 0.15s ease;
	--transition-base: 0.25s ease;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
	width: 100%;
}

body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	max-width: 100%;
	position: relative;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style: none;
}

img, picture, video, svg, iframe, embed, object {
	display: block;
	max-width: 100%;
	height: auto;
}

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

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: none;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* Long text cannot force overflow. */
* {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Base typography */
body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.25;
	color: var(--color-text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
	margin-bottom: 1rem;
	color: var(--color-text);
}

a {
	transition: color var(--transition-fast);
}

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

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Layout utilities */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 24px;
}

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

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-accent);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
	border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
	top: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 0.95rem;
	transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
	background: var(--color-accent);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--color-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.btn-secondary {
	background: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Feedback states */
.text-muted {
	color: var(--color-text-muted);
}

.text-success {
	color: var(--color-success);
}

.text-error {
	color: var(--color-error);
}

/* =========================================================
   CUSTOM HEADER
   ========================================================= */

.custom-header {
	--header-black: #111111;
	--header-orange: #d9752e;
	--header-border: #e8e8e8;
	background: #fff;
	position: relative;
	z-index: 9999;
}

.custom-header-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.custom-topbar {
	background: #111;
	color: #fff;
	font-size: 13px;
}

.custom-topbar .custom-header-container {
	min-height: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.custom-main-header {
	background: #fff;
	border-bottom: 1px solid var(--header-border);
}

.custom-header-inner {
	min-height: 78px;
	display: flex;
	align-items: center;
	gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.custom-logo {
	flex-shrink: 0;
}

.custom-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #111;
}

.custom-logo img {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 52px;
}

.custom-logo .custom-logo-link {
	display: flex;
	align-items: center;
}


/* =========================================================
   SEARCH
   ========================================================= */

.custom-search-wrapper {
	flex: 1;
	min-width: 200px;
}

.custom-search {
	height: 46px;
	display: flex;
	align-items: center;
	background: #f5f5f5;
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	overflow: hidden;
}

.custom-search svg {
	flex-shrink: 0;
	margin-left: 15px;
	color: #777;
}

.custom-search input {
	flex: 1;
	height: 100%;
	min-width: 0;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 12px;
	font-size: 14px;
	color: #222;
}

.custom-search input::placeholder {
	color: #999;
}

.custom-search button {
	height: 100%;
	padding: 0 22px;
	border: 0;
	background: var(--header-orange);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.custom-search button:hover {
	background: #c56524;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.custom-header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.custom-action {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #111;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.custom-action:hover {
	color: var(--header-orange);
}

.custom-action svg {
	flex-shrink: 0;
}

.custom-action span {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.custom-action small {
	font-size: 11px;
	font-weight: 400;
	color: #777;
}

.custom-cart {
	position: relative;
}

.custom-cart-count {
	position: absolute;
	top: -8px;
	left: 14px;
	width: 18px;
	height: 18px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: var(--header-orange);
	color: #fff !important;
	border-radius: 50%;
	font-size: 10px !important;
	font-weight: 700 !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.custom-navigation {
	background: #fff;
	border-bottom: 1px solid var(--header-border);
}

.custom-navigation-inner {
	min-height: 48px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.custom-navigation-inner > a {
	color: #222;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.custom-navigation-inner > a:hover {
	color: var(--header-orange);
}

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

.custom-nav-menu li {
	position: relative;
}

.custom-nav-menu a {
	display: block;
	padding: 15px 0;
	color: #222;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.custom-nav-menu a:hover {
	color: var(--header-orange);
}


/* SUBMENU */

.custom-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	margin: 0;
	padding: 8px 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 8px 25px rgba(0,0,0,.10);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(5px);
	transition: .2s ease;
	z-index: 999;
}

.custom-nav-menu li:hover > .sub-menu,
.custom-nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.custom-nav-menu .sub-menu a {
	padding: 10px 16px;
	white-space: nowrap;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.custom-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.custom-menu-toggle span {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: #111;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.custom-mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 310px;
	max-width: 85%;
	height: 100vh;
	background: #fff;
	z-index: 10001;
	transform: translateX(-100%);
	transition: transform .25s ease;
	box-shadow: 5px 0 25px rgba(0,0,0,.15);
	overflow-y: auto;
}

.custom-mobile-menu.is-open {
	transform: translateX(0);
}

.custom-mobile-menu-header {
	height: 65px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	border-bottom: 1px solid #eee;
	font-size: 18px;
}

.custom-menu-close {
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.custom-mobile-menu-content {
	padding: 20px;
}

.custom-mobile-menu-content > a {
	display: block;
	padding: 13px 0;
	color: #222;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border-bottom: 1px solid #eee;
}

.custom-mobile-menu-content > a:hover {
	color: var(--header-orange);
}

.custom-mobile-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-mobile-nav a {
	display: block;
	padding: 13px 0;
	color: #222;
	text-decoration: none;
	border-bottom: 1px solid #eee;
}

.custom-mobile-menu-content hr {
	border: 0;
	border-top: 1px solid #eee;
	margin: 20px 0;
}

.custom-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: .25s ease;
}

.custom-mobile-overlay.is-open {
	opacity: 1;
	visibility: visible;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

	.custom-header-inner {
		gap: 18px;
	}

	.custom-header-container {
		padding-left: 18px;
		padding-right: 18px;
	}

	.custom-logo img {
		max-width: 150px;
	}

	.custom-header-actions {
		gap: 12px;
	}

	.custom-action span {
		display: none;
	}

	.custom-search button {
		padding: 0 16px;
	}

	.custom-nav-menu {
		gap: 18px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.custom-topbar {
		display: none;
	}

	.custom-header-container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.custom-header-inner {
		min-height: 62px;
		gap: 8px;
	}

	.custom-menu-toggle {
		display: block;
		flex-shrink: 0;
	}

	.custom-logo {
		flex: 1;
		text-align: center;
	}

	.custom-logo img {
		max-width: 125px;
		max-height: 38px;
		margin: 0 auto;
	}

	.custom-search-wrapper {
		position: absolute;
		top: 62px;
		left: 0;
		right: 0;
		width: 100%;
		padding: 8px 12px;
		background: #fff;
		border-bottom: 1px solid #eee;
	}

	.custom-search {
		height: 42px;
	}

	.custom-search button {
		font-size: 0;
		width: 45px;
		padding: 0;
	}

	.custom-search button::after {
		content: "⌕";
		font-size: 22px;
	}

	.custom-header-actions {
		gap: 5px;
	}

	.custom-action {
		width: 34px;
		height: 34px;
		justify-content: center;
	}

	.custom-action svg {
		width: 21px;
		height: 21px;
	}

	.custom-cart-count {
		top: -3px;
		left: 20px;
	}

	.custom-navigation {
		display: none;
	}

	.custom-main-header {
		margin-bottom: 58px;
	}

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

	.custom-logo img {
		max-width: 105px;
	}

	.custom-menu-toggle {
		width: 34px;
	}

	.custom-action {
		width: 30px;
	}

}