/* ==========================================================================
   Emark style (Customizer → Sala theme → Header → Site style → Emark)
   Loaded after main.css. Borrows the Emark site's shapes and type
   (github.com/chari-dev/emark): Manrope font, pill buttons, soft shadow cards,
   frosted header, tighter bolder headings, scroll reveal.
   All colours stay the Sala ones from main.css (Sala blue buttons, navy bar, red sale).
   ========================================================================== */

:root {
	--r-sm: 10px;
	--r: 20px;
	--r-lg: 24px;
	--font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Sinhala", sans-serif;
	/* Emark's card treatment: soft drop shadow plus a faint hairline ring instead of a border */
	--card-shadow: 0 22px 48px -24px rgba(16, 24, 40, .28), inset 0 0 0 1px rgba(16, 24, 40, .055);
	--card-shadow-hover: 0 28px 56px -22px rgba(16, 24, 40, .34), inset 0 0 0 1px rgba(16, 24, 40, .07);
	--shadow: var(--card-shadow);
	--shadow-sm: inset 0 0 0 1px rgba(16, 24, 40, .06);
	--ease: cubic-bezier(.22, 1, .36, 1);
}

body { font-family: var(--font); letter-spacing: -0.005em; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; }
.kicker { font-weight: 700; font-size: 12.5px; letter-spacing: 0; }

/* Buttons: pills with a soft shadow in the Sala blue */
.btn, .button, button.button, a.button, input.button, .wp-element-button, .wp-block-button__link, .woocommerce #respond input#submit {
	border-radius: 999px; font-weight: 600; letter-spacing: -0.01em;
	transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:not(.btn-ghost):not(.btn-light), .button.alt, .single_add_to_cart_button, .checkout-button, #place_order {
	box-shadow: 0 14px 30px -14px rgba(16, 92, 168, .55);
}
.btn:hover, .button:hover { transform: translateY(-1px); }
.icon-btn { border-radius: 999px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], select, textarea, .select2-container .select2-selection--single {
	border-radius: 14px;
}
.badge { border-radius: 999px; padding: 3px 9px; }

/* Header: frosted white like the Emark navbar */
.masthead { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); border-bottom-color: transparent; }
.masthead.is-scrolled { box-shadow: 0 1px 0 0 var(--line); }
/* Search: one clean pill. Light grey at rest, white with a blue ring when typing, round blue button */
.search-form {
	height: 46px; border: 1px solid transparent; border-radius: 999px; background: var(--surface); overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .06); transition: background .15s, box-shadow .15s;
}
.search-form:hover { background: #eef1f5; }
.search-form:focus-within { background: #fff; border-color: transparent; box-shadow: 0 0 0 1px var(--brand), 0 0 0 5px rgba(16, 92, 168, .12); }
.search-form .search-cat {
	height: 100%; min-height: 0; width: auto; max-width: 170px; margin: 0; padding: 0 30px 0 18px; border: 0; border-right: 1px solid var(--line-2);
	border-radius: 0; background-color: transparent; background-position: right 10px center; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: none;
}
.search-form .search-input {
	height: 100%; min-height: 0; flex: 1; min-width: 0; margin: 0; padding: 0 16px; border: 0; border-radius: 0;
	background: transparent; box-shadow: none; color: var(--ink); font-size: 15px; font-weight: 500;
}
.search-form .search-input::placeholder { color: var(--muted); font-weight: 500; }
.search-form .search-input:focus { border: 0; box-shadow: none; }
.search-form .search-go {
	flex: none; align-self: center; height: 38px; min-width: 38px; margin: 0 4px 0 0; padding: 0 18px; border: 0; border-radius: 999px;
	background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; gap: 6px; box-shadow: 0 8px 18px -10px rgba(16, 92, 168, .7);
}
.search-form .search-go:hover { background: var(--brand-ink); }
.search-form .search-go .icon { width: 17px; height: 17px; }
.suggest { border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .3), inset 0 0 0 1px rgba(16, 24, 40, .06); border: 0; }
.act { border-radius: 999px; }
.act-text strong { font-weight: 700; }
.navbar { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); }
.allcat { border-radius: 999px; padding: 9px 18px; }
.nav-list > li > a { border-radius: 999px; font-size: 14px; font-weight: 600; }
.nav-list .sub-menu { border-radius: 18px; border: 0; box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .3), inset 0 0 0 1px rgba(16, 24, 40, .06); }
.mega { border-radius: 0 0 24px 24px; border-bottom: 0; box-shadow: 0 40px 60px -30px rgba(16, 24, 40, .35); }

/* Cards everywhere: no hard border, soft shadow ring, 20px corners */
.card, .quick-card, .tile, .brand-card, .cat-card, .post-card, .contact-cards a, .contact-cards li > div, .help-links a,
.form-card, .contact-offices, .why, .trust ul, .filters, .cart_totals, .account-nav, .woocommerce-MyAccount-content,
body:not(.wc3s) .checkout-content #customer_details, body:not(.wc3s) .checkout-content #order_review, .woocommerce-order, .empty-state, .nf, .cat-rail,
.account-content #customer_login > div, .shop_table, .split-call, .account-cards a, .last-order, .pdp-assure, .sticky-atc-info img {
	border: 0; box-shadow: var(--card-shadow);
}
.card, .quick-card, .tile, .brand-card, .cat-card, .post-card, .why, .form-card, .contact-offices, .cat-rail, .empty-state, .nf { border-radius: var(--r); }
.card:hover, .tile:hover, .brand-card:hover, .cat-card:hover, .contact-cards a:hover, .help-links a:hover, .account-cards a:hover, .quick-card:hover {
	box-shadow: var(--card-shadow-hover); transform: translateY(-2px); border-color: transparent;
}
.card { transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.card-title { font-weight: 700; letter-spacing: -0.015em; }
.card-cat { font-weight: 600; }
.price { letter-spacing: -0.02em; font-weight: 800; }

/* Home */
.hero { padding-top: 20px; }
.slider { border-radius: var(--r-lg); box-shadow: var(--card-shadow); }
.cat-rail li > a { border-radius: 12px; font-weight: 600; }
.cat-fly { border: 0; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .3), inset 0 0 0 1px rgba(16, 24, 40, .06); }
.quick-card { border-radius: var(--r); }
.quick-icon { border-radius: 999px; }
.hero-intro h1 { letter-spacing: -0.02em; }
.trust ul { border-radius: var(--r); padding: 20px 8px; }
.sec { margin-top: 56px; }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.034em; line-height: 1.07; }
.sec-head p { font-size: 15px; }
.link-more { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; }
.link-more:hover { text-decoration: none; background: var(--surface); }
.tile-name { font-weight: 700; letter-spacing: -0.01em; }
.rail-btn { border: 0; box-shadow: var(--card-shadow); }
.duo-item { border-radius: var(--r-lg); box-shadow: var(--card-shadow); }
.pill { border-radius: 999px; }
.tabs [role="tab"] { font-weight: 600; }
.biz { border-radius: var(--r-lg); box-shadow: 0 30px 60px -28px rgba(16, 24, 40, .5); }
.biz h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.034em; line-height: 1.07; }
.why { padding: 48px; }
.why h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.036em; line-height: 1.05; }
.stats li { border-radius: 18px; }
.stats b { letter-spacing: -0.04em; }

/* Shop and product pages */
.shop-hero, .page-hero { border-bottom: 0; }
.shop-hero .page-title, .page-hero .page-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.034em; line-height: 1.07; }
.shop-banner { border-radius: var(--r-lg); }
.shop-layout { padding-top: 8px; }
.filters { border-radius: var(--r); }
.filter-cats a { border-radius: 10px; }
.page-numbers li > *, .woocommerce-pagination .page-numbers li > * { border-radius: 999px; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child { border: 0; border-radius: var(--r-lg); box-shadow: var(--card-shadow); }
.flex-control-thumbs img { border-radius: 14px; }
.summary .product_title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.034em; line-height: 1.08; }
.summary > [class*="price-installments"] { border-radius: 999px; padding: 8px 16px; }
.qty-stepper { border-radius: 999px; }
form.cart .single_add_to_cart_button, form.cart .buy-now-button { border-radius: 999px; }
.pdp-assure { border-radius: var(--r); box-shadow: none; }
.pdp-jump { background: rgba(255, 255, 255, .88); }
#reviews .comment-text, #review_form_wrapper { border-radius: var(--r); }

/* Messages */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 16px; }

/* Scroll reveal, as on the Emark site (main.js adds the classes; motion-sensitive visitors get none) */
html.reveal-ready [data-reveal] { opacity: 0; }
html.reveal-ready [data-reveal].is-revealed { animation: sala-rise .8s var(--ease) both; animation-delay: var(--reveal-delay, 0s); }
@keyframes sala-rise {
	from { opacity: 0; transform: translateY(28px); filter: blur(12px); }
	to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
	html.reveal-ready [data-reveal] { opacity: 1; }
	html.reveal-ready [data-reveal].is-revealed { animation: none; }
}

@media (max-width: 720px) {
	.sec { margin-top: 36px; }
	.why { padding: 28px 22px; }
	.search-form { height: 44px; }
	.search-form .search-go { height: 36px; width: 36px; padding: 0; justify-content: center; margin-right: 4px; }
	.search-form .search-input { padding: 0 14px; font-size: 16px; }
}

/* Category tiles sit in a scroller, which cuts off big shadows; keep theirs short */
.tile { box-shadow: 0 1px 2px rgba(16, 24, 40, .05), inset 0 0 0 1px rgba(16, 24, 40, .07); }
.tile:hover { box-shadow: 0 10px 18px -12px rgba(16, 24, 40, .35), inset 0 0 0 1px rgba(16, 24, 40, .08); }

/* 3-step checkout: one soft card (the snippet's), nothing nested inside it */
body.wc3s form.checkout { border: 0 !important; border-radius: var(--r-lg) !important; box-shadow: var(--card-shadow) !important; }
body.wc3s .woocommerce-checkout-review-order-table, body.wc3s form.checkout .shop_table { box-shadow: none !important; border-radius: 0 !important; }
