/*
 * ThemePort – Studio design style (Theme Options → Design → Studio).
 * Loaded after main.css only while the style is active; every rule is
 * scoped to .tp-style-studio.
 *
 * 1. Tokens
 * 2. Header
 * 3. Hero & devices
 * 4. Section heads, highlights
 * 5. Product cards
 * 6. Category row
 * 7. Why us
 * 8. Blog row
 * 9. Footer
 * 10. Responsive
 */

/* 1. Tokens ---------------------------------------------------------------- */
.tp-style-studio {
	--st-deep: color-mix(in srgb, var(--tp-dark) 62%, #02060f);
	--st-footer: color-mix(in srgb, var(--tp-dark) 78%, #050b16);
	--st-ink: #0f172a;
	--st-text: #334155;
	--st-muted: #5b6b82;
	--st-line: #e5e9f1;
	--st-soft: #f5f7fb;
	--st-glow: color-mix(in srgb, var(--tp-primary) 34%, transparent);
	--st-radius: 10px;
	--st-radius-sm: 7px;
	--st-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.14);
	--st-shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, 0.32);
	--tp-ink: var(--st-ink);
	--tp-text: var(--st-text);
	--tp-muted: var(--st-muted);
	--tp-line: var(--st-line);
	--tp-soft: var(--st-soft);
	--tp-btn-radius: 8px;
	--tp-radius: var(--st-radius);
	--tp-header-h: 80px;
	--tp-star: #fbbf24;
	background: #fff;
}

.tp-style-studio .tp-btn--primary {
	box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--tp-primary) 80%, transparent);
}

.tp-style-studio .tp-btn--outline-light {
	border-color: rgba(255, 255, 255, 0.55);
}

/* 2. Header ---------------------------------------------------------------- */
.tp-style-studio.tp-header-dark .tp-header:not(.tp-header--overlay) {
	background: var(--tp-dark);
}

.tp-style-studio .tp-nav .menu > .menu-item > a {
	font-size: 14.5px;
	font-weight: 500;
}

.tp-style-studio .tp-header__cart-count {
	background: var(--tp-primary);
}

.tp-style-studio.tp-header-dark .tp-header__cart-count {
	border-color: var(--tp-dark);
}

/* 3. Hero & devices ---------------------------------------------------------- */
.tp-style-studio .tp-hero {
	background:
		radial-gradient(760px 460px at 80% 42%, var(--st-glow), transparent 70%),
		linear-gradient(100deg, var(--st-deep) 0%, var(--tp-dark) 58%, color-mix(in srgb, var(--tp-dark) 82%, var(--tp-primary)) 100%);
}

.tp-style-studio .tp-hero::before,
.tp-style-studio .tp-hero__glow {
	display: none;
}

.tp-hero-devices .tp-hero {
	padding-bottom: 0;
}

.tp-hero-devices .tp-hero__grid {
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	align-items: end;
	gap: 32px;
}

.tp-hero-devices .tp-hero__content {
	align-self: center;
	padding-bottom: 72px;
}

.tp-hero-devices .tp-hero__title {
	font-size: clamp(34px, 3.9vw, 54px);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.tp-hero__accent {
	background: linear-gradient(90deg, color-mix(in srgb, var(--tp-primary) 70%, #fff) 0%, var(--tp-primary-400) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tp-hero-devices .tp-hero__accent {
	display: block;
}

.tp-hero-devices .tp-hero__text {
	max-width: 500px;
	color: rgba(226, 232, 245, 0.82);
	font-size: 17px;
}

.tp-hero-devices .tp-hero__buttons {
	margin-bottom: 0;
}

.tp-hero-devices .tp-hero__visual {
	position: relative;
	align-self: end;
	min-width: 0;
}

.tp-devices {
	position: relative;
	padding: 24px 3% 0 5%;
	perspective: 1800px;
}

.tp-devices__laptop {
	position: relative;
	padding: 10px 10px 0;
	border: 1px solid rgba(148, 178, 255, 0.22);
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(180deg, #111b30, #0a1222);
	box-shadow:
		0 0 0 1px rgba(2, 6, 16, 0.6),
		0 40px 80px -30px rgba(0, 0, 0, 0.75),
		0 0 70px -20px var(--st-glow);
	transform: rotateY(-11deg) rotateX(3deg);
	transform-origin: 30% 100%;
}

.tp-devices__bar {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 18px;
	padding: 0 4px 8px;
}

.tp-devices__bar i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.tp-devices__bar span {
	flex: 1;
	max-width: 46%;
	height: 7px;
	margin-left: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
}

.tp-devices__screen {
	position: relative;
	overflow: hidden;
	background: #0b1324;
}

.tp-devices__laptop .tp-devices__screen {
	aspect-ratio: 16 / 9.6;
	border-radius: 6px 6px 0 0;
}

.tp-devices__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
}

.tp-devices__blank {
	display: block;
	height: 100%;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 30%, transparent 30%) 18px 22px / 100% 10px no-repeat,
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 52%, transparent 52%) 18px 44px / 100% 22px no-repeat,
		linear-gradient(135deg, #102043, #0a1222);
}

.tp-devices__phone {
	position: absolute;
	right: 2%;
	bottom: 6%;
	z-index: 2;
	width: 28%;
	max-width: 186px;
	padding: 8px;
	border: 1px solid rgba(148, 178, 255, 0.3);
	border-radius: 28px;
	background: linear-gradient(180deg, #131e35, #0a1222);
	box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(2, 6, 16, 0.7);
	transform: rotateY(-11deg) rotateX(3deg);
}

.tp-devices__notch {
	position: absolute;
	top: 13px;
	left: 50%;
	z-index: 1;
	width: 34%;
	height: 9px;
	border-radius: 999px;
	background: #05090f;
	transform: translateX(-50%);
}

.tp-devices__phone .tp-devices__screen {
	aspect-ratio: 9 / 19;
	border-radius: 21px;
}

.tp-devices__phone .tp-devices__img {
	object-position: left top;
}

/* 4. Section heads, highlights ---------------------------------------------- */
.tp-style-studio .tp-section {
	padding: 52px 0;
}

.tp-style-studio .tp-section-head {
	align-items: flex-end;
	margin-bottom: 22px;
}

.tp-style-studio .tp-eyebrow {
	color: var(--st-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
}

.tp-style-studio .tp-section-title {
	color: var(--st-ink);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tp-style-studio .tp-link-arrow {
	color: var(--tp-primary);
	font-size: 14px;
}

.tp-style-studio .tp-highlights {
	border-bottom-color: #edf0f5;
	background: #f8fafc;
}

.tp-style-studio .tp-highlight__icon {
	border-color: color-mix(in srgb, var(--tp-primary) 24%, transparent);
	background: #fff;
}

.tp-style-studio .tp-section--featured + .tp-section--categories {
	padding-top: 8px;
}

/* 5. Product cards ----------------------------------------------------------- */
.tp-style-studio .tp-product-grid--4 {
	gap: 22px;
}

.tp-card--studio {
	padding: 9px;
	border-color: var(--st-line);
	border-radius: var(--st-radius);
	box-shadow: none;
}

.tp-card--studio:hover,
.tp-card--studio:focus-within {
	border-color: color-mix(in srgb, var(--tp-primary) 35%, var(--st-line));
	box-shadow: var(--st-shadow);
	transform: translateY(-3px);
}

.tp-card--studio .tp-card__media {
	border-radius: var(--st-radius-sm);
	background: var(--tp-dark);
	aspect-ratio: 16 / 9;
}

.tp-card--studio .tp-card__image img {
	object-position: top center;
}

.tp-card--studio .tp-badge {
	position: absolute;
	top: 9px;
	right: 9px;
	left: auto;
	width: auto;
	padding: 3px 9px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tp-card--studio .tp-badge--new {
	background: var(--tp-primary);
	color: #fff;
}

.tp-card--studio .tp-badge--popular {
	background: #5b4ff0;
	color: #fff;
}

.tp-card--studio .tp-card__body {
	gap: 5px;
	padding: 14px 7px 4px;
}

.tp-card--studio .tp-card__title {
	min-height: 0;
	font-size: 16.5px;
	font-weight: 700;
	-webkit-line-clamp: 1;
}

.tp-card--studio .tp-card__title a {
	color: var(--st-ink);
}

.tp-card--studio .tp-card__sub {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--st-muted);
	font-size: 13.5px;
	line-height: 1.4;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.tp-card--studio .tp-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.tp-card--studio .tp-card__rating-value {
	color: var(--st-muted);
	font-size: 12.5px;
}

.tp-card--studio .tp-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 0;
}

.tp-card--studio .tp-card__price .tp-price__now {
	color: var(--st-ink);
	font-size: 19px;
	font-weight: 800;
}

.tp-card--studio .tp-collect--cart {
	position: relative;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--tp-dark);
	color: #fff;
	box-shadow: none;
}

.tp-card--studio .tp-collect--cart:hover,
.tp-card--studio .tp-collect--cart.is-active {
	background: var(--tp-primary);
	color: #fff;
	transform: none;
}

/* 6. Category row ------------------------------------------------------------ */
.tp-cat-row {
	display: grid;
	grid-template-columns: repeat(var(--tp-cols, 4), minmax(0, 1fr));
	gap: 20px;
	list-style: none;
}

.tp-cat-row__card {
	--tp-cat: var(--tp-primary);
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--st-line);
	border-radius: 14px;
	background: #fff;
	color: var(--st-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--tp-ease);
}

.tp-cat-row__card:hover,
.tp-cat-row__card:focus-visible {
	border-color: color-mix(in srgb, var(--tp-cat) 45%, var(--st-line));
	box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--tp-cat) 70%, transparent);
	color: var(--st-ink);
	transform: translateY(-3px);
}

.tp-cat-row__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 10px;
}

.tp-cat-row__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--tp-cat) 11%, #fff);
	color: var(--tp-cat);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tp-cat-row__card:hover .tp-cat-row__icon,
.tp-cat-row__card:focus-visible .tp-cat-row__icon {
	background: var(--tp-cat);
	color: #fff;
}

.tp-cat-row__arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--st-line);
	border-radius: 50%;
	color: var(--st-ink);
	transition: transform 0.2s var(--tp-ease), color 0.2s ease, border-color 0.2s ease;
}

.tp-cat-row__card:hover .tp-cat-row__arrow,
.tp-cat-row__card:focus-visible .tp-cat-row__arrow {
	border-color: var(--tp-cat);
	color: var(--tp-cat);
	transform: translateX(3px);
}

.tp-cat-row__name {
	font-family: var(--tp-font-heading);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.tp-cat-row__about {
	color: var(--st-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* 7. Why us ------------------------------------------------------------------ */
.tp-why {
	background: var(--st-soft);
}

.tp-style-studio .tp-why {
	padding: 64px 0;
}

.tp-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	align-items: center;
	gap: 56px;
}

.tp-why--solo .tp-why__grid {
	grid-template-columns: minmax(0, 1fr);
}

.tp-why--solo .tp-why__content {
	max-width: 760px;
}

.tp-why__visual {
	position: relative;
	min-width: 0;
}

.tp-why__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: var(--st-shadow-lg);
}

.tp-why__stack {
	position: relative;
	min-height: 360px;
}

.tp-why__stack::before {
	content: "";
	position: absolute;
	inset: 10% 6% 4% 4%;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--tp-primary) 16%, transparent), transparent);
}

.tp-why__screen {
	position: absolute;
	overflow: hidden;
	border: 1px solid var(--st-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--st-shadow-lg);
}

.tp-why__screen img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
}

.tp-why__bar {
	display: flex;
	gap: 4px;
	padding: 7px 9px;
	border-bottom: 1px solid var(--st-line);
}

.tp-why__bar i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d6dce8;
}

.tp-why__screen--1 {
	top: 14%;
	left: 0;
	z-index: 1;
	width: 64%;
	transform: rotate(-2deg);
}

.tp-why__screen--2 {
	top: 0;
	right: 4%;
	z-index: 2;
	width: 52%;
}

.tp-why__screen--3 {
	right: 0;
	bottom: 0;
	z-index: 3;
	width: 48%;
	transform: rotate(1.5deg);
}

.tp-why__stack--1 .tp-why__screen--1 {
	position: relative;
	top: 0;
	width: 100%;
	transform: none;
}

.tp-why__stack--1 {
	min-height: 0;
}

.tp-why__stack--2 .tp-why__screen--2 {
	top: auto;
	bottom: 0;
}

.tp-why__text {
	margin: 12px 0 20px;
	color: var(--st-muted);
	font-size: 16px;
	line-height: 1.65;
}

.tp-why__list {
	display: grid;
	gap: 10px;
	margin: 0 0 26px;
	list-style: none;
}

.tp-why__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--st-text);
	font-size: 15px;
	line-height: 1.45;
}

.tp-why__list .tp-icon {
	flex: none;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--tp-primary);
	color: #fff;
}

/* 8. Blog row ------------------------------------------------------------------ */
.tp-post-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.tp-post-row__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 12px 40px 12px 12px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-post-row__card:hover,
.tp-post-row__card:focus-within {
	border-color: color-mix(in srgb, var(--tp-primary) 40%, var(--st-line));
	box-shadow: var(--st-shadow);
}

.tp-post-row__image {
	display: grid;
	flex: none;
	place-items: center;
	width: 118px;
	height: 92px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--tp-dark);
	color: #fff;
}

.tp-post-row__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-post-row__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tp-post-row__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--tp-font-heading);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tp-post-row__title a {
	color: var(--st-ink);
}

.tp-post-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

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

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

.tp-post-row__arrow {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: grid;
	color: var(--st-ink);
}

/* 9. Footer -------------------------------------------------------------------- */
.tp-style-studio .tp-footer--dark {
	background: var(--st-footer);
}

.tp-style-studio .tp-footer {
	padding-bottom: 0;
}

.tp-style-studio .tp-footer__grid {
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.75fr)) minmax(0, 1.25fr);
	gap: 32px;
	padding-bottom: 44px;
}

.tp-style-studio .tp-footer__about {
	max-width: 330px;
	font-size: 14px;
	line-height: 1.6;
}

.tp-style-studio .tp-footer__title {
	font-size: 15px;
}

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

.tp-style-studio .tp-footer--dark .tp-footer__lead {
	color: rgba(255, 255, 255, 0.62);
}

.tp-style-studio .tp-social a {
	border-radius: 50%;
}

.tp-style-studio .tp-newsletter {
	display: flex;
	flex-direction: row;
	gap: 8px;
}

.tp-style-studio .tp-newsletter input[type="email"] {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	height: 46px;
	border-radius: 8px;
}

.tp-style-studio .tp-footer--dark .tp-newsletter input[type="email"] {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.tp-style-studio .tp-newsletter__go {
	flex: none;
	width: 46px;
	min-height: 46px;
	padding: 0;
}

.tp-footer__bottom {
	border-top: 1px solid var(--tp-line);
}

.tp-footer--dark .tp-footer__bottom {
	border-top-color: rgba(255, 255, 255, 0.08);
}

.tp-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.tp-footer__bottom .tp-footer__copy {
	margin: 0;
	font-size: 13.5px;
}

.tp-paymarks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	list-style: none;
}

.tp-paymark {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tp-ink);
	font-size: 13px;
	font-weight: 600;
}

.tp-footer--dark .tp-paymark {
	color: rgba(255, 255, 255, 0.86);
}

.tp-paymark--visa {
	font-size: 17px;
	font-style: italic;
	font-weight: 900;
	letter-spacing: 0.02em;
}

/* 10. Responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.tp-cat-row {
		gap: 16px;
	}

	.tp-cat-row__card {
		padding: 18px;
	}

	.tp-post-row {
		gap: 14px;
	}

	.tp-post-row__card {
		gap: 12px;
	}

	.tp-post-row__image {
		width: 92px;
		height: 76px;
	}

	.tp-style-studio .tp-footer__grid {
		grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	}

	.tp-style-studio .tp-footer__newsletter {
		grid-column: 1 / -1;
		max-width: 520px;
	}
}

@media (max-width: 960px) {
	.tp-hero-devices .tp-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.tp-hero-devices .tp-hero__content {
		padding-bottom: 0;
	}

	.tp-hero-devices .tp-hero__visual {
		width: 100%;
		max-width: 640px;
		margin: 0 auto;
	}

	.tp-post-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-post-row__image {
		width: 118px;
		height: 92px;
	}
}

@media (max-width: 860px) {
	.tp-cat-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-why__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.tp-why__stack {
		min-height: 300px;
	}
}

@media (max-width: 640px) {
	.tp-style-studio .tp-section {
		padding: 40px 0;
	}

	.tp-hero-devices .tp-hero__title {
		font-size: clamp(30px, 8.6vw, 40px);
	}

	.tp-hero-devices .tp-hero__buttons .tp-btn {
		flex: 1 1 auto;
	}

	.tp-devices {
		padding-left: 0;
	}

	.tp-devices__phone {
		width: 30%;
		border-radius: 20px;
	}

	.tp-devices__phone .tp-devices__screen {
		border-radius: 14px;
	}

	.tp-cat-row {
		gap: 12px;
	}

	.tp-cat-row__card {
		padding: 14px;
	}

	.tp-cat-row__top {
		margin-bottom: 6px;
	}

	.tp-cat-row__icon {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.tp-cat-row__arrow {
		display: none;
	}

	.tp-cat-row__name {
		font-size: 15px;
		overflow-wrap: anywhere;
	}

	.tp-cat-row__about {
		font-size: 13px;
	}

	.tp-why__stack {
		min-height: 230px;
	}

	.tp-post-row__image {
		width: 96px;
		height: 76px;
	}

	.tp-style-studio .tp-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.tp-style-studio .tp-footer__brand {
		grid-column: 1 / -1;
	}

	.tp-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 380px) {
	.tp-cat-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp-devices__laptop,
	.tp-devices__phone,
	.tp-why__screen {
		transform: none;
	}
}
