/**
 * Corrections CSS custom pour le site Cozastore
 */

/* (header inchangé) qu’à l’origine () */
/* Une seule mise en page : espace sous le header fixe (header inchangé) */
.main-content-below-header {
	padding-top: 124px;
}
@media (max-width: 991px) {
	.main-content-below-header {
		padding-top: 70px;
	}
}

/* Page d'accueil : slider aligné */
.section-slide {
	margin-top: -124px;
}
.section-slide .item-slick1 .container .flex-col-l-m {
	padding-top: 124px !important;
}
@media (max-width: 991px) {
	.section-slide {
		margin-top: -70px;
	}
	.section-slide .item-slick1 .container .flex-col-l-m {
		padding-top: 70px !important;
	}
}

/* Éviter le double espace : le wrapper fait déjà 124px, on met 0 sur les blocs p-t-80/p-t-75 (boutique, contact, panier, etc.) */
.main-content-below-header > .p-t-80,
.main-content-below-header > .p-t-75,
.main-content-below-header > section.p-t-80,
.main-content-below-header > div.p-t-80,
.main-content-below-header > form.p-t-75 {
	padding-top: 0 !important;
}
@media (max-width: 991px) {
	.main-content-below-header > .p-t-80,
	.main-content-below-header > .p-t-75,
	.main-content-below-header > section.p-t-80,
	.main-content-below-header > div.p-t-80,
	.main-content-below-header > form.p-t-75 {
		padding-top: 0 !important;
	}
}

/* Logo header */
.logo {
	height: 85%;
	min-height: 48px;
}
.logo img {
	height: 52px;
	width: auto;
	max-height: 56px;
	object-fit: contain;
}
.logo-mobile img {
	min-height: 44px;
	height: 48px;
	max-height: 52px;
	width: auto;
	object-fit: contain;
}

/* Pas de règle globale .bg0.p-t-80 : chaque page gérée par son layout ou sa classe */

/* Espace sous le menu : divisé par deux (30px → 15px), pas le header */
.flex-w.flex-sb-m.p-b-52 {
	padding-top: 15px;
	border-bottom: 1px solid #e6e6e6;
	margin-bottom: 30px;
}

/* Page boutique uniquement : moins d'espace entre le menu, la barre des catégories et les produits */
.page-boutique-wrap .flex-w.flex-sb-m.p-b-52 {
	padding-top: 0;
	padding-bottom: 15px !important;
	margin-bottom: 15px !important;
}

/* Page boutique : filtre actif bien visible (catégories + panneau filtres) */
.page-boutique-wrap .filter-tope-group a.how-active1 {
	background: #717fe0;
	color: #fff !important;
	padding: 8px 14px !important;
	border-radius: 6px;
	font-weight: 600;
	border: none;
}
.page-boutique-wrap .filter-tope-group a.how-active1:hover {
	background: #5f6dd1;
	color: #fff !important;
}
.page-boutique-wrap .panel-filter a.filter-link-active {
	background: #717fe0;
	color: #fff !important;
	padding: 6px 12px;
	border-radius: 6px;
	font-weight: 600;
	border: none;
	display: inline-block;
	margin: -2px 0;
}
.page-boutique-wrap .panel-filter a.filter-link-active:hover {
	background: #5f6dd1;
	color: #fff !important;
}

/* ========================================
   POPUP NEWSLETTER (après première connexion)
   ======================================== */
.wrap-modal-newsletter {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wrap-modal-newsletter.show-modal-newsletter {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.overlay-modal-newsletter {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.container-modal-newsletter {
	position: relative;
	width: 90%;
	max-width: 440px;
	padding: 15px;
	z-index: 1;
}

.newsletter-popup-box {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	position: relative;
	animation: newsletterPopIn 0.35s ease-out;
}

@keyframes newsletterPopIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.newsletter-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 20px;
	transition: background 0.2s, color 0.2s;
}

.newsletter-popup-close:hover {
	background: #eee;
	color: #333;
}

.newsletter-popup-icon {
	margin-bottom: 10px;
}

/* ========================================
   MODAL LOGIN/REGISTER
   ======================================== */

/* Modal overlay - S'assurer qu'il n'y a qu'un seul modal */
.wrap-modal-login {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	pointer-events: none;
}

.wrap-modal-login.show-modal-login {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Background overlay */
.overlay-modal-login {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
}

/* Modal container */
.container-modal-login {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 500px;
	padding: 15px;
}

/* Modal content animation */
.wrap-modal-login .container-modal-login > div {
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.3s, transform 0.3s;
}

.wrap-modal-login.show-modal-login .container-modal-login > div {
	opacity: 1;
	transform: scale(1);
}

/* Close button */
.how-pos1 {
	position: absolute;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 1;
}

/* Tabs */
.tab-login {
	cursor: pointer;
	transition: all 0.3s;
}

.tab-login:hover {
	color: #717fe0;
}

.tab-login.active-tab {
	color: #717fe0;
	font-weight: 600;
}

/* Social buttons hover */
.bg8:hover {
	background: #f5f5f5 !important;
}

/* Input focus */
.bor8 input:focus {
	outline: none;
	border-color: #717fe0;
}

/* Bordure rouge pour les champs en erreur */
.bor8 {
	transition: border-color 0.3s ease;
}

/* Animation slide pour les messages d'erreur */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 576px) {
	.container-modal-login > div {
		max-width: 95% !important;
	}
	
	.p-all-40 {
		padding: 25px !important;
	}
}
