/* ==========================================================================
   eczaneetiketi.com - mobile layout fixes for the trizzy template
   Loaded last from temp.php. Only applies to screens up to 767px wide,
   so the desktop layout is unchanged.
   ========================================================================== */

@media only screen and (max-width: 767px) {

	/* ---------- General spacing ---------- */
	body.boxed #wrapper { box-shadow: none; }
	.container .column,
	.container .columns { margin-bottom: 0; }

	.headline {
		font-size: 17px;
		line-height: 24px;
		letter-spacing: .3px;
	}
	.line { margin-top: 11px; }

	/* ---------- Top bar: one short line ---------- */
	#top-bar { padding: 6px 0; }
	#top-bar .top-bar-menu { text-align: center; float: none; margin: 0; }
	#top-bar .top-bar-menu li { font-size: 12px; margin: 0 6px; }
	#top-bar .top-bar-menu li:nth-child(2) { display: none; } /* e-mail, still in footer */
	#top-bar .social-icons { display: none; }

	/* ---------- Header: logo, cart, search ---------- */
	#logo { margin: 14px 0 4px 0; text-align: center; }
	#logo h1 { margin: 0; line-height: 0; }
	#logo a img { max-height: 54px; width: auto; display: inline-block; }

	#cart,
	.top-search { margin: 12px 0 0 0; }
	#cart { width: 42%; }
	.top-search { width: 56%; }
	#cart .cart-btn a.button { width: 100%; box-sizing: border-box; text-align: center; }

	a.menu-trigger { margin: 10px 0 14px 0; }

	/* ---------- Slider ---------- */
	.home-slider { margin-bottom: 18px; }
	.home-slider .bx-wrapper { margin-bottom: 0; box-shadow: none; border: 0; }
	.home-slider .bx-wrapper .bx-pager { bottom: 6px; padding-top: 0; }

	/* ---------- Three featured boxes: compact cards ---------- */
	a.img-caption { margin-bottom: 10px; display: block; }
	a.img-caption figure img {
		height: 120px;
		width: 100%;
		object-fit: cover;
	}
	a.img-caption figcaption { padding: 10px 14px; }
	a.img-caption figcaption h3 { font-size: 14px; line-height: 20px; }
	a.img-caption figcaption span { display: none; }

	/* ---------- "Son Eklenenler": 2-column grid instead of a 1-item slider ---------- */
	#new-arrivals .showbiz-navigation { display: none; }
	#new-arrivals .showbiz,
	#new-arrivals .overflowholder { height: auto !important; overflow: visible !important; }
	#new-arrivals .overflowholder > ul {
		width: auto !important;
		height: auto !important;
		transform: none !important;
		left: 0 !important;
		position: static !important;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	#new-arrivals .overflowholder > ul > li {
		width: auto !important;
		margin: 0 !important;
		float: none !important;
		position: static !important;
		min-width: 0;
	}
	/* show the newest 8 only - the rest stay reachable through the menu */
	#new-arrivals .overflowholder > ul > li:nth-child(n+9) { display: none; }

	#new-arrivals figure.product { margin: 0; }
	#new-arrivals .mediaholder { height: auto !important; }
	#new-arrivals .mediaholder .cover { height: 100%; }
	#new-arrivals .mediaholder img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
	#new-arrivals .mediaholder .product-button { display: none; }
	#new-arrivals figure.product section { padding: 8px 6px 10px; }
	#new-arrivals .product-category { font-size: 10px; line-height: 14px; }
	#new-arrivals figure.product h5 {
		font-size: 13px;
		line-height: 17px;
		height: 34px;
		overflow: hidden;
		margin: 3px 0 4px;
	}
	#new-arrivals .product-price { font-size: 14px; }

	/* ---------- Banner between the sections ---------- */
	.parallax-banner { height: 90px !important; margin: 20px 0 !important; background-color: #3a3a3a; overflow: hidden; }
	.parallax-title { top: 22px !important; font-size: 20px !important; line-height: 26px !important; }
	.parallax-title span { font-size: 13px !important; }

	/* ---------- Small lists (Çok Satanlar / Seçtiklerimiz / İndirimde) ---------- */
	.margin-bottom-25 > .one-third.column { margin-bottom: 18px; }
	ul.product-list li { margin: 10px 0 0 0; }
	ul.product-list li a {
		display: flex;
		align-items: center;
		gap: 12px;
	}
	.product-list img {
		float: none;
		width: 72px;
		height: 72px;
		object-fit: cover;
		padding: 0;
		flex: 0 0 72px;
		border-radius: 3px;
	}
	.product-list-desc { top: 0; font-size: 14px; line-height: 19px; display: block; }
	.product-list-desc i { line-height: 22px; font-size: 14px; }

	/* ---------- Footer ---------- */
	#footer { padding: 30px 0 10px 0; }
	#footer .four.columns { margin-bottom: 22px; }
	#footer .headline.footer { font-size: 14px; letter-spacing: 0; }
	#footer p { margin-bottom: 10px; }
	#footer ul.footer-links li { padding: 3px 0; font-size: 13px; }
	#footer-bottom { padding: 14px 0; text-align: center; }
	#footer-bottom .columns { float: none; }
	#footer-bottom ul.payment-icons { float: none; text-align: center; margin: 10px 0 0 0; }
	#footer-bottom ul.payment-icons li { float: none; display: inline-block; }
}

@media only screen and (max-width: 479px) {
	/* the two footer link lists side by side */
	#footer .container > .four.columns:nth-child(2),
	#footer .container > .four.columns:nth-child(3) {
		width: 48%;
		float: left;
		margin-right: 4%;
	}
	#footer .container > .four.columns:nth-child(3) { margin-right: 0; }
	#footer .container > .four.columns:nth-child(4) { clear: both; }
}
