/*
Theme Name: Onlinea
Theme URI: https://apoteka-online.rs
Author: Onlinea
Author URI: https://onlinea.rs
Description: Lightweight WooCommerce theme for Onlinea / apoteka-online.rs. Storefront chrome is owned by OAC — this theme is a clean shell without Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: onlinea
Tags: e-commerce, woocommerce, custom-logo, translation-ready
*/

/* Theme CSS is intentionally minimal — OAC storefront assets own the design.
   Base tokens below only catch elements OAC does not explicitly style,
   so nothing ever renders with default browser blue/system look. */

:root {
	--onlinea-ink: #3d3545;
	--onlinea-muted: #7a7080;
	--onlinea-primary: #5e5269;
	--onlinea-primary-dark: #4a4054;
	--onlinea-accent: #c19b89;
	--onlinea-border: #e6ded8;
}

/* Global border-box — without this, any `width:100%` + padding element
   overflows the mobile viewport and causes sideways scrolling. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Safety net for stray overflow; `clip` (unlike `hidden`) keeps
   position: sticky working because it creates no scroll container. */
html {
	overflow-x: clip;
}

body {
	color: var(--onlinea-ink);
}

a {
	color: var(--onlinea-primary-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--onlinea-primary);
}

/* Plain page / post content (info pages, blog) */
.entry-content {
	line-height: 1.7;
}

.entry-content h2,
.entry-content h3 {
	margin: 1.6em 0 0.5em;
	line-height: 1.25;
	color: var(--onlinea-ink);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content a {
	font-weight: 600;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #ffffff;
	clip: auto !important;
	clip-path: none;
	color: #1f303d;
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.onlinea-payspot-icons{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-left:8px;vertical-align:middle}
.onlinea-payspot-icons__img,.woocommerce-checkout #payment ul.payment_methods li .onlinea-payspot-icons img{display:inline-block!important;height:22px!important;width:auto!important;max-width:52px!important;margin:0!important;object-fit:contain;vertical-align:middle}
@media (max-width:640px){.onlinea-payspot-icons__img,.woocommerce-checkout #payment ul.payment_methods li .onlinea-payspot-icons img{height:18px!important;max-width:42px!important}}
