/* Tiny Tidy — Custom Styles v1.4 */

/* --- Transitions --- */
a {
	transition: color 0.2s ease;
}

.wp-element-button {
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.wp-element-button:hover {
	transform: translateY(-1px);
}

/* --- Hero --- */
.tt-hero .wp-block-cover__inner-container {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tt-hero .wp-block-heading {
	font-size: clamp(2.5rem, 5.5vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tt-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem !important;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.75rem !important;
}

.tt-hero.wp-block-cover .tt-eyebrow {
	color: inherit;
}

.tt-hero .tt-text-link {
	color: #f7f4f0 !important;
	border-bottom-color: rgba(247, 244, 240, 0.5) !important;
}

/* --- Text links --- */
.tt-text-link {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	font-size: 0.875rem;
	text-decoration: none !important;
	color: var(--wp--preset--color--primary) !important;
	border-bottom: 1px solid var(--wp--preset--color--primary);
	padding-bottom: 2px;
	transition: opacity 0.2s ease;
}

.tt-text-link:hover {
	opacity: 0.6;
}

/* --- Trust strip --- */
.tt-trust-strip {
	display: flex;
	justify-content: center;
	gap: 2.5rem;
	flex-wrap: wrap;
	padding: 0.25rem 0;
}

.tt-trust-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--foreground);
	white-space: nowrap;
}

.tt-trust-item svg {
	width: 18px;
	height: 18px;
	stroke: var(--wp--preset--color--primary);
	flex-shrink: 0;
}

/* --- Category tiles --- */
.tt-category-tile {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
}

.tt-category-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.tt-category-tile .wp-block-image {
	margin: 0;
	overflow: hidden;
	max-width: none !important;
}

.tt-category-tile .wp-block-image a {
	display: block;
	width: 100%;
}

.tt-category-tile .wp-block-image img {
	width: 100% !important;
	height: 240px !important;
	object-fit: cover !important;
	aspect-ratio: unset !important;
	display: block;
	transition: transform 0.4s ease;
}

.tt-category-tile > .wp-block-image {
	width: 100%;
}

.tt-category-tile:hover .wp-block-image img {
	transform: scale(1.05);
}

/* --- Header --- */
.tt-header {
	border-bottom: 1px solid var(--wp--preset--color--secondary);
}

.tt-header .wp-block-site-title {
	flex: 1;
	min-width: 0;
}

.tt-header .wp-block-navigation,
.tt-header .wp-block-woocommerce-customer-account {
	flex-shrink: 0;
}

/* --- Announcement bar --- */
.tt-announcement a {
	color: inherit !important;
	text-decoration: underline;
}

/* --- Product page trust badges --- */
.tt-product-trust {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--secondary);
}

.tt-product-trust-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--foreground);
}

.tt-product-trust-item svg {
	width: 16px;
	height: 16px;
	stroke: var(--wp--preset--color--primary);
	flex-shrink: 0;
}

.tt-delivery-estimate {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--background);
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
}

.tt-delivery-estimate svg {
	width: 18px;
	height: 18px;
	stroke: var(--wp--preset--color--primary);
	flex-shrink: 0;
}

/* --- Hide reviews tab (no reviews yet) --- */
.wc-tabs li.reviews_tab,
#tab-reviews {
	display: none !important;
}

/* --- Email popup --- */
#tt-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

#tt-popup {
	position: relative;
	background: #f7f4f0;
	border-radius: 12px;
	padding: 2.5rem 2rem;
	max-width: 420px;
	width: 100%;
	text-align: center;
	font-family: var(--wp--preset--font-family--body);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#tt-popup h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	color: #2c3328;
	margin: 0 0 0.5rem;
}

#tt-popup p {
	font-size: 0.9rem;
	color: #666;
	line-height: 1.6;
	margin: 0 0 1.25rem;
}

#tt-popup-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #999;
	line-height: 1;
	padding: 0.25rem;
}

#tt-popup-close:hover {
	color: #2c3328;
}

#tt-subscribe-form {
	display: flex;
	gap: 0.5rem;
}

#tt-popup-email {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid #d4c5b2;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	background: #fff;
	outline: none;
}

#tt-popup-email:focus {
	border-color: #7a8b6f;
}

#tt-subscribe-form button {
	padding: 0.75rem 1.25rem;
	background: #7a8b6f;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

#tt-subscribe-form button:hover {
	background: #6a7b5f;
}

#tt-subscribe-form button:disabled {
	opacity: 0.7;
	cursor: default;
}

.tt-popup-note {
	font-size: 0.75rem !important;
	color: #999 !important;
	margin-top: 0.75rem !important;
}

.tt-coupon-box {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: #fff;
	border: 2px dashed #7a8b6f;
	border-radius: 8px;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #7a8b6f;
	margin: 1rem 0;
	font-family: var(--wp--preset--font-family--body);
}

.tt-popup-cta {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.75rem 2rem;
	background: #7a8b6f;
	color: #fff !important;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s;
}

.tt-popup-cta:hover {
	background: #6a7b5f;
}

/* --- Cookie banner --- */
#tt-cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99998;
	background: #2c3328;
	color: #f7f4f0;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	line-height: 1.5;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

#tt-cookie-banner p {
	margin: 0;
	flex: 1;
}

#tt-cookie-banner a {
	color: #d4c5b2;
	text-decoration: underline;
}

.tt-cookie-buttons {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

#tt-cookie-reject {
	padding: 0.5rem 1rem;
	background: transparent;
	color: #f7f4f0;
	border: 1px solid rgba(247, 244, 240, 0.3);
	border-radius: 6px;
	font-size: 0.8125rem;
	font-family: inherit;
	cursor: pointer;
}

#tt-cookie-accept {
	padding: 0.5rem 1rem;
	background: #7a8b6f;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

/* --- Mobile --- */
@media (max-width: 781px) {
	.tt-hero .wp-block-heading {
		font-size: clamp(2rem, 8vw, 2.75rem);
	}

	.tt-trust-strip {
		gap: 1.25rem 2rem;
		justify-content: center;
	}

	.tt-trust-item {
		white-space: normal;
	}

	#tt-subscribe-form {
		flex-direction: column;
	}

	#tt-cookie-banner {
		flex-direction: column;
		text-align: center;
	}
}
