/* Arnica.kz — on top of Storefront */
:root {
	--ar-red: #ED1C23;
	--ar-red-dark: #B8121A;
	--ar-ink: #1d1d1f;
	--ar-muted: #6b6b72;
	--ar-bg: #f5f5f7;
	--ar-wa: #25D366;
	--ar-kaspi: #F14635;
	--ar-radius: 16px;
}

body { background: #fff; color: var(--ar-ink); }
a { color: var(--ar-red); }
.arnica-ico { width: 20px; height: 20px; vertical-align: -4px; flex: none; }

/* ---------- header: row 1 = logo + WhatsApp/language, row 2 = menu on one line ---------- */
.site-header, .site-header .col-full { background: #fff !important; color: var(--ar-ink); }
.site-header { border-bottom: 1px solid #eee; padding-top: 0; margin-bottom: 0; }
.site-header > .col-full { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.site-header > .col-full::before, .site-header > .col-full::after { display: none; }
.site-header .site-branding { width: auto !important; float: none !important; margin: 0 !important; }
.site-header .custom-logo-link img { max-width: 140px; height: auto; display: block; }
.site-header .site-search { display: none; }
.arnica-header-tools { display: flex; align-items: center; gap: 12px; margin: 0; }
.arnica-header-wa { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ar-wa); color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.arnica-header-wa:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, .35); color: #fff; }
.arnica-header-wa .arnica-ico { width: 20px; height: 20px; color: #fff; }
/* brand film under the categories ([arnica_film]) */
.arnica-film { margin: 48px auto 8px; max-width: 1400px; line-height: 0; }
.arnica-film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: #111; } /* whole frame, never cropped */
@media (max-width: 767px) { .arnica-film { margin: 32px -16px 4px; } .arnica-film__video { border-radius: 0; } }

/* live search (includes/search.php, assets/js/search.js) */
.arnica-search-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: var(--ar-ink); cursor: pointer; transition: border-color .15s, color .15s; }
.arnica-search-btn:hover { border-color: var(--ar-ink); background: #fff; color: var(--ar-ink); }
.arnica-search-btn svg { width: 19px; height: 19px; }
html.arnica-search-open { overflow: hidden; }
.arnica-search { position: fixed; inset: 0; z-index: 99999; background: rgba(20, 20, 24, .45); display: flex; justify-content: center; align-items: flex-start; padding: 70px 16px 16px; }
.arnica-search[hidden] { display: none; }
.arnica-search__box { width: 100%; max-width: 920px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.arnica-search__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid #eee; }
.arnica-search__bar svg { width: 22px; height: 22px; flex: none; color: var(--ar-muted); }
.arnica-search__bar input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: none; background: none !important; font-size: 17px; padding: 8px 0 !important; color: var(--ar-ink); }
.arnica-search__close { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f3f2f0; color: var(--ar-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.arnica-search__close:hover { background: #e7e5e2; color: var(--ar-ink); }
.arnica-search__results { overflow-y: auto; padding: 0 18px; }
.arnica-search__results:not(:empty) { padding: 16px 18px 18px; }
.arnica-search__title { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.arnica-search__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.arnica-search__grid li { margin: 0; }
.arnica-search__grid a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 10px; color: var(--ar-ink); text-decoration: none !important; }
.arnica-search__grid a:hover, .arnica-search__grid a:focus { background: #f5f4f2; }
.arnica-search__img { flex: none; width: 64px; height: 64px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.arnica-search__img img { width: 100%; height: 100%; object-fit: contain; }
.arnica-search__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.arnica-search__name { font-size: 14px; line-height: 1.35; }
.arnica-search__price { font-family: var(--ar-font-head); font-weight: 700; font-size: 15px; }
.arnica-search__price del { color: var(--ar-muted); font-weight: 500; font-size: 13px; margin-right: 4px; }
.arnica-search__msg { margin: 0; color: var(--ar-muted); }
.arnica-search__msg a { color: var(--ar-red); font-weight: 600; }
@media (max-width: 767px) {
	.arnica-search { padding: 0; background: #fff; }
	.arnica-search__box { max-width: none; max-height: none; height: 100%; border-radius: 0; box-shadow: none; }
	.arnica-search__grid { grid-template-columns: 1fr; }
	.arnica-search-btn { width: 34px; height: 34px; }
	.arnica-search__bar input { font-size: 16px; }
}
.arnica-lang { display: inline-flex; border: 1px solid #ddd; border-radius: 999px; overflow: hidden; }
.arnica-lang a { padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--ar-muted); text-decoration: none; }
.arnica-lang a.is-active { background: var(--ar-red); color: #fff; }
.storefront-primary-navigation { background: #fff; border-top: 1px solid #f0f0f0; }
.main-navigation ul.menu ul, .main-navigation ul.nav-menu ul { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.menu-toggle, .menu-toggle:hover, .menu-toggle:focus { background: #fff !important; color: var(--ar-ink) !important; border: 1px solid #ddd !important; border-radius: 8px; font-weight: 700; }
.menu-toggle::before, .menu-toggle::after, .menu-toggle span::before { background-color: var(--ar-ink) !important; }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; color: #1d1d1f; white-space: nowrap; }
.main-navigation ul li a:hover, .main-navigation ul li.current-menu-item > a { color: var(--ar-red); }
@media (min-width: 768px) {
	.site-header .storefront-primary-navigation .main-navigation { width: 100% !important; float: none !important; margin: 0 !important; }
	.main-navigation .primary-navigation > ul.menu, .main-navigation .primary-navigation > ul.nav-menu { display: flex; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
	.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { padding: 1.05em 6px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
	.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { font-size: 12px; letter-spacing: 0; padding: 1em 8px; }
}

/* ---------- hero (arnica.com.tr style: lifestyle photo, dark + red headline, line-icon badges) ---------- */
.home .site-content { padding-top: 0; }
.home.page-template-template-homepage .site-main { padding-top: 0; }
.arnica-hero {
	margin: 0 calc(50% - 50vw);
	background: var(--hero) right center / cover no-repeat #f4f2ef;
	position: relative;
}
.arnica-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, #f7f5f2 0%, rgba(247, 245, 242, .97) 34%, rgba(247, 245, 242, .55) 48%, rgba(247, 245, 242, 0) 60%);
}
.arnica-hero__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 24px 80px; min-height: 560px; display: flex; align-items: center; }
.arnica-hero__text { max-width: 520px; }
.arnica-hero h1 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; font-weight: 500; color: #1d1d1f; margin: 0 0 18px; letter-spacing: -.02em; }
.arnica-hero h1 span { display: block; }
.arnica-hero h1 em { display: block; font-style: normal; font-weight: 700; color: var(--ar-red); }
.arnica-hero p { font-size: 17px; line-height: 1.55; color: #3a3a3c; margin: 0 0 26px; }
.arnica-hero__badges { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.arnica-hero__badges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: #1d1d1f; border-left: 1px solid #cfcac4; }
.arnica-hero__badges li:first-child { border-left: 0; }
.arnica-hero__badges svg { width: 34px; height: 34px; color: #1d1d1f; }
.arnica-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
	.arnica-hero { background: #f7f5f2; }
	.arnica-hero::before { background: var(--hero-m) center / cover no-repeat; position: relative; display: block; height: 58vw; }
	.arnica-hero__inner { padding: 26px 20px 40px; min-height: 0; }
	.arnica-hero__badges { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
	.arnica-hero__badges li:nth-child(3) { border-left: 0; }
}

/* ---------- slider (same look as the hero, several slides) ---------- */
.arnica-slider { margin: 0 calc(50% - 50vw); position: relative; overflow: hidden; background: #f4f2ef; }
.arnica-slider__track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.arnica-slide { flex: 0 0 100%; min-width: 0; position: relative; }
.arnica-slide__bg { position: absolute; inset: 0; margin: 0; }
.arnica-slide__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0 !important; display: block; }
.arnica-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.arnica-slide--left::before { background: linear-gradient(90deg, #f7f5f2 0%, #f7f5f2 36%, rgba(247, 245, 242, .5) 46%, rgba(247, 245, 242, 0) 58%); }
.arnica-slide--right::before { background: linear-gradient(270deg, #f7f5f2 0%, rgba(247, 245, 242, .94) 32%, rgba(247, 245, 242, .45) 46%, rgba(247, 245, 242, 0) 58%); }
.arnica-slide--left .arnica-slide__bg img { object-position: right center; }
.arnica-slide--right .arnica-slide__bg img { object-position: left center; }
.arnica-slide__inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 72px 76px 84px; min-height: 560px; display: flex; align-items: center; }
.arnica-slide--right .arnica-slide__inner { justify-content: flex-end; }
.arnica-slide--right .arnica-slide__text { max-width: 440px; }
.arnica-slide__text { max-width: 520px; }
/* fotoğraflı slaytlar: geniş ekranda yükseklik genişlikle büyüsün (21:9 görsel kırpılmasın) */
@media (min-width: 901px) { .arnica-slide:not(.arnica-slide--product) .arnica-slide__inner { min-height: max(560px, calc(100vw / 2.45)); } }
.arnica-slide h1, .arnica-slide h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; font-weight: 500; color: #1d1d1f; margin: 0 0 18px; letter-spacing: -.02em; }
.arnica-slide h1 span, .arnica-slide h2 span { display: block; }
.arnica-slide h1 em, .arnica-slide h2 em { display: block; font-style: normal; font-weight: 700; color: var(--ar-red); }
.arnica-slide p { font-size: 17px; line-height: 1.55; color: #3a3a3c; margin: 0 0 26px; }
.arnica-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #1d1d1f; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.arnica-slider__arrow:hover { background: #fff; color: var(--ar-red); }
.arnica-slider__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arnica-slider__arrow--prev { left: 18px; }
.arnica-slider__arrow--next { right: 18px; }
.arnica-slider__dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.arnica-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(29, 29, 31, .25); cursor: pointer; transition: width .3s, background .3s; }
.arnica-slider__dots button[aria-current] { width: 28px; background: var(--ar-red); }
@media (max-width: 900px) {
	.arnica-slide { display: flex; flex-direction: column; background: #f7f5f2; }
	.arnica-slide::before { display: none; }
	.arnica-slide__bg { position: relative; height: 56vw; }
	.arnica-slide--left .arnica-slide__bg img { object-position: 78% center; }
	.arnica-slide--right .arnica-slide__bg img { object-position: 22% center; }
	.arnica-slide__inner { padding: 24px 20px 56px; min-height: 0; width: 100%; }
	.arnica-slide--right .arnica-slide__inner { justify-content: flex-start; }
	.arnica-slide--right .arnica-slide__text { max-width: none; }
	.arnica-slider__arrow { top: 28vw; width: 38px; height: 38px; }
	.arnica-slider__arrow--prev { left: 10px; }
	.arnica-slider__arrow--next { right: 10px; }
	.arnica-slider__dots { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .arnica-slider__track { transition: none; } }

/* ---------- buttons ---------- */
.arnica-btn, .arnica-btn:visited {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 6px;
	font-weight: 700; text-decoration: none; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s;
}
.arnica-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.arnica-btn--red { background: var(--ar-red); color: #fff; }
.arnica-btn--red:hover { background: var(--ar-red-dark); color: #fff; }
.arnica-btn--ghost { border: 1.5px solid #1d1d1f; color: #1d1d1f; }
.arnica-btn--wa { background: var(--ar-wa); color: #fff; }

/* ---------- product rows ("Выгодные предложения", "Популярные на Kaspi") ---------- */
.arnica-row { margin: 56px 0 10px; }
.arnica-row__head { display: flex; align-items: baseline; justify-content: center; gap: 18px; margin-bottom: 22px; }
.arnica-row__head h2 { font-size: 30px; font-weight: 700; margin: 0; text-align: center; }
.arnica-row__head a { font-weight: 600; color: var(--ar-red); text-decoration: none; }
.arnica-sale, .woocommerce span.onsale.arnica-sale {
	position: absolute; top: 10px; right: 10px; left: auto; width: 48px; height: 48px; min-height: 0; padding: 0; margin: 0;
	border-radius: 50%; background: var(--ar-red); color: #fff; border: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; z-index: 2;
}
ul.products li.product { position: relative; }
ul.products li.product .price del { color: var(--ar-muted); font-weight: 400; font-size: 14px; }
ul.products li.product .price ins { text-decoration: none; color: var(--ar-red); }
.main-navigation .arnica-menu-deals > a { color: var(--ar-red) !important; }

/* ---------- categories ---------- */
.arnica-cats { margin: 40px 0 60px; }
.arnica-cats h2 { font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.arnica-cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.arnica-cat { background: #fff; border: 1px solid #ececf0; border-radius: var(--ar-radius); padding: 18px; display: flex; flex-direction: column; transition: box-shadow .2s; }
.arnica-cat:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .08); }
.arnica-cat__head { color: var(--ar-ink); text-decoration: none; }
.arnica-cat__head { display: flex; flex-direction: column; align-items: stretch; }
.arnica-cat__icon { height: 170px; border-radius: 14px; background: #f5f4f2; display: grid; place-items: center; margin: -4px -4px 16px; transition: background .25s; }
.arnica-cat__icon .arnica-cat-ico { width: 104px; height: 104px; stroke-width: 1.6; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.arnica-cat:hover .arnica-cat__icon { background: #eeece9; }
.arnica-cat:hover .arnica-cat__icon .arnica-cat-ico { transform: scale(1.07) translateY(-3px); }
.arnica-cat h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.arnica-cat__subs { list-style: none; margin: 0; padding: 0; }
.arnica-cat__subs li { margin: 0; border-top: 1px solid #f0f0f3; }
.arnica-cat__subs a { display: flex; align-items: center; gap: 10px; padding: 8px 2px; color: var(--ar-ink); text-decoration: none; font-weight: 500; }
.arnica-cat__subs a b { font-weight: 500; flex: 1; }
.arnica-sub-ico { width: 40px; height: 40px; flex: none; padding: 5px; border-radius: 10px; background: #f5f4f2; stroke-width: 2.3; transition: background .15s; }
.arnica-cat__subs a:hover { color: var(--ar-red); }
.arnica-cat__subs a:hover .arnica-sub-ico { background: #e9e7e4; }
.arnica-cat__subs span, .arnica-subnav span { color: var(--ar-muted); font-weight: 400; }
.arnica-cat--spares p { color: var(--ar-muted); margin: 0 0 14px; }
.arnica-cat--spares .arnica-btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .arnica-cats__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .arnica-cats__grid { grid-template-columns: 1fr; } }

/* category icons (includes/icons.php): single-colour thin line drawings */
.arnica-ai { color: #2b2b30; overflow: visible; }
.arnica-subnav a:hover .arnica-ai { color: #fff; }

/* sub-category pills on category pages */
.arnica-subnav { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.arnica-subnav .arnica-sub-ico { width: 30px; height: 30px; padding: 0; background: none; }
.arnica-subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--ar-bg); color: var(--ar-ink); text-decoration: none; font-weight: 600; }
.arnica-subnav a:hover { background: var(--ar-red); color: #fff; }
.arnica-subnav a:hover span { color: #fff; }

/* ---------- product lists & product page ---------- */
ul.products li.product { background: #fff; border: 1px solid #ececf0; border-radius: var(--ar-radius); padding: 14px !important; }
ul.products li.product img { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; min-height: 3em; }
ul.products li.product .price { font-size: 18px; font-weight: 800; color: var(--ar-ink); }
ul.products li.product .button { width: 100%; border-radius: 999px; }

/* ---------- "Купить в Kaspi" buttons: brand red ---------- */
ul.products li.product .button, ul.products li.product .button:visited,
.single-product div.product .single_add_to_cart_button, .single-product div.product .single_add_to_cart_button:visited {
	background: linear-gradient(180deg, #F2323A 0%, #D8141C 100%) !important; color: #fff !important; border: 0 !important;
	font-family: var(--ar-font-head); font-weight: 700; letter-spacing: .01em;
	box-shadow: 0 4px 14px rgba(237, 28, 35, .28); transition: transform .15s, box-shadow .15s, filter .15s;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
ul.products li.product .button:hover, .single-product div.product .single_add_to_cart_button:hover {
	filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(237, 28, 35, .35); color: #fff !important;
}
ul.products li.product .button::after, .single-product div.product .single_add_to_cart_button::after {
	content: ""; width: 16px; height: 16px; flex: none;
	background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%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' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- typography: Montserrat for headings, product names, menu ---------- */
:root { --ar-font-head: "Montserrat", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, .arnica-row__head h2, .arnica-cats h2, .arnica-cat h3,
.woocommerce-products-header__title, .page-title, .entry-title, .product_title,
ul.products li.product .woocommerce-loop-product__title, .main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a,
.arnica-cat__subs a b, .arnica-subnav a, .woocommerce-tabs ul.tabs li a, .related > h2, .arnica-deals-sub {
	font-family: var(--ar-font-head); letter-spacing: -.01em;
}
.woocommerce-products-header__title, .page-title, h1.entry-title { font-weight: 700; font-size: clamp(28px, 3vw, 40px); color: var(--ar-ink); }
.single-product .product_title { font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
ul.products li.product .woocommerce-loop-product__title { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ar-ink); }
.arnica-cat h3 { font-weight: 700; }
.arnica-cat__subs a b { font-weight: 600; font-size: 14px; }
.arnica-subnav a { font-weight: 600; font-size: 14px; }
.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { font-weight: 700; font-size: 12.5px; letter-spacing: .03em; }
.arnica-deals-sub { font-size: 26px; font-weight: 700; margin: 40px 0 20px; }
.arnica-installment { font-size: 13px; color: var(--ar-muted); margin: 4px 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.single-product .arnica-installment { justify-content: flex-start; font-size: 15px; }
.arnica-kaspi-mark { background: var(--ar-kaspi); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.single-product div.product .price { font-size: 28px; font-weight: 800; color: var(--ar-ink); }
.single-product div.product .single_add_to_cart_button { border-radius: 999px; padding: 14px 32px; font-size: 17px; }
.arnica-ask-wa { display: inline-flex !important; align-items: center; gap: 8px; padding: 9px 18px !important; font-size: 14px !important; background: var(--ar-wa) !important; color: #fff !important; border-radius: 999px; margin-top: 10px; }
.woocommerce-product-attributes th { width: 45%; }
.arnica-video iframe, .arnica-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* ---------- spares / contacts ---------- */
.arnica-spares { background: var(--ar-bg); border-radius: var(--ar-radius); padding: 28px; font-size: 17px; }
.arnica-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.arnica-contacts h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
@media (max-width: 767px) { .arnica-contacts { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0 90px; background: #2b2b2b !important; }
.arnica-footer img { filter: brightness(0) invert(1); margin-bottom: 10px; }
.arnica-footer .arnica-contacts { margin: 24px 0; }
.arnica-footer h3 { color: #fff; }
.arnica-footer a { color: #fff; }
.site-footer, .site-footer p, .arnica-footer p, .arnica-footer .arnica-contacts p { color: #d6d6d6 !important; }
.arnica-copy { color: #9a9a9a !important; font-size: 13px; }

/* ---------- floating WhatsApp ---------- */
.arnica-wa-float { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--ar-wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 9999; }
.arnica-wa-float .arnica-ico { width: 26px; height: 26px; }

/* menu fits one line on laptops/tablets too (7 items, Kazakh labels are long) */
@media (min-width: 768px) and (max-width: 1250px) {
	.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { font-size: 11px; letter-spacing: 0; padding: 1em 4px; }
}
@media (min-width: 768px) and (max-width: 900px) {
	.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { font-size: 10px; padding: 1em 3px; }
}
ul.products li.product .price, ul.products li.product .price .amount { color: var(--ar-ink) !important; font-family: var(--ar-font-head); font-weight: 700; font-size: 18px; }

/* ================= phones & small tablets ================= */
.arnica-btn, .arnica-btn:hover, .arnica-btn:visited, .arnica-ask-wa, .arnica-footer .arnica-btn { text-decoration: none !important; }
.menu-toggle:focus { outline: none; }
.menu-toggle:focus-visible { outline: 2px solid var(--ar-red); outline-offset: 2px; }
/* slider dots: same look, bigger tap area */
.arnica-slider__dots button { box-sizing: content-box; padding: 8px 4px; background-clip: content-box; }
.arnica-slider__dots { bottom: 12px; gap: 2px; }
.arnica-lang a { padding: 7px 12px; }

@media (max-width: 767px) {
	/* header: logo · WhatsApp · RU/KZ · ☰ on one row */
	.site-header { position: relative; }
	.site-header > .col-full { padding: 10px 16px; gap: 10px; }
	.site-header .custom-logo-link img { max-width: 108px; }
	.arnica-header-tools { gap: 8px; margin-right: 52px; }
	.arnica-header-wa { width: 34px; height: 34px; }
	.arnica-lang a { padding: 7px 9px; font-size: 12px; }
	.storefront-primary-navigation { border-top: 0; }
	.storefront-primary-navigation > .col-full { padding: 0 16px; }
	.main-navigation .menu-toggle {
		position: absolute; top: 10px; right: 16px; width: 42px; height: 38px; padding: 0 !important; margin: 0;
		color: transparent !important; overflow: hidden; white-space: nowrap; border-radius: 10px;
	}
	.main-navigation .menu-toggle::before, .main-navigation .menu-toggle::after, .main-navigation .menu-toggle span::before { left: 50% !important; margin-left: -7px; }
	.main-navigation.toggled .handheld-navigation { border-top: 1px solid #eee; margin: 0 -16px; padding: 4px 16px 10px; }
	.handheld-navigation ul.menu > li > a { padding: 13px 0; font-size: 14px; border-bottom: 1px solid #f2f2f4; font-family: var(--ar-font-head); font-weight: 700; text-transform: uppercase; }
	.handheld-navigation ul.menu > li:last-child > a { border-bottom: 0; }

	/* section headings */
	.arnica-row { margin: 36px 0 6px; }
	.arnica-row__head { justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
	.arnica-row__head h2 { font-size: 21px; text-align: left; line-height: 1.2; }
	.arnica-row__head a { font-size: 13px; white-space: nowrap; }
	.arnica-cats h2, .arnica-deals-sub { font-size: 22px; }
	.woocommerce-products-header__title, .page-title, h1.entry-title { font-size: 25px; }

	/* product grid: 2 compact columns */
	ul.products, .site-main ul.products.columns-4, .site-main ul.products.columns-3 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-left: 0 !important; margin-right: 0 !important; }
	ul.products::before, ul.products::after { display: none !important; }
	ul.products li.product, .site-main ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 10px !important; display: flex; flex-direction: column; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 12.5px; min-height: 0; margin: 6px 0 4px; }
	ul.products li.product .price, ul.products li.product .price .amount { font-size: 15px; }
	ul.products li.product .price { margin-bottom: 2px; }
	ul.products li.product .arnica-installment { font-size: 10.5px; line-height: 1.3; gap: 4px; margin: 2px 0 8px; }
	ul.products li.product .arnica-kaspi-mark { font-size: 9px; padding: 1px 5px; }
	ul.products li.product .button { margin-top: auto; padding: 10px 4px !important; font-size: 12px !important; white-space: nowrap; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; display: block; text-align: center; }
	ul.products { gap: 8px; }
	ul.products li.product, .site-main ul.products li.product { padding: 8px !important; }
	ul.products li.product .button::after { display: none; }
	.arnica-sale, .woocommerce span.onsale.arnica-sale { width: 38px; height: 38px; font-size: 12px; top: 6px; right: 6px; }

	/* product page */
	.single-product div.product .single_add_to_cart_button, .single-product .arnica-ask-wa { width: 100%; justify-content: center; }
	.single-product div.product .price { font-size: 24px; }
	.woocommerce-product-attributes th, .woocommerce-product-attributes td { font-size: 13px; }

	/* floating WhatsApp: smaller, off the text */
	.arnica-wa-float { width: 46px; height: 46px; right: 12px; bottom: 14px; }
	.site-footer { padding-bottom: 80px; }
}
@media (max-width: 374px) {
	.site-header .custom-logo-link img { max-width: 94px; }
	.arnica-lang a { padding: 7px 7px; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 12px; }
	ul.products li.product .button { font-size: 11px !important; }
}
@media (max-width: 340px) {
	ul.products li.product .button { font-size: 10.5px !important; padding: 10px 2px !important; letter-spacing: -.02em; }
}
/* tablets (768–959): long Kazakh menu may wrap to a second centred line instead of hiding items */
@media (min-width: 768px) and (max-width: 959px) {
	.main-navigation .primary-navigation > ul.menu, .main-navigation .primary-navigation > ul.nav-menu { flex-wrap: wrap; justify-content: center; overflow: visible; column-gap: 6px; }
	.main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a { font-size: 11px; padding: .7em 5px; }
}

/* ---------- product slides (popular on Kaspi / bundle) ---------- */
.arnica-slide--product { background: radial-gradient(120% 90% at 78% 50%, #ffffff 0%, #f6f1ec 55%, #efe7df 100%); }
.arnica-pslide__visual { position: absolute; top: 0; bottom: 0; right: max(4vw, calc(50% - 560px)); width: min(46vw, 560px); display: flex; align-items: center; justify-content: center; z-index: 1; }
.arnica-pslide__glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(237, 28, 35, .16) 0%, rgba(237, 28, 35, .06) 45%, rgba(237, 28, 35, 0) 70%); }
.arnica-pslide__visual img { position: relative; max-height: 470px; max-width: 100%; width: auto !important; object-fit: contain; border-radius: 18px !important; mix-blend-mode: multiply; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .12)); }
.arnica-slide--product .arnica-slide__text { max-width: 500px; }
.arnica-pslide__label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 14px; color: #3a3a3c; }
.arnica-pslide__label span { background: var(--ar-red); color: #fff; font-family: var(--ar-font-head); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.arnica-pslide__label b { color: #f5a300; }
.arnica-slide--product h2 { font-size: clamp(30px, 3.8vw, 52px); margin-bottom: 10px; }
.arnica-pslide__name { font-family: var(--ar-font-head); font-weight: 700; font-size: 17px !important; color: var(--ar-ink) !important; margin: 0 0 8px !important; }
.arnica-pslide__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: -8px 0 22px; }
.arnica-pslide__price strong { font-family: var(--ar-font-head); font-size: 30px; font-weight: 800; color: var(--ar-ink); }
.arnica-pslide__price > span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #3a3a3c; }
@media (max-width: 900px) {
	.arnica-slide--product { display: flex; flex-direction: column; }
	.arnica-pslide__visual { position: relative; right: auto; width: 100%; height: min(64vw, 360px); padding: 16px 0 6px; box-sizing: border-box; }
	.arnica-pslide__visual img { height: 100% !important; max-height: 100%; width: auto !important; max-width: 86%; min-height: 0; }
	.arnica-pslide__glow { height: 100%; width: auto; }
	.arnica-slide--product .arnica-slide__inner { padding-top: 8px; }
	.arnica-slide--product h2 { font-size: 28px; }
	.arnica-pslide__price strong { font-size: 24px; }
}

/* ---------- logo buttons: Kaspi / Instagram / WhatsApp (footer + contacts page) ---------- */
.arnica-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.arnica-social__btn, .arnica-social__btn:visited { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; color: var(--ar-ink) !important; text-decoration: none !important; font-family: var(--ar-font-head); font-weight: 700; font-size: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: transform .15s, box-shadow .15s; }
.arnica-social__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.arnica-social__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.arnica-social__ico svg { width: 20px; height: 20px; }
.arnica-social__btn--kaspi .arnica-social__ico { background: none; overflow: hidden; }
.arnica-social__ico img, .arnica-footer .arnica-social__ico img { width: 100%; height: 100%; display: block; border-radius: 50%; filter: none; margin: 0; }
.arnica-social__btn--insta .arnica-social__ico { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.arnica-social__btn--wa .arnica-social__ico { background: var(--ar-wa); }
.arnica-social__btn .arnica-ico { width: 20px; height: 20px; }
.arnica-contacts + .arnica-social { margin-top: 28px; }
/* footer: small logo-only icons, 2 contact columns */
.arnica-social--icons { gap: 10px; margin: 14px 0 4px; }
.arnica-social--icons .arnica-social__btn, .arnica-social--icons .arnica-social__btn:visited { padding: 0; background: none; box-shadow: none; border-radius: 50%; }
.arnica-social--icons .arnica-social__ico { width: 32px; height: 32px; }
.arnica-social--icons .arnica-social__ico svg, .arnica-social--icons .arnica-ico { width: 18px; height: 18px; }
.arnica-contacts--footer { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.arnica-contacts--footer p { margin: 0 0 4px; }
.arnica-footer .arnica-contacts--footer .arnica-contacts__mail { margin: 0 0 16px; } /* Almatı grubu (adres+tel+mail) ile Astana arası */
.arnica-contacts__phone a { font-weight: 700; text-decoration: none; }
.arnica-contacts__mail a { text-decoration: none; }
@media (max-width: 767px) { .arnica-contacts--footer { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 767px) {
	.arnica-social { gap: 8px; }
	.arnica-social__btn { font-size: 13px; padding-right: 12px; }
}

/* buttons never break into two lines; text centred */
.arnica-btn { white-space: nowrap; justify-content: center; text-align: center; }
.arnica-cat--spares .arnica-btn { align-self: stretch; margin-top: auto; padding-left: 14px; padding-right: 14px; }
@media (min-width: 1001px) and (max-width: 1250px) { .arnica-cat--spares .arnica-btn { font-size: 14px; gap: 6px; } }

/* product video inside the gallery (includes/product-video.php) */
.arnica-gallery-video__box { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #111; display: grid; place-items: center; border-radius: 8px; overflow: hidden; }
.arnica-gallery-video__box video, .arnica-gallery-video__box iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #111; }
.flex-control-thumbs li.arnica-thumb-video { position: relative; }
.flex-control-thumbs li.arnica-thumb-video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(237, 28, 35, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); pointer-events: none; }
.woocommerce-product-gallery.arnica-video-active .woocommerce-product-gallery__trigger { display: none !important; }

/* category cards as accordion: closed by default, click opens the sub-categories */
.arnica-cats__grid { align-items: start; }
.arnica-cat { transition: box-shadow .25s, transform .25s; }
.arnica-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .09); }
.arnica-cat__head { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: var(--ar-ink); font: inherit; text-align: left; cursor: pointer; }
.arnica-cat__head:hover, .arnica-cat__head:focus { background: none; color: var(--ar-ink); }
.arnica-cat__head:focus { outline: none; }
.arnica-cat__head:focus-visible { outline: 2px solid var(--ar-red); outline-offset: 4px; border-radius: 12px; }
.arnica-cat__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 2.9em; } /* same card height for 1- and 2-line titles */
.arnica-cat__title h3 { margin: 0; }
.arnica-cat__chev { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #f5f4f2; color: var(--ar-ink); transition: transform .3s, background .2s, color .2s; }
.arnica-cat:hover .arnica-cat__chev { background: var(--ar-red); color: #fff; }
.arnica-cat.is-open .arnica-cat__chev { transform: rotate(180deg); background: var(--ar-red); color: #fff; }
.arnica-cat__inner > :first-child { margin-top: 12px; }
.arnica-cats.js-acc .arnica-cat__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.arnica-cats.js-acc .arnica-cat.is-open .arnica-cat__panel { grid-template-rows: 1fr; }
.arnica-cats.js-acc .arnica-cat__panel > .arnica-cat__inner { overflow: hidden; min-height: 0; }
.arnica-cat__all { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ar-red); text-decoration: none; }
.arnica-cat--spares .arnica-cat__inner p { color: var(--ar-muted); margin: 0 0 14px; }
.arnica-cat__icon { margin-bottom: 14px !important; }
@media (prefers-reduced-motion: reduce) { .arnica-cats.js-acc .arnica-cat__panel, .arnica-cat, .arnica-cat__chev { transition: none; } }
@media (max-width: 560px) { .arnica-cat__icon { height: 118px !important; } .arnica-cat__icon .arnica-cat-ico { width: 84px; height: 84px; } .arnica-cat__title { min-height: 0; } }

/* product cards in a row: equal height, price / installment / Kaspi button aligned on one line */
ul.products li.product { display: flex; flex-direction: column; }
ul.products li.product > a.woocommerce-LoopProduct-link { flex: 1 1 auto; display: flex; flex-direction: column; }
ul.products li.product .woocommerce-loop-product__title { flex: 1 1 auto; }
ul.products li.product .arnica-installment { min-height: 2.9em; align-content: flex-start; }
ul.products li.product .button { margin-top: auto; }
@media (min-width: 768px) {
	ul.products, .site-main ul.products.columns-4, .site-main ul.products.columns-3 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-left: 0 !important; margin-right: 0 !important; }
	.site-main ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	ul.products::before, ul.products::after { display: none !important; }
	ul.products li.product, .site-main ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
}
