/* =========================================================================
   Nutrivit brand v3 "Curvella" — loaded after style.css.
   Colours from the Curvella pack, kept light: white pages, rose buttons,
   plum type, blush and vanilla accents, rose-gold hairlines.
   style.css rules that use var(--nv-*) pick these values up; the rules
   below replace its hard-coded v2 colours (dark topbar / footer).
   ========================================================================= */
:root {
	--nv-bg: #ffffff;          /* every page is white */
	--nv-surface: #fdf3f6;     /* image wells, quiet panels */
	--nv-blush: #fde4ea;       /* the pack's pink */
	--nv-pink: #f6c1cf;        /* hover borders, decor */
	--nv-cream: #fdf6ec;       /* vanilla */
	--nv-card: #ffffff;
	--nv-ink: #5b2a3c;         /* plum: headings and strong text */
	--nv-ink-2: #6e3a4d;
	--nv-text: #5f4a51;        /* body copy */
	--nv-muted: #8d6f79;
	--nv-line: #f3dfe5;
	--nv-accent: #c8436a;      /* rose: buttons, links, active states (4.7:1 on white) */
	--nv-accent-dark: #ad3459; /* rose, hover */
	--nv-accent-soft: #fde8ee;
	--nv-gold: #d4a088;        /* rose gold — decorative lines only */
	--nv-gold-soft: #f3e1d6;
	--nv-shadow: 0 16px 36px -22px rgba(173, 52, 89, .45);
	--nv-r-sm: 10px;
	--nv-r-md: 16px;
	--nv-r-lg: 24px;
	--nv-r-pill: 999px;

	/* Vineta's own variables */
	--primary: var(--nv-accent);
	--primary-2: #d9688a;
	--primary-3: var(--nv-pink);
	--primary-4: var(--nv-accent-soft);
	--secondary-2: rgba(200, 67, 106, .75);
	--secondary-3: rgba(200, 67, 106, .5);
	--dark: var(--nv-ink);
	--dark-2: var(--nv-ink-2);
	--dark-3: #7a4a5b;
	--text: var(--nv-text);
	--text-2: #4f3a41;
	--surface: var(--nv-surface);
	--surface-2: #ffffff;
	--surface-3: var(--nv-surface);
	--white-2: var(--nv-surface);
}

body, .site, #page, .main-content, .site-main, .tf-page-content { background-color: #fff; }
::selection { background: var(--nv-blush); color: var(--nv-ink); }

/* ---- Type: a rose-gold hairline under section titles (the pack's thin swash) ---- */
.flat-title .title::after, .tf-heading .title::after {
	content: "";
	display: block;
	width: 44px;
	height: 2px;
	margin: 14px auto 0;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--nv-gold), var(--nv-pink));
}
.flat-title.text-start .title::after, .tf-heading.text-start .title::after { margin-inline: 0 auto; }

/* ---- Buttons: rose pills ---- */
.tf-btn,
.button, button.button, a.button,
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.single_add_to_cart_button, .checkout-button { border-radius: var(--nv-r-pill) !important; }
.tf-btn:not(.btn-white):not(.btn-line-dark):not(.btn-outline-dark2):not(.btn-out-line-dark):not(.btn-line),
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.single_add_to_cart_button, .checkout-button {
	background-color: var(--nv-accent);
	border-color: var(--nv-accent);
	color: #fff;
}
.tf-btn:hover,
.woocommerce .button:hover, .single_add_to_cart_button:hover, .checkout-button:hover {
	background-color: var(--nv-accent-dark) !important;
	border-color: var(--nv-accent-dark) !important;
	color: #fff !important;
	box-shadow: 0 10px 22px -12px rgba(200, 67, 106, .75);
}
.tf-btn.btn-white, .tf-btn.btn-line-dark, .tf-btn.btn-outline-dark2, .tf-btn.btn-out-line-dark {
	border-color: var(--nv-accent);
	color: var(--nv-accent);
}

/* ---- Header & topbar ---- */
.tf-topbar { background: var(--nv-accent) !important; }
.tf-topbar, .tf-topbar a, .tf-topbar .text, .tf-topbar .icon, .tf-topbar i { color: #fff !important; }
.tf-topbar a:hover { color: var(--nv-blush) !important; }
.tf-topbar .social-item, .tf-topbar .tf-social-icon a { border-color: rgba(255, 255, 255, .55) !important; }
.mainnav .menu > li > a { color: var(--nv-ink); }
.nav-icon .count-box, .count-box, .toolbar-count { background: var(--nv-accent) !important; color: #fff !important; }

/* marquee band: blush, plum type, rose stars */
.marquee-sale {
	background: var(--nv-blush) !important;
	color: var(--nv-ink) !important;
	border: 0 !important;
}
.marquee-sale *, .marquee-sale .text { color: var(--nv-ink) !important; }
.marquee-sale svg, .marquee-sale svg path, .marquee-sale .icon { color: var(--nv-accent) !important; fill: var(--nv-accent) !important; }

/* ---- Product cards ---- */
.card-product { transition: transform .25s var(--nv-ease), box-shadow .25s var(--nv-ease), border-color .25s var(--nv-ease); }
.card-product:hover { transform: translateY(-3px); border-color: var(--nv-pink); box-shadow: var(--nv-shadow); }
.card-product .name-product:hover { color: var(--nv-accent) !important; }
.card-product .tf-price del, .card-product .price del { color: #b39aa3; }
.card-product .tf-btn, .card-product .btn-add-to-cart, .card-product a.add_to_cart_button {
	background: var(--nv-accent) !important; border-color: var(--nv-accent) !important; color: #fff !important;
}
.card-product .tf-btn:hover, .card-product a.add_to_cart_button:hover { background: var(--nv-accent-dark) !important; border-color: var(--nv-accent-dark) !important; }
.card-product .box-icon, .card-product .hover-tooltip.box-icon {
	border-radius: var(--nv-r-pill) !important;
	background: #fff !important;
	color: var(--nv-ink) !important;
	box-shadow: 0 4px 14px -6px rgba(91, 42, 60, .35);
}
.card-product .box-icon:hover, .card-product .box-icon.active { background: var(--nv-accent) !important; color: #fff !important; }
.on-sale-item, .on-sale-wrap .on-sale-item, .badge-sale, .product-badge, .onsale, span.onsale {
	border-radius: var(--nv-r-pill) !important;
	padding: 3px 10px !important;
}
.on-sale-item.trending { background: var(--nv-ink) !important; }
.on-sale-item.new { border-color: var(--nv-pink); }

/* ---- Product page ---- */
.tf-product-media-thumbs .swiper-slide-thumb-active img { outline: 2px solid var(--nv-accent); outline-offset: -2px; }
.tf-product-info-list .stock, .tf-product-info-wrap .stock-status, .product-status-content {
	border-radius: var(--nv-r-pill) !important;
}
.page-title, .tf-page-title {
	background: #fff !important;
	background-image: none !important;
	border-bottom: 1px solid var(--nv-line);
}
.breadcrumbs a:hover, .tf-breadcrumb-list a:hover { color: var(--nv-accent) !important; }

/* ---- Fields ---- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"],
textarea, select { transition: border-color .18s var(--nv-ease), box-shadow .18s var(--nv-ease); }
input:focus, textarea:focus, select:focus {
	border-color: var(--nv-accent) !important;
	box-shadow: 0 0 0 3px var(--nv-accent-soft) !important;
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--nv-accent) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--nv-accent) !important; }

/* ---- Features / icon boxes ---- */
.tf-icon-box .icon, .tf-icon-box svg { color: var(--nv-accent); }

/* ---- Hero ---- */
/* white copy sits over packshots in the photos: a soft shadow keeps it legible on light jars */
.elementor-element-aa4c46e :is(.heading, .description, .sub-title, p) { text-shadow: 0 2px 14px rgba(40, 10, 20, .55), 0 1px 2px rgba(40, 10, 20, .35); }
.elementor-element-aa4c46e .tf-btn { background: #fff !important; border-color: #fff !important; color: var(--nv-ink) !important; }
.elementor-element-aa4c46e .tf-btn:hover { background: var(--nv-accent) !important; border-color: var(--nv-accent) !important; color: #fff !important; }

/* ---- Footer: light blush ---- */
footer.footer-default, footer.footer_background { background: var(--nv-surface) !important; color: var(--nv-text); border-top: 1px solid var(--nv-line); }
footer.footer-default :is(h2, h3, h4, .footer-heading) { color: var(--nv-ink) !important; }
footer.footer-default a, footer.footer-default .footer-info, footer.footer-default p,
footer.footer-default li, footer.footer-default .menu a { color: var(--nv-text) !important; }
footer.footer-default a:hover, footer.footer-default .menu a:hover { color: var(--nv-accent) !important; }
footer.footer-default .footer-bottom, footer.footer-default .footer-bottom-wrap,
footer.footer-default [class*="footer-bottom"] { border-color: var(--nv-line) !important; }
footer.footer-default .footer-newsletter input[type="email"] {
	background: #fff !important;
	border: 1px solid var(--nv-line) !important;
	color: var(--nv-ink) !important;
	border-radius: var(--nv-r-pill) !important;
}
footer.footer-default .footer-newsletter input::placeholder { color: var(--nv-muted); }
.footer-newsletter .subscribe-button { background: var(--nv-accent) !important; border-radius: var(--nv-r-pill) !important; }
.footer-newsletter .subscribe-button:hover { background: var(--nv-accent-dark) !important; }
footer.footer-default .footer-info .box-icon { border-color: var(--nv-pink); color: var(--nv-accent) !important; background: #fff !important; }
footer.footer-default .tf-social-icon a, footer.footer-default .social-item { color: var(--nv-ink) !important; border-color: var(--nv-pink) !important; }
footer.footer-default .tf-social-icon a:hover, footer.footer-default .social-item:hover { background: var(--nv-accent) !important; border-color: var(--nv-accent) !important; color: #fff !important; }

/* ---- Product description blocks ---- */
.nutrivit-flavor-description { color: var(--nv-text); }
.nutrivit-flavor-intro, .nutrivit-flavor-feature, .nutrivit-flavor-facts > section, .nutrivit-flavor-faq { background: var(--nv-surface); }
.nutrivit-flavor-faq details { border-color: var(--nv-pink); }
.nutrivit-flavor-faq summary::marker { color: var(--nv-accent); }

@media (prefers-reduced-motion: reduce) {
	.card-product, .card-product:hover { transform: none !important; }
}

/* ---- Slider dots (both languages): palette instead of the demo's red ring ---- */
.sw-dots .swiper-pagination-bullet::after {
	border-color: transparent var(--nv-accent) var(--nv-accent) !important;
}
/* hero: the photos are dark, so light dots and a pink ring */
.elementor-element-aa4c46e .sw-dots .swiper-pagination-bullet { background: rgba(255, 255, 255, .55) !important; }
.elementor-element-aa4c46e .sw-dots .swiper-pagination-bullet-active { background: #fff !important; }
.elementor-element-aa4c46e .sw-dots .swiper-pagination-bullet::after {
	border-color: transparent var(--nv-pink) var(--nv-pink) !important;
}

/* ---- Footer bottom bar ---- */
footer.footer-default .footer-bottom-wrap { gap: 10px 24px; align-items: center; }
footer.footer-default .footer-bottom-wrap .box-right {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
footer.footer-default .footer-bottom-wrap .box-right li { margin: 0; }
footer.footer-default .footer-bottom-wrap .box-right a { white-space: nowrap; font-size: 14px; }
@media (max-width: 991px) {
	footer.footer-default .footer-bottom-wrap { flex-direction: column; justify-content: center; text-align: center; }
	footer.footer-default .footer-bottom-wrap .content-left,
	footer.footer-default .footer-bottom-wrap .content-right { width: 100%; }
	footer.footer-default .footer-bottom-wrap .box-right { justify-content: center; }
}
/* Room under the footer for the fixed bottom bar (phone toolbar 67px, or WooForm's "اطلب الآن" bar 69px
   that covers it on product pages): one clearance only. Vineta also pads the footer itself
   (.xl-pb-70 = 70px, .footer-pb-2 = up to 197px on product pages for its own sticky add-to-cart bar,
   which WooForm replaces), which stacked up to ~280px of empty footer. */
footer#footer.footer-default.footer-pb-2 { padding-bottom: 0 !important; } /* desktop: no bottom bar on product pages */
@media (max-width: 1199px) {
	footer#footer.footer-default { padding-bottom: 0 !important; }
	footer.footer-default .footer-bottom { padding-bottom: 84px !important; }
}
/* footer accordion headings on phones: one size, one rhythm */
@media (max-width: 575px) {
	footer.footer-default :is(.footer-heading-mobile, .widget-title) {
		position: relative;
		margin: 0 !important;
		padding-block: 14px !important;
		font-size: 16px !important;
	}
	footer.footer-default .footer-col-block { border-bottom: 0 !important; }
	footer.footer-default .footer-col-block .widget { border-bottom: 1px solid var(--nv-line); }
}

/* ---- Product cards: one image ratio, equal heights, button on the baseline ---- */
.swiper-slide:has(> .card-product) { height: auto; display: flex; }
.card-product { display: flex; flex-direction: column; width: 100%; height: 100%; }
/* doubled classes: the product-grid widget sets aspect-ratio:auto !important with three classes */
.card-product.card-product .card-product-wrapper.card-product-wrapper {
	aspect-ratio: 513 / 729 !important;  /* the catalogue's portrait packshots */
	position: relative;
	height: auto !important;
	flex: none;
}
.card-product .card-product-wrapper .product-img { position: absolute; inset: 0; height: 100%; }
.card-product .card-product-wrapper img.img-product,
.card-product .card-product-wrapper img.img-hover {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.card-product .card-product-info {
	flex: 1;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	padding: 14px 14px 16px;
}
.card-product .name-product { min-height: 3em; margin: 0; font-size: 15px; }
.card-product .price-wrap { justify-content: center; margin: 0; }
.card-product .cls-btn { margin-top: auto; width: 100%; }
.card-product .cls-btn .tf-btn { width: 100% !important; justify-content: center; height: 42px; padding-inline: 12px; font-size: 14px; }
.card-product .stock-status, .card-product .in-stock {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--nv-muted) !important;
	font-size: 13px;
}
.card-product .stock-status .dot, .card-product .in-stock .dot { background: #43a06b !important; box-shadow: 0 0 0 3px rgba(67, 160, 107, .15); }
.card-product .list-product-btn .box-icon, .card-product .list-product-btn a { width: 36px; height: 36px; }
@media (max-width: 575px) {
	.card-product .card-product-info { padding: 12px 10px 14px; gap: 6px; }
	.card-product .name-product { font-size: 14px; }
	.card-product .cls-btn .tf-btn { height: 38px; font-size: 13px; }
}

/* ---- Marquees (top bar + band under the hero): seamless loop ----
   The theme prints the items 5 times in one row and slid the row by 100% of its
   *box* (61px on phones), so it crawled and then jumped. The row is now as wide as
   its content and slides by exactly one copy (20%). Longhands keep :hover pausing. */
.tf-topbar .marquee-wrapper,
.marquee-sale .marquee-wrapper {
	width: max-content !important;
	animation-name: nv-marquee !important;
	animation-timing-function: linear !important;
	animation-iteration-count: infinite !important;
	animation-duration: 30s !important;
	will-change: transform;
}
.marquee-sale .marquee-wrapper { animation-duration: 40s !important; }
@keyframes nv-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-20%); }
}
.tf-topbar .topbar-center.overflow-hidden { flex: 1 1 auto; min-width: 0; }
.tf-topbar .marquee-child-item p { margin: 0; white-space: nowrap; }
@media (max-width: 767px) {
	/* phones: the shipping promises get the whole bar; social links live in the footer */
	.tf-topbar .topbar-left { display: none !important; }
	.tf-topbar .topbar-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.tf-topbar .marquee-wrapper, .marquee-sale .marquee-wrapper { animation: none !important; }
}

/* ---- Language dropdown in the top bar: readable options (the bar's links are white) ---- */
.tf-topbar .dropdown-menu:not(.inner) {
	min-width: 150px;
	padding: 6px !important;
	border: 1px solid var(--nv-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: 0 16px 34px -18px rgba(91, 42, 60, .45) !important;
}
/* Bootstrap-select nests a second ".dropdown-menu.inner" list inside the menu: it must not be a second box. */
.tf-topbar .dropdown-menu .dropdown-menu.inner {
	position: static !important;
	display: block;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
}
.tf-topbar .dropdown-menu .dropdown-menu.inner::before,
.tf-topbar .dropdown-menu .dropdown-menu.inner::after,
.tf-topbar .bootstrap-select > .dropdown-menu::before,
.tf-topbar .bootstrap-select > .dropdown-menu::after { display: none !important; } /* theme's arrow sat away from the toggle */
.tf-topbar .dropdown-menu .dropdown-menu.inner li + li { margin-top: 2px; }
.tf-topbar .dropdown-menu a,
.tf-topbar .dropdown-menu .dropdown-item,
.tf-topbar .dropdown-menu .text,
.tf-topbar .dropdown-menu span {
	color: var(--nv-ink) !important;
}
.tf-topbar .dropdown-menu .dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 12px !important;
	border-radius: 8px;
	background: transparent !important;
	text-align: start;
	line-height: 1.4;
	white-space: nowrap;
}
.tf-topbar .dropdown-menu .dropdown-item::before,
.tf-topbar .dropdown-menu .dropdown-item::after { display: none !important; }
.tf-topbar .dropdown-menu .dropdown-item:hover,
.tf-topbar .dropdown-menu .dropdown-item:focus { background: var(--nv-accent-soft) !important; color: var(--nv-accent) !important; }
.tf-topbar .dropdown-menu .selected .dropdown-item,
.tf-topbar .dropdown-menu .dropdown-item.active { background: var(--nv-blush) !important; color: var(--nv-ink) !important; font-weight: 600; }
.tf-topbar .dropdown-menu .dropdown-item:hover * { color: var(--nv-accent) !important; }
/* the theme's generated CSS paints the active option white with
   `.tf-topbar .image-select.style-default > .dropdown-menu a.active` */
.tf-topbar .image-select.style-default > .dropdown-menu a.dropdown-item.active,
.tf-topbar .image-select.style-default > .dropdown-menu a.dropdown-item.active * { color: var(--nv-ink) !important; }

/* ---- Price filter: "129 DH" / "129 درهم" like the rest of the store (WooCommerce: number, space, symbol) ---- */
.widget-price .price-val::before { content: none !important; }
.widget-price .price-val::after { content: "\00a0" attr(data-currency); }
.widget-price .price-val { unicode-bidi: isolate; }
.widget-price .price-box { gap: 6px; color: var(--nv-ink); font-weight: 600; }

/* ---- Product page tabs on phones: wrap instead of running off-screen ("Informations complémentaires") ---- */
@media (max-width: 767px) {
	.tab-product-desc .wc-tabs.menu-tab {
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 18px;
		overflow: visible;
	}
	.tab-product-desc .wc-tabs.menu-tab .nav-tab-item a { white-space: nowrap; font-size: 15px; }
}

/* ---- Vineta's text-link "buttons" (.btn-line / .btn-line-dark, e.g. "Écrivez-nous sur WhatsApp"):
   links with an underline, not pills — keep them out of the filled-button hover ---- */
.tf-btn.btn-line-dark, .tf-btn.btn-line {
	height: auto;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--nv-accent) !important;
	gap: 6px;
}
.tf-btn.btn-line-dark:hover, .tf-btn.btn-line:hover,
.tf-btn.btn-line-dark:focus-visible, .tf-btn.btn-line:focus-visible {
	background: transparent !important;
	box-shadow: none !important;
	color: var(--nv-accent-dark) !important;
}
.tf-btn.btn-line-dark::after, .tf-btn.btn-line::after { background-color: currentColor !important; }
.tf-btn.btn-line-dark .text-sm, .tf-btn.btn-line .text-sm { color: inherit !important; font-weight: 600; }
