/*
Theme Name: T&T - Hello Elementor Child
Description: Thème enfant Hello Elementor pour Tout & Tout Matériaux.
Author: Tout & Tout Matériaux
Template: hello-elementor
Version: 1.0.0
Text Domain: tt-hello-child
*/


/* ==========================================================
   T&T PARTNER STORE V0.3
   ========================================================== */

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

.tt-store {
	--tt-orange: #F77A00;
	--tt-blue: #2F5F7A;
	--tt-navy: #0D1B2A;
	--tt-footer: #1E364F;
	--tt-bg: #F7F9FB;
	--tt-white: #FFFFFF;
	--tt-border: #DCE4E9;
	--tt-text: #172A38;
	--tt-muted: #637381;
	--tt-success: #178447;

	width: min(1180px, calc(100% - 40px));
	margin: 24px auto 72px;
	color: var(--tt-text);
	font-family: inherit;
}


/* ==========================================================
   HERO
   ========================================================== */

.tt-store-hero {
	overflow: hidden;
	background: var(--tt-white);
	border: 1px solid var(--tt-border);
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(13, 27, 42, 0.06);
}

.tt-store-hero__banner {
	width: 100%;
	height: 280px;
	overflow: hidden;
	background: #E9EFF3;
}

.tt-store-hero__banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tt-store-hero__banner-placeholder {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			#E8EEF2 0%,
			#F7F9FB 100%
		);
}

.tt-store-hero__profile {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 24px;
	padding: 0 32px 28px;
}

.tt-store-hero__avatar {
	flex: 0 0 130px;
	width: 130px;
	height: 130px;
	margin-top: -52px;
	overflow: hidden;
	background: var(--tt-white);
	border: 5px solid var(--tt-white);
	border-radius: 18px;
	box-shadow: 0 5px 20px rgba(13, 27, 42, 0.14);
}

.tt-store-hero__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--tt-white);
}

.tt-store-hero__details {
	min-width: 0;
	flex: 1;
	padding-top: 22px;
}

.tt-store-hero__label {
	margin: 0 0 5px;
	color: var(--tt-blue);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tt-store-hero__title {
	margin: 0;
	color: var(--tt-navy);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
	line-height: 1.12;
}

.tt-store-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 15px;
}

.tt-store-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 7px 11px;
	color: #405361;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	background: #F2F5F7;
	border: 1px solid #E1E7EB;
	border-radius: 999px;
}

.tt-store-chip--rating {
	color: var(--tt-navy);
}

.tt-store-chip--rating > span:first-child {
	color: var(--tt-orange);
}

.tt-store-chip--verified {
	color: #116638;
	background: #ECF8F1;
	border-color: #CFECDD;
}

.tt-store-chip__separator {
	color: #9AA8B2;
}


/* ==========================================================
   TABS
   ========================================================== */

.tt-store-tabs {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	gap: 4px;
	margin: 18px 0 0;
	padding: 8px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(13, 27, 42, 0.05);
	backdrop-filter: blur(10px);
}

.tt-store-tabs__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	color: #435765;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none !important;
	border-radius: 10px;
	transition:
		background-color 0.18s ease,
		color 0.18s ease;
}

.tt-store-tabs__item:hover,
.tt-store-tabs__item:focus-visible {
	color: var(--tt-blue);
	background: #EEF4F7;
}

.tt-store-tabs__item.is-active {
	color: var(--tt-white);
	background: var(--tt-blue);
}


/* ==========================================================
   SECTIONS
   ========================================================== */

.tt-store-section {
	scroll-margin-top: 100px;
	padding: 46px 0 0;
}

.tt-store-section__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.tt-store-section__eyebrow {
	margin: 0 0 5px;
	color: var(--tt-orange);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tt-store-section__title {
	margin: 0;
	color: var(--tt-navy);
	font-size: clamp(25px, 3vw, 32px);
	font-weight: 800;
	line-height: 1.2;
}


/* ==========================================================
   WOOCOMMERCE PRODUCT GRID
   ========================================================== */

.tt-store-products__grid {
	width: 100%;
}

.tt-store-products__grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.tt-store-products__grid ul.products::before,
.tt-store-products__grid ul.products::after {
	display: none !important;
	content: none !important;
}

.tt-store-products__grid ul.products li.product {
	position: relative;
	float: none !important;
	display: flex !important;
	flex-direction: column;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 0 18px !important;
	overflow: hidden;
	background: var(--tt-white);
	border: 1px solid var(--tt-border);
	border-radius: 15px;
	box-shadow: 0 5px 18px rgba(13, 27, 42, 0.055);
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.tt-store-products__grid ul.products li.product:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(13, 27, 42, 0.1);
}

.tt-store-products__grid ul.products li.product > a {
	text-decoration: none !important;
}

.tt-store-products__grid ul.products li.product img {
	display: block;
	width: 100% !important;
	aspect-ratio: 1 / 1;
	height: auto !important;
	margin: 0 0 14px !important;
	object-fit: cover;
	background: #F1F4F6;
}

.tt-store-products__grid ul.products li.product .woocommerce-loop-product__title {
	min-height: 48px;
	margin: 0 !important;
	padding: 0 16px !important;
	color: var(--tt-navy);
	font-size: 17px !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
}

.tt-store-products__grid ul.products li.product .star-rating {
	margin: 10px 16px 0 !important;
	font-size: 13px;
}

.tt-store-products__grid ul.products li.product .price {
	display: block;
	margin: 12px 16px 0 !important;
	color: var(--tt-navy) !important;
	font-size: 19px !important;
	font-weight: 800 !important;
}

.tt-store-products__grid ul.products li.product .price del {
	margin-right: 5px;
	color: #7F8D96;
	font-size: 14px;
	font-weight: 500;
}

.tt-store-products__grid ul.products li.product .price ins {
	color: var(--tt-navy);
	text-decoration: none;
}

.tt-store-products__grid ul.products li.product .button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: calc(100% - 32px);
	min-height: 44px;
	margin: auto 16px 0 !important;
	padding: 11px 14px !important;
	color: var(--tt-white) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	text-align: center;
	text-decoration: none !important;
	background: var(--tt-blue) !important;
	border: 0 !important;
	border-radius: 9px !important;
	box-shadow: none !important;
}

.tt-store-products__grid ul.products li.product .button:hover {
	background: #254E65 !important;
}

.tt-store-products__grid ul.products li.product .onsale {
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	min-width: auto !important;
	min-height: auto !important;
	margin: 0 !important;
	padding: 6px 9px !important;
	color: var(--tt-white) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	background: var(--tt-orange) !important;
	border-radius: 7px !important;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.tt-store-empty {
	padding: 45px 24px;
	text-align: center;
	background: var(--tt-white);
	border: 1px dashed #C9D5DC;
	border-radius: 14px;
}

.tt-store-empty h3 {
	margin: 0 0 7px;
	color: var(--tt-navy);
	font-size: 20px;
}

.tt-store-empty p {
	margin: 0;
	color: var(--tt-muted);
}


/* ==========================================================
   INFORMATION CARDS
   ========================================================== */

.tt-store-info__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tt-store-info__card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-height: 150px;
	padding: 22px;
	background: var(--tt-white);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
}

.tt-store-info__icon {
	display: flex;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--tt-blue);
	font-size: 21px;
	font-weight: 800;
	background: #EDF4F7;
	border-radius: 11px;
}

.tt-store-info__card h3 {
	margin: 2px 0 8px;
	color: var(--tt-navy);
	font-size: 18px;
	font-weight: 800;
}

.tt-store-info__card p {
	margin: 0;
	color: #536673;
	font-size: 15px;
	line-height: 1.55;
}


/* ==========================================================
   REVIEWS
   ========================================================== */

.tt-store-reviews__card {
	max-width: 450px;
	padding: 26px;
	background: var(--tt-white);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
}

.tt-store-reviews__score {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.tt-store-reviews__score strong {
	color: var(--tt-navy);
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
}

.tt-store-reviews__score span {
	color: var(--tt-muted);
	font-size: 18px;
	font-weight: 700;
}

.tt-store-reviews__stars {
	margin: 12px 0 8px;
	color: var(--tt-orange);
	font-size: 20px;
	letter-spacing: 2px;
}

.tt-store-reviews__card p {
	margin: 0;
	color: var(--tt-muted);
	font-size: 15px;
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.tt-store .pagination-wrap,
.tt-store .dokan-pagination-container {
	margin-top: 32px;
}


/* ==========================================================
   REMOVE LEGACY DOKAN STORE LAYOUT
   ========================================================== */

body .dokan-store-sidebar,
body #dokan-secondary {
	display: none !important;
}

body .dokan-single-store,
body #dokan-primary,
body #dokan-content {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}


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

@media (max-width: 1024px) {

	.tt-store {
		width: min(100% - 32px, 960px);
	}

	.tt-store-hero__banner {
		height: 240px;
	}

	.tt-store-products__grid ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tt-store-info__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


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

@media (max-width: 767px) {

	.tt-store {
		width: calc(100% - 24px);
		margin-top: 14px;
		margin-bottom: 48px;
	}

	.tt-store-hero {
		border-radius: 14px;
	}

	.tt-store-hero__banner {
		height: 155px;
	}

	.tt-store-hero__profile {
		display: block;
		padding: 0 18px 20px;
	}

	.tt-store-hero__avatar {
		width: 88px;
		height: 88px;
		margin-top: -35px;
		border-width: 4px;
		border-radius: 14px;
	}

	.tt-store-hero__details {
		padding-top: 12px;
	}

	.tt-store-hero__label {
		font-size: 11px;
	}

	.tt-store-hero__title {
		font-size: 25px;
	}

	.tt-store-hero__meta {
		gap: 6px;
		margin-top: 12px;
	}

	.tt-store-chip {
		min-height: 30px;
		padding: 6px 9px;
		font-size: 12px;
	}

	.tt-store-tabs {
		overflow-x: auto;
		margin-top: 12px;
		padding: 6px;
		border-radius: 12px;
		scrollbar-width: none;
	}

	.tt-store-tabs::-webkit-scrollbar {
		display: none;
	}

	.tt-store-tabs__item {
		flex: 1 0 auto;
		min-height: 40px;
		padding: 8px 14px;
		font-size: 13px;
	}

	.tt-store-section {
		padding-top: 34px;
	}

	.tt-store-section__heading {
		margin-bottom: 16px;
	}

	.tt-store-section__eyebrow {
		font-size: 11px;
	}

	.tt-store-section__title {
		font-size: 24px;
	}

	.tt-store-products__grid ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.tt-store-products__grid ul.products li.product {
		padding-bottom: 12px !important;
		border-radius: 11px;
	}

	.tt-store-products__grid ul.products li.product img {
		margin-bottom: 10px !important;
	}

	.tt-store-products__grid ul.products li.product .woocommerce-loop-product__title {
		min-height: 40px;
		padding: 0 10px !important;
		font-size: 14px !important;
		line-height: 1.35 !important;
	}

	.tt-store-products__grid ul.products li.product .star-rating {
		margin: 7px 10px 0 !important;
		font-size: 11px;
	}

	.tt-store-products__grid ul.products li.product .price {
		margin: 9px 10px 0 !important;
		font-size: 16px !important;
	}

	.tt-store-products__grid ul.products li.product .button {
		width: calc(100% - 20px);
		min-height: 40px;
		margin: auto 10px 0 !important;
		padding: 9px 7px !important;
		font-size: 12px !important;
	}

	.tt-store-info__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.tt-store-info__card {
		min-height: 0;
		padding: 18px;
	}

	.tt-store-reviews__card {
		max-width: none;
		padding: 20px;
	}

	.tt-store-reviews__score strong {
		font-size: 36px;
	}
}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

	.tt-store-products__grid ul.products {
		grid-template-columns: 1fr;
	}
}