/* Mobile fixes (louloudiagiagenisi.gr, 2026-09-23).
   Site-wide audit of pages, blog and shop at phone width.
   Loaded last by novamira-sandbox/nvm-mobile-fixes.php. */

/* ---- Product cards: no stray shadow box around title/price ---------- */
/* site-style.css gives every .content-bg:not(.loop-entry) the content-card
   shadow; the card's inner .product-details carries that class too. */
ul.products li.nvm-card .product-details.content-bg {
	box-shadow: none !important;
	border-radius: 0 !important;
	background: transparent !important;
}

/* ---- Homepage pill marquee (Elementor HTML widget 58f90be) ---------- */
/* The widget was a 0-width flex item, so the marquee's 100vw breakout
   (margin-left: calc(50% - 50vw)) was measured from the wrong point and
   the strip ended mid-screen. Make the widget span its row. */
.elementor-element-58f90be {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

/* ---- Gravity Forms (plugin CSS is disabled on this site) ------------ */
.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield--type-honeypot {
	display: none !important;
}

.gform_wrapper ul.gform_fields,
.gform_wrapper ul.gfield_checkbox,
.gform_wrapper ul.gfield_radio {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gform_wrapper li.gfield,
.gform_wrapper ul.gfield_checkbox li {
	list-style: none !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.gform_wrapper li.gfield::marker,
.gform_wrapper ul.gfield_checkbox li::marker { content: none; }

.gform_wrapper .gfield_checkbox li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.gform_wrapper .gfield_checkbox input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #E8548C;
}

.gform_wrapper .gfield_checkbox label { font-weight: 400 !important; }

/* ---- Area directory (Περιοχές Αποστολής): tappable letter pills ----- */
.name_directory_index {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 1.5rem;
	font-size: 0;
}

.name_directory_index a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #F3D2DF;
	border-radius: 999px;
	background: #FFFFFF;
	color: #C63D71 !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}

.name_directory_index a:hover,
.name_directory_index a:focus-visible,
.name_directory_index a.name_directory_active {
	background: #E8548C;
	border-color: #E8548C;
	color: #FFFFFF !important;
}

/* ---- Mobile drawer menu: brand colours instead of plain black ------- */
#mobile-drawer .drawer-inner {
	background: linear-gradient(165deg, #FFF3F8 0%, #FFFFFF 48%, #EEF5FF 100%) !important;
	color: #241D22;
}

#mobile-drawer .drawer-header .drawer-toggle,
#mobile-drawer .drawer-header .drawer-toggle:hover {
	color: #C63D71 !important;
}

#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a {
	font-family: 'IBM Plex Sans', 'Figtree', system-ui, sans-serif !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	color: #241D22 !important;
	background: transparent !important;
}

#mobile-drawer .mobile-navigation ul li.current-menu-item > a,
#mobile-drawer .mobile-navigation ul li > a:hover,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a:hover {
	color: #E8548C !important;
}

#mobile-drawer .mobile-navigation ul li,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap,
#mobile-drawer .mobile-navigation ul li:not(.menu-item-has-children) a {
	border-color: #F3D2DF !important;
}

#mobile-drawer .mobile-navigation .drawer-sub-toggle {
	color: #C63D71 !important;
	border-color: #F3D2DF !important;
	background: transparent !important;
}

#mobile-drawer .mobile-navigation ul ul {
	background: rgba(251, 228, 236, .45);
	border-radius: 14px;
}

#mobile-drawer .mobile-navigation ul ul li > a {
	font-size: 15.5px !important;
	font-weight: 500 !important;
}

@media (max-width: 1024px) {
	/* ---- Mobile header: one compact phone row --------------------------- */
	#mobile-header .site-top-header-wrap .site-header-row {
		min-height: 0 !important;
		padding: 8px 0;
	}

	#mobile-header .site-top-header-wrap .site-container {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	#mobile-header .site-top-header-wrap .site-header-section-left {
		flex: 1 1 auto;
		justify-content: center;
	}

	#mobile-header .kadence-header-phone-widget {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		gap: 8px;
	}

	#mobile-header .kadence-header-phone-widget a.button {
		display: inline-flex !important;
		align-items: center;
		gap: 6px;
		margin: 0 !important;
		padding: 7px 13px !important;
		background: rgba(255, 255, 255, .95) !important;
		color: #C63D71 !important;
		font-size: 14px !important;
		font-weight: 700;
		line-height: 1.1;
		white-space: nowrap;
		box-shadow: 0 4px 12px -6px rgba(36, 29, 34, .45);
	}

	#mobile-header .kadence-header-phone-widget a.button::before {
		content: "";
		flex: none;
		width: 14px;
		height: 14px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	/* Logo row: 80px min-height is more than the logo needs. */
	#mobile-header .site-main-header-wrap .site-header-row {
		min-height: 66px !important;
	}
}

@media (max-width: 600px) {
	/* "ΑΘΗΝΑ · ΑΝΘΟΠΩΛΕΙΟ" label does not fit next to the phones. */
	#mobile-header .site-top-header-wrap .site-header-section-right {
		display: none !important;
	}
}

@media (max-width: 767px) {
	/* ---- Page / post title box ------------------------------------------ */
	body:not(.home) .entry-hero .entry-header {
		padding: 16px 16px !important;
		min-height: 0 !important;
	}

	body:not(.home) .entry-hero .entry-hero-container-inner,
	body:not(.home) .entry-hero .hero-container {
		min-height: 0 !important;
	}

	body:not(.home) h1.entry-title,
	body:not(.home) .entry-hero h1,
	body:not(.home) .page-title h1 {
		font-size: clamp(24px, 7vw, 28px) !important;
		line-height: 1.2 !important;
		overflow-wrap: anywhere;
	}

	.single-post .entry-content h2 { font-size: 22px !important; line-height: 1.25 !important; }
	.single-post .entry-content h3 { font-size: 19px !important; line-height: 1.3 !important; }

	/* ---- Product grids: 2 per row (shop, categories, in-page lists) ----- */
	ul.products,
	.woocommerce ul.products,
	.woocommerce[class*="columns-"] ul.products {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}

	ul.products li.product {
		width: auto !important;
		max-width: none !important;
		min-width: 0;
		float: none !important;
	}

	ul.products li.product.nvm-card { padding: 8px !important; border-radius: 18px !important; gap: 7px; }
	ul.products li.nvm-card .woocommerce-loop-image-link,
	ul.products li.nvm-card .woocommerce-loop-image-link img { border-radius: 12px; }
	ul.products li.nvm-card .product-details { gap: 7px; }
	.nvm-card-tag { padding: 4px 10px; font-size: 11.5px; align-self: flex-start; }
	ul.products li.nvm-card .woocommerce-loop-product__title { font-size: 13.5px !important; overflow-wrap: anywhere; }
	ul.products li.nvm-card .price { font-size: 15.5px !important; gap: 5px; padding: 0 2px !important; }
	ul.products li.nvm-card .price del { font-size: 12px; }
	ul.products li.nvm-card .nvm-card-btn {
		min-height: 38px;
		padding: 8px 8px !important;
		font-size: 12.5px !important;
		line-height: 1.15 !important;
		white-space: normal !important;
		text-align: center;
	}

	html body ul.products li.product.nvm-card .onsale {
		top: 6px !important;
		left: 6px !important;
		padding: 5px 9px !important;
		font-size: 11px !important;
	}

	/* ---- Floating widgets: keep them off the text ----------------------- */
	.gt_switcher_wrapper {
		right: auto !important;
		left: 10px !important;
		bottom: 10px !important;
		transform: scale(.82);
		transform-origin: left bottom;
	}

	body { padding-bottom: 48px; }
}
