/*
Theme Name: Storefront Tokongol
Template: storefront
Description: Theme enfant Storefront pour Tokongol Fermes et Agriculture.
Version: 1.1.0
*/

/* ===== Identite visuelle Tokongol (direction validee : vert profond + touche or, Spectral/Karla) ===== */

body {
	background-color: #FAF7F0;
	color: #1E1B16;
	font-family: 'Karla', -apple-system, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-title, .site-title a {
	font-family: 'Spectral', Georgia, 'Times New Roman', serif;
	color: #1E1B16;
}

a {
	color: #23461B;
}

a:hover,
a:focus {
	color: #3F7D32;
}

.site-header {
	background-color: #FAF7F0;
	border-bottom: 1px solid #E7E0D0;
}

.site-branding .site-description {
	color: #6B6252;
}

.main-navigation ul li a {
	color: #1E1B16;
	font-weight: 600;
}

.main-navigation ul li a:hover {
	color: #3F7D32;
}

/* Menu principal sur une seule ligne au format desktop */
@media (min-width: 768px) {
	.main-navigation ul.nav-menu,
	.main-navigation > div > ul {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		width: 100%;
	}
	.main-navigation ul.nav-menu > li,
	.main-navigation > div > ul > li {
		flex: 0 0 auto;
	}
	.main-navigation ul li a {
		padding-left: 12px;
		padding-right: 12px;
		font-size: 15px;
		white-space: nowrap;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.main-navigation ul li a {
		padding-left: 8px;
		padding-right: 8px;
		font-size: 13.5px;
	}
}

button, input[type="button"], input[type="reset"], input[type="submit"],
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
	background-color: #23461B;
	color: #FAF7F0;
	border-radius: 3px;
	font-weight: 600;
	border: none;
}

button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover,
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: #3F7D32;
	color: #FAF7F0;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: #23461B;
	font-weight: 700;
}

.woocommerce span.onsale {
	background-color: #E8B93A;
	color: #1E1B16;
}

.site-footer {
	padding-top: 2em;
	background-color: #F1EBDC;
}

.site-footer .footer-widgets .widget-title {
	color: #23461B;
	font-weight: 700;
	font-family: 'Spectral', serif;
}

.site-footer .textwidget {
	line-height: 1.7;
}

.site-footer a {
	color: #6B6252;
}

.site-footer a:hover {
	color: #23461B;
	text-decoration: underline;
}

/* Bouton d'appel / WhatsApp flottant */
.tkg-float-contact {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
}

.tkg-float-contact a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95em;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	color: #fff;
	transition: transform 0.15s ease;
}

.tkg-float-contact a:hover {
	transform: translateY(-2px);
	color: #fff;
}

.tkg-float-contact .tkg-whatsapp {
	background: #25d366;
}

.tkg-float-contact .tkg-call {
	background: #2f6e2f;
}

@media (max-width: 480px) {
	.tkg-float-contact a span.tkg-label {
		display: none;
	}
	.tkg-float-contact a {
		padding: 14px;
		border-radius: 50%;
	}
}

/* Au-dessus de la barre basse (compte/recherche/panier) affichee sur mobile par Storefront */
@media (max-width: 768px) {
	.tkg-float-contact {
		bottom: 88px;
	}
}

/* Galerie / mediatheque - defilement horizontal avec alignement (scroll-snap) */
.tkg-gallery-row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 6px 6px 20px;
	margin: 0 0 48px;
	-webkit-overflow-scrolling: touch;
}

.tkg-gallery-row::-webkit-scrollbar {
	height: 8px;
}

.tkg-gallery-row::-webkit-scrollbar-thumb {
	background: #C9BFA8;
	border-radius: 4px;
}

.tkg-gallery-item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 320px;
}

.tkg-gallery-item img {
	width: 320px;
	height: 240px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	box-shadow: 0 4px 14px -6px rgba(30, 27, 22, 0.35);
}

.tkg-gallery-item span {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #6B6252;
}

@media (max-width: 480px) {
	.tkg-gallery-item, .tkg-gallery-item img {
		width: 240px;
	}
	.tkg-gallery-item img {
		height: 180px;
	}
}
