/**
 * WooLab base styles — resets, typography, buttons, utility classes.
 * Color/typography values are read from CSS custom properties generated
 * by codelabit_dynamic_css() (see inc/template-tags.php) from WooLab
 * Options > Styling/Colors + Typography, with safe fallbacks here so the
 * theme still looks correct before that inline block loads.
 */

:root {
	/* CodelabIT brand — magenta/pink for CTAs and active states, navy for
	   headings/dark UI, matching the supplied logo. */
	--ron-color-primary: #E00F7A;
	--ron-color-secondary: #2B3990;
	/* Buttons: navy at rest, pink on hover, always with white text. */
	--ron-color-button: #2B3990;
	--ron-color-button-hover: #E00F7A;
	--ron-color-link-hover: #2B3990;
	--ron-font-heading: 'Kanit', sans-serif;
	--ron-font-body: 'Saira', sans-serif;
	--ron-font-size-base: 16px;
	--ron-border-radius: 6px;
	--ron-radius-pill: 999px;
	--ron-radius-card: 14px;
	--ron-container-width: 1280px;
	--ron-gutter: 20px;
	/* Modern elevation tokens — used by cards (product grid, widgets) and
	   interactive hover states so the whole theme shares one consistent
	   "lift" language instead of ad-hoc shadow values per component. */
	--ron-shadow-sm: 0 2px 10px rgba(20, 20, 43, 0.06);
	--ron-shadow-md: 0 14px 30px rgba(20, 20, 43, 0.12);
	--ron-shadow-lg: 0 24px 48px rgba(20, 20, 43, 0.18);
	--ron-transition: 0.25s ease;
}

/* Round J ("after updated showing scroll to the bottom Y axis scroll bar,
   its need to fix" — confirmed via a screenshot to actually be a stray
   HORIZONTAL scrollbar at the very bottom of the browser window, not a
   vertical one). Root cause, confirmed live: the homepage's two full-bleed
   sections (the hero Image Slider and the "WE BUILD DIGITAL SOLUTIONS"
   banner) use Elementor's own built-in "Stretch Section" feature, which
   Elementor implements by measuring the page's own width in JavaScript and
   writing an explicit `width`/`left` inline style onto the section — NOT a
   pure-CSS `100vw` trick, so this isn't something fixable by editing that
   section's CSS directly. That JS-measured width is correct at the exact
   moment it runs, but Elementor only ever re-measures it on a real browser
   `resize` event; it never re-checks after the page's own CONTENT grows
   taller (e.g. once slow-loading hero images finish and the page newly
   needs a vertical scrollbar it didn't have a moment earlier) — and a
   newly-appeared vertical scrollbar narrows the visible content area by
   its own width (commonly 15-17px) without the window itself resizing, so
   Elementor's cached stretch width stays exactly that many pixels too
   wide, which is enough to force a persistent, browser-native horizontal
   scrollbar. Nothing in this theme or the Ron Elements plugin uses raw
   `100vw`/large negative margins (checked) — this is Elementor core's own
   stretch-width timing gap. Fixed the standard, low-risk way rather than
   chasing Elementor's own internal timing: since nothing on this site
   legitimately needs horizontal page scrolling, clip any stray overflow
   (from this or any other future few-pixel mismatch) at the document
   level, so it can never surface as a visible scrollbar. */
html {
	overflow-x: hidden;
}

body {
	font-family: var(--ron-font-body);
	font-size: var(--ron-font-size-base);
	line-height: 1.6;
	color: var(--ron-color-secondary);
	background: #fff;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ron-font-heading);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.5em;
	color: var(--ron-color-secondary);
}

a {
	color: var(--ron-color-primary);
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--ron-color-link-hover);
}

p {
	margin: 0 0 1.2em;
}

.ron-container {
	max-width: var(--ron-container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ron-gutter);
	padding-right: var(--ron-gutter);
}

.ron-layout-boxed .ron-site-wrapper {
	max-width: var(--ron-container-width);
	margin: 0 auto;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* Buttons — pill-shaped with a trailing arrow, matching the CodelabIT
   "Add to Cart →" reference sample. Navy at rest, pink on hover, with
   guaranteed white text in BOTH states (background and text color are
   set explicitly on every rule below, not just inherited, so a button
   never ends up with a colored background and dark/default text). The
   arrow is a real CSS character (not an icon font) so it never depends
   on Elementor/icon assets being loaded, and is excluded from
   icon-only/circular buttons via the "Icon-only" block at the end.
   `.elementor-button` (Elementor's own native Button widget) gets the
   same color treatment so "every button on the site" stays consistent,
   without touching its shape/padding — a per-widget color set inside
   Elementor itself still overrides this, since Elementor's own inline
   style output has higher specificity. */

.ron-btn,
button.ron-btn,
input[type="submit"].ron-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button,
.elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ron-color-button);
	background-color: var(--ron-color-button);
	color: #fff;
	border: none;
	border-radius: var(--ron-radius-pill);
	padding: 12px 26px;
	font-weight: 600;
	font-size: 0.95em;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ron-btn::after,
.woocommerce a.button::after,
.woocommerce button.button::after,
.woocommerce #respond input#submit::after,
.woocommerce input.button::after {
	content: '\2192';
	font-weight: 700;
	transition: transform 0.2s ease;
}

.ron-btn:hover,
.ron-btn:focus,
.woocommerce a.button:hover,
.woocommerce a.button:focus,
.woocommerce button.button:hover,
.woocommerce button.button:focus,
.woocommerce #respond input#submit:hover,
.woocommerce #respond input#submit:focus,
.woocommerce input.button:hover,
.woocommerce input.button:focus,
.elementor-button:hover,
.elementor-button:focus {
	background: var(--ron-color-button-hover);
	background-color: var(--ron-color-button-hover);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(224, 15, 122, 0.28);
}

.ron-btn:hover::after,
.woocommerce a.button:hover::after,
.woocommerce button.button:hover::after,
.woocommerce #respond input#submit:hover::after,
.woocommerce input.button:hover::after {
	transform: translateX(3px);
}

.ron-btn:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce #respond input#submit:active,
.woocommerce input.button:active,
.elementor-button:active {
	transform: translateY(0);
	box-shadow: none;
}

.ron-btn--outline {
	background: transparent;
	background-color: transparent;
	color: var(--ron-color-button);
	border: 2px solid var(--ron-color-button);
}

.ron-btn--outline:hover {
	background: var(--ron-color-button-hover);
	background-color: var(--ron-color-button-hover);
	border-color: var(--ron-color-button-hover);
	color: #fff;
	box-shadow: 0 10px 22px rgba(224, 15, 122, 0.22);
}

/* Icon-only / circular buttons (wishlist, compare, quantity steppers, view
   toggles, mobile nav) never get the pill shape or trailing arrow. */
.ron-wishlist-btn::after,
.ron-compare-btn::after,
.ron-shop-view-btn::after,
.quantity .qty::after {
	content: none;
}

/* Preloader */

body.ron-preloader-on .ron-preloader {
	position: fixed;
	inset: 0;
	background: #fff;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.ron-preloader-on.ron-preloader-done .ron-preloader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.ron-preloader-spinner {
	width: 42px;
	height: 42px;
	border: 4px solid #eee;
	border-top-color: var(--ron-color-primary);
	border-radius: 50%;
	animation: ron-spin 0.8s linear infinite;
}

@keyframes ron-spin {
	to { transform: rotate(360deg); }
}

/* Breadcrumbs — a small branded pill/chip rather than a plain gray "Home /
   Page" text line, using the same navy/pink palette as the rest of the
   site: link crumbs in brand navy (pink on hover), the current page muted
   since it isn't clickable, and a chevron (border-trick arrow) instead of
   a literal "/" separator. */

.ron-breadcrumbs {
	display: inline-flex;
	padding: 9px 16px;
	margin-bottom: 4px;
	font-size: 0.85em;
	background: #f6f5f9;
	border-radius: var(--ron-radius-pill, 999px);
}

.ron-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
}

.ron-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ron-breadcrumbs a {
	color: var(--ron-color-secondary);
	font-weight: 600;
	transition: color var(--ron-transition);
}

.ron-breadcrumbs a:hover {
	color: var(--ron-color-primary);
}

.ron-breadcrumbs li[aria-current="page"] {
	color: #8b8ba3;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 40ch;
}

.ron-breadcrumbs li:not(:last-child)::after {
	content: '';
	flex: 0 0 auto;
	width: 5px;
	height: 5px;
	border-right: 1.5px solid #c7c5d6;
	border-bottom: 1.5px solid #c7c5d6;
	transform: rotate(-45deg);
}

/* Social links */

.ron-social-links {
	display: flex;
	gap: 10px;
}

.ron-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	color: var(--ron-color-secondary);
	transition: transform var(--ron-transition), background var(--ron-transition), color var(--ron-transition);
}

.ron-social-link:hover {
	background: var(--ron-color-primary);
	color: #fff;
	transform: translateY(-3px);
}

/* Icons — minimal inline-SVG-free icon set via CSS masks would bloat this
   file; WooLab ships a small dashicon-compatible subset instead so no
   icon font/library dependency is required. */

.ron-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
}

/* Utility */

.ron-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ron-hidden { display: none !important; }

@media (max-width: 782px) {
	.ron-container { padding-left: 16px; padding-right: 16px; }
}
