/*
Theme Name: Toppick
Theme URI: https://example.com/themes/toppick
Author: Toppick
Author URI: https://example.com
Description: Toppick is a flexible, modular and fully customizable WordPress theme. Customize colors, typography, header, navigation, columns, homepage modules, footer, sidebar and login page from an intuitive options panel. Fully compatible with WooCommerce and the Gutenberg block editor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toppick
Tags: blog, e-commerce, portfolio, news, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, wide-blocks
*/

/*--------------------------------------------------------------
>>> 1. Variables & Reset
--------------------------------------------------------------*/
:root {
	--tp-primary: #e60012;
	--tp-secondary: #1a1a1a;
	--tp-accent: #f5a623;
	--tp-body-bg: #ffffff;
	--tp-text: #333333;
	--tp-heading: #111111;
	--tp-link: #e60012;
	--tp-link-hover: #b3000e;
	--tp-border: #e5e5e5;
	--tp-muted: #777777;
	--tp-container: 1200px;
	--tp-gutter: 24px;
	--tp-radius: 6px;
	--tp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	--tp-font-heading: var(--tp-font-body);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tp-body-bg);
	color: var(--tp-text);
	font-family: var(--tp-font-body);
	font-size: 16px;
	line-height: 1.7;
	word-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

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

a:hover,
a:focus {
	color: var(--tp-link-hover);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--tp-heading);
	font-family: var(--tp-font-heading);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.75em;
}

p {
	margin: 0 0 1.25em;
}

ul, ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}

figure {
	margin: 0;
}

/*--------------------------------------------------------------
>>> 2. Layout
--------------------------------------------------------------*/
.container {
	width: 100%;
	max-width: var(--tp-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--tp-gutter);
	padding-right: var(--tp-gutter);
}

.site-content {
	padding: 40px 0;
}

.content-row {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.content-area {
	flex: 1 1 0%;
	min-width: 0;
}

.widget-area {
	flex: 0 0 300px;
	max-width: 100%;
}

/* Sidebar layouts */
.layout-left-sidebar .content-row {
	flex-direction: row-reverse;
}

.layout-no-sidebar .content-area {
	max-width: 100%;
}

.layout-full-width .content-row {
	display: block;
}

/*--------------------------------------------------------------
>>> 3. Header
--------------------------------------------------------------*/
.site-header {
	position: relative;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--tp-border);
}

.header-topbar {
	background: var(--tp-secondary);
	color: #ccc;
	font-size: 13px;
}

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

.header-main .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-title {
	font-size: 24px;
	margin: 0;
	line-height: 1.2;
}

.site-title a {
	color: var(--tp-heading);
}

.site-description {
	margin: 0;
	font-size: 13px;
	color: var(--tp-muted);
}

.custom-logo {
	max-height: 60px;
	width: auto;
}

/*--------------------------------------------------------------
>>> 4. Navigation
--------------------------------------------------------------*/
.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 10px 14px;
	color: var(--tp-heading);
	font-weight: 500;
	border-radius: var(--tp-radius);
}

.main-navigation li.current-menu-item > a,
.main-navigation a:hover {
	color: var(--tp-primary);
	background: rgba(0, 0, 0, 0.04);
}

.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: var(--tp-radius);
	display: none;
	flex-direction: column;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	display: flex;
}

.main-navigation ul ul li {
	width: 100%;
}

.main-navigation ul ul a {
	padding: 10px 16px;
}

/* 3rd-level flyout */
.main-navigation ul ul ul {
	top: 0;
	left: 100%;
}

/* Media (image / video) in menu items */
.menu-item-media > a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
	padding: 10px;
}

.menu-media {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 6px;
}

.menu-media img,
.menu-media video {
	width: 100%;
	height: 130px;
	object-fit: cover;
	display: block;
}

.menu-item-media .menu-title {
	font-weight: 600;
}

/* Mega menu (large image menu) */
.main-navigation .menu-item-mega {
	position: static;
}

.main-navigation .menu-item-mega > .sub-menu {
	left: 0;
	right: 0;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	padding: 20px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.main-navigation .menu-item-mega > .sub-menu > li {
	border-bottom: 0;
}

.main-navigation .menu-item-mega .sub-menu .sub-menu {
	position: static;
	display: flex;
	min-width: 0;
	width: 100%;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

/* Vertical menu layout */
.main-navigation.nav-vertical > ul {
	flex-direction: column;
	align-items: stretch;
}

.main-navigation.nav-vertical > ul > li {
	width: 100%;
}

.main-navigation.nav-vertical ul ul {
	left: 100%;
	top: 0;
}

.menu-toggle {
	display: none;
}

/* Centered header */
.header-centered .header-main__top {
	justify-content: center;
	text-align: center;
}

.header-centered .header-main__top .site-branding {
	justify-content: center;
}

.header-centered .header-main__nav {
	border-top: 1px solid var(--tp-border);
}

.header-centered .header-main__nav .container {
	justify-content: center;
}

.header-centered .main-navigation ul {
	justify-content: center;
}

/* Transparent header */
.header-transparent .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom: 0;
}

.header-transparent .site-header .header-topbar {
	background: rgba(0, 0, 0, 0.25);
}

.header-transparent .header-main {
	background: rgba(0, 0, 0, 0.15);
}

.header-transparent .site-title a,
.header-transparent .main-navigation a {
	color: #fff;
}

/*--------------------------------------------------------------
>>> 5. Posts & Cards
--------------------------------------------------------------*/
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.card-grid > *,
.tp-features__grid > *,
.tp-team__grid > *,
.tp-testimonials__grid > * {
	min-width: 0;
}

.post-card {
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.post-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__thumb img {
	transform: scale(1.05);
}

.post-card__body {
	padding: 18px;
}

.post-card__title {
	font-size: 18px;
	margin-bottom: 8px;
}

.post-card__title a {
	color: var(--tp-heading);
}

.post-card__title a:hover {
	color: var(--tp-primary);
}

.post-card__meta {
	font-size: 13px;
	color: var(--tp-muted);
	margin-bottom: 10px;
}

.post-card__excerpt {
	font-size: 14px;
	color: var(--tp-muted);
	margin: 0;
}

/*--------------------------------------------------------------
>>> 6. Single & Entry
--------------------------------------------------------------*/
.entry-title {
	font-size: 32px;
}

.entry-meta {
	font-size: 14px;
	color: var(--tp-muted);
	margin-bottom: 20px;
}

.entry-content {
	line-height: 1.8;
}

.post-thumbnail {
	margin-bottom: 24px;
	border-radius: var(--tp-radius);
	overflow: hidden;
}

.pagination,
.navigation {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	color: var(--tp-heading);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
	background: var(--tp-primary);
	border-color: var(--tp-primary);
	color: #fff;
}

/*--------------------------------------------------------------
>>> 7. Widgets / Sidebar
--------------------------------------------------------------*/
.widget {
	margin-bottom: 24px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
}

.widget-title {
	font-size: 16px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--tp-primary);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--tp-border);
}

/*--------------------------------------------------------------
>>> 8. Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--tp-secondary);
	color: #aaa;
	font-size: 14px;
	margin-top: 40px;
}

.footer-widgets {
	padding: 50px 0 30px;
}

.footer-widgets .container {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.footer-widgets .widget {
	background: transparent;
	border: 0;
	padding: 0;
	color: #aaa;
}

.footer-widgets .widget-title {
	color: #fff;
	border-color: var(--tp-primary);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 18px 0;
}

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

/*--------------------------------------------------------------
>>> 9. Buttons & Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="submit"],
.button {
	display: inline-block;
	padding: 10px 20px;
	background: var(--tp-primary);
	color: #fff;
	border: 1px solid var(--tp-primary);
	border-radius: var(--tp-radius);
	cursor: pointer;
	font-size: 15px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

button:hover,
.button:hover {
	background: var(--tp-link-hover);
	border-color: var(--tp-link-hover);
	color: #fff;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	font: inherit;
	background: #fff;
}

.search-form {
	display: flex;
	gap: 8px;
}

/*--------------------------------------------------------------
>>> 10. Utilities & Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 99999;
	background: var(--tp-primary);
	color: #fff;
	padding: 10px 16px;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

.text-center {
	text-align: center;
}

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/*--------------------------------------------------------------
>>> 11. Sticky Header
--------------------------------------------------------------*/
.has-sticky-header .site-header.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	animation: tp-slide-down 0.3s ease;
}

.has-sticky-header .site-header.is-sticky .header-topbar {
	display: none;
}

@keyframes tp-slide-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/*--------------------------------------------------------------
>>> 12. Homepage Modules
--------------------------------------------------------------*/
.tp-module {
	padding: 60px 0;
}

.tp-module__title {
	text-align: center;
	font-size: 28px;
	margin-bottom: 32px;
}

.tp-module__subtitle {
	text-align: center;
	color: var(--tp-muted);
	margin: -16px 0 32px;
}

/* Hero */
.tp-hero {
	background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
	color: #fff;
	padding: 100px 0;
	position: relative;
	overflow: hidden;
}

.tp-hero .container {
	position: relative;
	z-index: 1;
}

.tp-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.tp-hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.tp-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease;
}

.tp-hero__slide.is-active {
	opacity: 1;
}

.tp-hero__content {
	max-width: 640px;
}

.tp-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.tp-hero__media {
	flex: 0 0 auto;
}

.tp-hero__media img {
	max-width: 100%;
	max-height: 320px;
}

.hero-align-center .tp-hero__content {
	text-align: center;
	margin: 0 auto;
}

.hero-align-right .tp-hero__content {
	text-align: right;
	margin-left: auto;
}

.tp-hero__title {
	color: #fff;
	font-size: 44px;
	margin-bottom: 12px;
}

.tp-hero__subtitle {
	font-size: 18px;
	opacity: 0.9;
	margin-bottom: 28px;
}

.tp-hero__actions .button {
	background: #fff;
	border-color: #fff;
	color: var(--tp-primary);
	font-weight: 600;
}

.tp-hero__actions .button:hover {
	background: var(--tp-secondary);
	border-color: var(--tp-secondary);
	color: #fff;
}

/* Features */
.tp-features__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tp-feature {
	padding: 28px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	text-align: center;
}

.tp-feature__title {
	font-size: 20px;
	margin-bottom: 10px;
}

.tp-feature__text {
	color: var(--tp-muted);
	margin: 0;
}

/* Products carousel */
.tp-carousel {
	position: relative;
}

.tp-carousel__viewport {
	overflow: hidden;
}

.tp-carousel__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	scrollbar-width: thin;
}

.tp-product-card {
	flex: 0 0 260px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	overflow: hidden;
	text-align: center;
	padding-bottom: 16px;
}

.tp-product-card__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.tp-product-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tp-product-card:hover .tp-product-card__thumb img {
	transform: scale(1.05);
}

.tp-product-card__title {
	font-size: 15px;
	margin: 12px 12px 4px;
}

.tp-product-card__title a {
	color: var(--tp-heading);
}

.tp-product-card__price {
	display: block;
	color: var(--tp-primary);
	font-weight: 700;
	margin-bottom: 10px;
}

.tp-product-card__btn {
	padding: 6px 16px;
	font-size: 13px;
}

.tp-carousel__nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.tp-carousel__nav--prev { left: -12px; }
.tp-carousel__nav--next { right: -12px; }

.tp-carousel__nav:hover {
	background: var(--tp-primary);
}

/* Team */
.tp-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tp-team__member {
	text-align: center;
	padding: 28px 16px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
}

.tp-team__photo {
	width: 96px;
	height: 96px;
	margin: 0 auto 14px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tp-primary);
	color: #fff;
}

.tp-team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-team__initial {
	font-size: 36px;
	font-weight: 700;
}

.tp-team__name {
	font-size: 18px;
	margin-bottom: 4px;
}

.tp-team__role {
	color: var(--tp-muted);
	font-size: 14px;
	margin: 0;
}

/* Testimonials */
.tp-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tp-testimonial {
	margin: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-left: 4px solid var(--tp-primary);
	border-radius: var(--tp-radius);
}

.tp-testimonial__text {
	font-size: 15px;
	color: var(--tp-text);
	margin-bottom: 16px;
}

.tp-testimonial__footer {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.tp-testimonial__name {
	font-style: normal;
	font-weight: 700;
	color: var(--tp-heading);
}

.tp-testimonial__title {
	font-size: 13px;
	color: var(--tp-muted);
}

/* News list */
.tp-news__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tp-news-item {
	display: flex;
	gap: 18px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
}

.tp-news-item__thumb {
	flex: 0 0 180px;
	border-radius: var(--tp-radius);
	overflow: hidden;
}

.tp-news-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-news-item__body {
	flex: 1;
}

.tp-news-item__title {
	font-size: 17px;
	margin-bottom: 4px;
}

.tp-news-item__title a {
	color: var(--tp-heading);
}

.tp-news-item__title a:hover {
	color: var(--tp-primary);
}

.tp-news-item__meta {
	font-size: 13px;
	color: var(--tp-muted);
	margin-bottom: 8px;
}

.tp-news-item__excerpt {
	font-size: 14px;
	color: var(--tp-muted);
	margin: 0;
}

/*--------------------------------------------------------------
>>> 13. Components
--------------------------------------------------------------*/
.content-area--full {
	flex: 1 1 100%;
	max-width: 100%;
}

/* Wide / full alignment */
.alignwide {
	width: 100%;
}

.alignfull {
	width: 100%;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Toppick custom blocks */
.toppick-section-block {
	box-sizing: border-box;
}

.toppick-icon-box {
	text-align: center;
	padding: 24px;
}

.toppick-icon-box__icon {
	font-size: 42px;
	line-height: 1;
	margin-bottom: 14px;
}

.toppick-icon-box__title {
	font-size: 18px;
	margin-bottom: 8px;
}

.toppick-icon-box__text {
	color: var(--tp-muted);
	margin: 0;
}

.toppick-stat {
	text-align: center;
	padding: 16px;
}

.toppick-stat__number {
	display: block;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--tp-primary);
}

.toppick-stat__label {
	color: var(--tp-muted);
}

.toppick-column {
	box-sizing: border-box;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.toppick-column:hover {
	background-color: var(--tpc-hover-bg);
	color: var(--tpc-hover-text);
}

/* Custom modules */
.tp-custom-cols.is-grid {
	display: flex;
	flex-wrap: wrap;
}

.tp-custom-cols.is-stack {
	display: flex;
	flex-direction: column;
}

.tp-custom-col {
	box-sizing: border-box;
	min-width: 0;
	padding: 20px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.tp-custom-cols.is-grid .tp-custom-col {
	flex: 1 1 0;
}

.tp-custom-col:hover {
	background-color: var(--tpc-hover-bg);
	color: var(--tpc-hover-text);
}

.tp-custom-col.align-center {
	text-align: center;
}

.tp-custom-col.align-right {
	text-align: right;
}

.tp-custom-col__title {
	margin-bottom: 10px;
}

.tp-custom-col__text {
	margin: 0;
}

.tp-custom-col__img {
	max-width: 100%;
	height: auto;
}

.tp-custom-col__img.shape-rounded {
	border-radius: 8px;
}

.tp-custom-col__img.shape-circle {
	border-radius: 50%;
}

.tp-custom-col__video {
	width: 100%;
	max-width: 100%;
}

.tp-custom-col__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tp-custom-col__list li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--tp-border);
}

.tp-custom-col__list li a {
	color: var(--tp-text);
}

/* Back to top */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background: var(--tp-primary);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	border: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	z-index: 999;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: var(--tp-link-hover);
}

/* Sticky sidebar */
.widget-area.sidebar-sticky {
	align-self: flex-start;
	position: sticky;
	top: 24px;
}

/* Boxed layout */
body.boxed-layout {
	background: #eef0f2;
}

body.boxed-layout .site {
	max-width: 1400px;
	margin: 0 auto;
	background: var(--tp-body-bg);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/*--------------------------------------------------------------
>>> 14. Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-widgets .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-hero__title { font-size: 34px; }
}

@media (max-width: 768px) {
	.card-grid { grid-template-columns: 1fr; }
	.footer-widgets .container { grid-template-columns: 1fr; }
	.tp-features__grid { grid-template-columns: 1fr; }
	.tp-team__grid { grid-template-columns: 1fr; }
	.tp-testimonials__grid { grid-template-columns: 1fr; }
	.tp-news-item { flex-direction: column; }
	.tp-news-item__thumb { flex: none; aspect-ratio: 16 / 9; }
	.tp-product-card { flex-basis: 200px; }
	.tp-carousel__nav { display: none; }
	.content-row { flex-direction: column; gap: 24px; }
	.widget-area { flex: none; }

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		background: transparent;
		border: 1px solid var(--tp-border);
		color: var(--tp-heading);
	}

	.main-navigation {
		display: none;
		width: 100%;
	}

	.main-navigation.toggled {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
	}

	.main-navigation ul ul {
		position: static;
		box-shadow: none;
		display: none;
		padding-left: 16px;
	}

	.main-navigation li:hover > ul,
	.main-navigation li:focus-within > ul {
		display: flex;
	}

	.header-main .container {
		flex-wrap: wrap;
	}
}
