/*
Theme Name: RUSSOTA
Description: RUSSOTA jewelry child theme for Twenty Twenty-Five (Silver & Navy).
Author: RUSSOTA
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Text Domain: russota
*/

:root {
	--rs-navy: #14213D;
	--rs-ink: #14213D;
	--rs-muted: #4A5A75;
	--rs-line: #DCE2EA;
	--rs-soft: #EEF1F5;
	--rs-link: #3D5A80;
	/* כותרות: David Libre. שמות תכשיטים: Bellefair. שאר הטקסט: Assistant */
	--rs-head: 'David Libre', 'Frank Ruhl Libre', serif;
	--rs-jewel: 'Bellefair', 'David Libre', serif;
}

body { background: #fff; color: var(--rs-ink); }
.rs, .rs * { box-sizing: border-box; }
.rs { font-family: 'Assistant', sans-serif; font-size: 16px; color: var(--rs-ink); }
.rs a { color: inherit; text-decoration: none; }
.rs .fr { font-family: var(--rs-head); }
.rs-wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }

/* the header/footer template parts must not get the theme's block gap */
header.wp-block-template-part, footer.wp-block-template-part { margin-block: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- header ---------- */
.rs-bar { background: var(--rs-soft); font-size: 14px; padding: 9px 16px; display: flex; justify-content: center; gap: 8px 28px; flex-wrap: wrap; }
.rs-top { display: flex; align-items: center; gap: 16px 28px; padding-block: 14px; flex-wrap: wrap; }
.rs-logo { margin-inline-end: auto; display: block; line-height: 0; }
.rs-logo img { height: 72px; width: auto; mix-blend-mode: multiply; }
.rs-icons { display: flex; gap: 4px; }
.rs-icons a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--rs-ink); }
.rs-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rs-line); border-radius: 999px; padding: 0 14px; min-height: 44px; flex: 0 1 280px; }
.rs-search input { border: 0; outline: 0; font: inherit; background: none; flex: 1; min-width: 0; color: var(--rs-ink); }
.rs-search button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--rs-ink); display: grid; place-items: center; }
.rs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rs-catbar { background: var(--rs-navy); color: #fff; position: relative; z-index: 50; }
.rs-menu { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0 2px; }
.rs-menu > li > a { display: block; padding: 15px 11px; font-size: 16px; font-weight: 500; color: #fff; }
.rs-menu > li > a:hover, .rs-menu > li:focus-within > a { color: #C9D4E6; }
.rs-menu > li > a.rs-sale { color: #F2C94C; }
.rs-menu > li > a.rs-has::after { content: ""; display: inline-block; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translateY(-3px); margin-inline-start: 8px; opacity: .7; }
.rs-panel { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; color: var(--rs-ink); border-bottom: 1px solid var(--rs-line); box-shadow: 0 18px 30px rgba(20,33,61,.12); }
.rs-menu > li:hover .rs-panel, .rs-menu > li:focus-within .rs-panel { display: block; }
.rs-panel .rs-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 32px; padding-block: 28px 32px; }
.rs-panel h4 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.rs-panel h4 a:hover { color: var(--rs-link); }
.rs-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rs-panel li a { color: var(--rs-muted); }
.rs-panel li a:hover { color: var(--rs-ink); text-decoration: underline; }
.rs-panel .rs-all { grid-column: 1 / -1; border-top: 1px solid var(--rs-line); padding-top: 16px; font-weight: 600; color: var(--rs-link); }

/* ---------- home ---------- */
.rs-hero { height: 560px; background-size: cover; background-position: center 45%; }
.rs-band { background: var(--rs-navy); color: #fff; }
.rs-band .rs-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-block: 40px; }
.rs h1.rs-h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; line-height: 1.15; max-width: 700px; color: #fff; }
.rs-band p { margin: 10px 0 0; color: #C9D1DF; font-size: 18px; }
.rs-btn { background: #fff; color: var(--rs-navy) !important; padding: 16px 32px; border-radius: 10px; font-weight: 700; display: inline-block; }
.rs-gender { padding-block: 72px 88px; }
.rs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.rs h2.rs-h2 { margin: 0; font-size: 38px; font-weight: 500; }
.rs-head a { color: var(--rs-link); font-weight: 600; }
.rs-duo { display: flex; flex-wrap: wrap; gap: 24px; }
.rs-duo > a { flex: 1 1 380px; display: block; }
.rs-split { position: relative; height: 520px; border-radius: 16px; overflow: hidden; background-size: cover; }
/* תווית קטנה ושקופה בפינה, כדי לא להסתיר את התכשיטים בתמונה */
.rs-split .rs-lab { position: absolute; inset-inline-start: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--rs-navy); border-radius: 999px; padding: 9px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: background .2s, color .2s; }
.rs-split .rs-name { font-family: 'Assistant', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.2; }
.rs-split .rs-sub { display: none; }
.rs-arrow { font-size: 17px; font-weight: 700; line-height: 1; flex: none; }
.rs-duo > a:hover .rs-lab { background: var(--rs-navy); color: #fff; }

/* קרוסלת קטגוריות */
.rs-catcar { margin-top: 40px; }
.rs-catrow { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.rs-catrow::-webkit-scrollbar { display: none; }
.rs-catrow a { flex: 0 0 calc((100% - 64px) / 5); scroll-snap-align: start; display: block; text-align: center; font-weight: 600; }
.rs-catrow .rs-catimg { aspect-ratio: 1; border-radius: 12px; background: var(--rs-soft) center / cover no-repeat; margin-bottom: 10px; border: 1px solid var(--rs-line); transition: border-color .2s; }
.rs-catrow a:hover .rs-catimg { border-color: var(--rs-navy); }
/* בלי קווי פוקוס בלחיצה (הגלילה חותכת אותם לשני קווים בצדדים). במקלדת מסמנים את התמונה */
.rs-catrow a:focus { outline: none; }

/* בלי הריבוע הכחול של הטלפון בלחיצה, ובמקומו פעימה קטנה (ה-JS ב-functions.php) */
html { -webkit-tap-highlight-color: transparent; }
@keyframes rs-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.rs-pulse { animation: rs-pulse .35s ease-out; }
@media (prefers-reduced-motion: reduce) { .rs-pulse { animation: none; } }
.rs-catrow a:focus-visible .rs-catimg { border-color: var(--rs-navy); box-shadow: inset 0 0 0 2px var(--rs-navy); }

/* home carousels */
.rs-carousel { padding-block: 64px 0; }
.rs-carousel-last { padding-block: 0 88px; }
.rs-carousel:not(:has(.wc-block-product)) { display: none; }
.rs-carnav { display: flex; align-items: center; gap: 10px; }
.rs-carnav a { margin-inline-end: 8px; }
/* חצים בלי עיגול: רק חץ, עם שטח לחיצה של 44px */
.rs-carnav button { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--rs-navy); cursor: pointer; display: grid; place-items: center; transition: opacity .2s; }
.rs-carnav button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rs-carnav button:hover { opacity: .6; }
.rs-carousel .wc-block-product-template { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 24px !important; }
.rs-carousel .wc-block-product-template::-webkit-scrollbar { display: none; }
.rs-carousel .wc-block-product { flex: 0 0 calc((100% - 72px) / 4) !important; max-width: none !important; scroll-snap-align: start; }

/* ---------- WooCommerce store notice ---------- */
.woocommerce-store-notice, p.demo_store { background-color: var(--rs-navy) !important; color: #fff; font-family: 'Assistant', sans-serif; }
.woocommerce-store-notice a, p.demo_store a { color: #fff; }

/* ---------- shop / category ---------- */
.rs-shop, .rs-product { padding-bottom: 80px; }
.rs-cathead { background: var(--rs-navy); color: #fff; padding-block: 28px 40px; }
.rs-cathead .woocommerce-breadcrumb, .rs-cathead .woocommerce-breadcrumb a { color: #C9D1DF !important; font-size: 14px; margin: 0 0 14px; }
.rs-cathead .woocommerce-breadcrumb a:hover { color: #fff !important; }
.rs h1.rs-cattitle { margin: 0; color: #fff; font-family: var(--rs-head); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.15; }
.rs-catdesc { color: #C9D1DF; font-size: 18px; max-width: 720px; margin-top: 10px; }
.rs-catdesc p { margin: 0; }
.rs-shopbody { padding-top: 28px; }

.rs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.rs-chips a { border: 1px solid var(--rs-line); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 15px; background: #fff; }
.rs-chips a:hover { border-color: var(--rs-navy); background: var(--rs-soft); }

.rs-toolbar { border-block: 1px solid var(--rs-line); padding-block: 10px; margin-bottom: 28px; align-items: center; }
.rs-toolbar:not(:has(.woocommerce-result-count, form)) { display: none; }
.rs-toolbar p, .rs-toolbar form { margin: 0 !important; }
.rs-toolbar .woocommerce-result-count { color: var(--rs-muted); font-size: 15px; }
.rs-toolbar select { font: inherit; color: var(--rs-ink); border: 1px solid var(--rs-line); border-radius: 999px; padding: 8px 16px; min-height: 42px; background-color: #fff; }

/* product cards (category grid + related products) */
.rs-grid .wc-block-product-template { gap: 40px 24px !important; }
.rs-grid .wc-block-product { text-align: start; display: flex; flex-direction: column; }
.rs-grid .wc-block-components-product-image { background: var(--rs-soft); border-radius: 14px; overflow: hidden; margin: 0 0 14px !important; }
.rs-grid .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .4s ease; }
.rs-grid .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }
.rs h3.rs-ptitle { font-family: var(--rs-jewel); font-size: 20px !important; font-weight: 400; line-height: 1.35; margin: 0 0 6px; text-align: start; }
.rs h3.rs-ptitle a:hover { color: var(--rs-link); }
.rs-pprice { font-size: 17px !important; font-weight: 700; color: var(--rs-navy); margin-bottom: 14px; text-align: start !important; }
.rs-pprice del { color: var(--rs-muted); font-weight: 400; opacity: 1; }
.rs-pprice ins { text-decoration: none; color: #B23B3B; }
.rs-pbtn { margin-top: auto !important; text-align: start !important; justify-content: flex-start !important; align-items: stretch !important; }
.rs-pbtn .wp-block-button__link, .rs-pbtn .wc-block-components-product-button__button {
	background: #fff !important; color: var(--rs-navy) !important; border: 1.5px solid var(--rs-navy) !important;
	border-radius: 10px !important; padding: 10px 20px !important; font-weight: 700; font-size: 15px !important; width: 100%; }
.rs-pbtn .wp-block-button__link:hover, .rs-pbtn .wc-block-components-product-button__button:hover { background: var(--rs-navy) !important; color: #fff !important; }
.rs-grid .wc-block-components-product-sale-badge, .rs-product .onsale { background: #B23B3B; color: #fff; border: 0; border-radius: 999px; font-weight: 700; padding: 4px 12px; }
.rs-pages { margin-top: 48px; gap: 6px; }
.rs-pages a, .rs-pages span.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--rs-line); border-radius: 10px; }
.rs-pages .current { background: var(--rs-navy); border-color: var(--rs-navy); color: #fff; }

.rs-empty { text-align: center; padding: 56px 24px; background: var(--rs-soft); border-radius: 16px; }
.rs-empty p { margin: 0 0 8px; color: var(--rs-muted); }
.rs-empty .rs-empty-t { font-size: 28px; color: var(--rs-ink); }
.rs-empty a { color: var(--rs-link); font-weight: 600; }
.rs .rs-btn-navy { background: var(--rs-navy); color: #fff !important; margin-top: 16px; }

/* ---------- single product ---------- */
.rs-product .rs-crumbs, .rs-product .woocommerce-breadcrumb { font-size: 14px; color: var(--rs-muted); padding-block: 20px; margin: 0; }
.rs-product .woocommerce-breadcrumb a:hover { color: var(--rs-ink); text-decoration: underline; }
.rs-pmain { gap: 32px 56px !important; align-items: flex-start; margin-bottom: 56px; }
.rs-gallery .woocommerce-product-gallery { margin: 0; }
.rs-gallery .wp-block-woocommerce-product-image-gallery { position: relative; }
.rs-gallery .woo-variation-product-gallery { width: 100% !important; max-width: none !important; float: none !important; }
.rs-gallery .woo-variation-gallery-slider-wrapper { background: var(--rs-soft); border-radius: 16px; overflow: hidden; }
.rs-gallery .woo-variation-gallery-thumbnail-slider { margin-top: 12px; }
.rs-gallery .woo-variation-gallery-thumbnail-slider img { border-radius: 10px; border: 1px solid var(--rs-line); }
.rs-gallery .onsale { background: #B23B3B !important; color: #fff !important; border-radius: 999px !important; padding: 4px 14px !important; font-size: 14px; position: absolute; top: 16px; inset-inline-start: 16px; z-index: 5; min-height: 0; min-width: 0; line-height: 1.4; margin: 0; }
.rs-gallery .woocommerce-product-gallery__wrapper, .rs-gallery .flex-viewport { background: var(--rs-soft); border-radius: 16px; overflow: hidden; }
.rs-gallery .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0 !important; padding: 0; list-style: none; }
.rs-gallery .flex-control-thumbs li { width: 84px !important; float: none !important; }
.rs-gallery .flex-control-thumbs img { border-radius: 10px; border: 1px solid var(--rs-line); opacity: .7; }
.rs-gallery .flex-control-thumbs img.flex-active, .rs-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--rs-navy); }
.rs-summary { position: sticky; top: 24px; }
.rs-pcats { font-size: 14px; color: var(--rs-muted); margin-bottom: 8px; }
.rs-pcats a:hover { color: var(--rs-ink); }
.rs h1.rs-ptitle-main { margin: 0 0 12px; font-family: var(--rs-jewel); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.2; }
.rs-price-main { font-size: 28px !important; font-weight: 700; color: var(--rs-navy); margin-bottom: 18px; }
.rs-price-main del { color: var(--rs-muted); font-weight: 400; font-size: 20px; }
.rs-price-main ins { text-decoration: none; color: #B23B3B; }
.rs-excerpt { color: var(--rs-muted); font-size: 17px; line-height: 1.7; border-top: 1px solid var(--rs-line); padding-top: 18px; margin-bottom: 22px; }
.rs-atc form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0 0 24px; }
.rs-atc form.variations_form { display: block; }
.rs-atc table.variations { width: 100%; margin-bottom: 14px; border: 0; }
.rs-atc table.variations th, .rs-atc table.variations td { border: 0; padding: 4px 0; text-align: start; }
.rs-atc table.variations select { font: inherit; border: 1px solid var(--rs-line); border-radius: 10px; padding: 10px 14px; min-width: 200px; }
.rs-atc .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-atc .quantity input.qty { width: 80px; min-height: 54px; border: 1px solid var(--rs-line); border-radius: 10px; font: inherit; text-align: center; }
.rs-atc .single_add_to_cart_button { flex: 1 1 220px; min-height: 54px; background: var(--rs-navy) !important; color: #fff !important; border: 0; border-radius: 10px !important; font-size: 17px !important; font-weight: 700; cursor: pointer; }
.rs-atc .single_add_to_cart_button:hover { background: #22345C !important; }
.rs-atc .stock { color: var(--rs-muted); margin: 0 0 12px; }
.rs-perks { list-style: none; margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--rs-line); border-radius: 14px; display: grid; gap: 12px; }
.rs-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.rs-perks svg { flex: none; color: var(--rs-link); }
.rs-perks a { color: var(--rs-link); font-weight: 600; text-decoration: underline; }
.rs-meta { font-size: 14px; color: var(--rs-muted); gap: 6px 20px; }
.rs-meta a:hover { color: var(--rs-ink); }

.rs-details { margin-bottom: 72px; }
.rs-details .wc-tabs, .rs-details ul.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0 0 24px !important; padding: 0 !important; border-bottom: 1px solid var(--rs-line); }
.rs-details .wc-tabs li, .rs-details ul.tabs li { margin: 0; padding: 0; border: 0 !important; background: none !important; }
.rs-details .wc-tabs li a, .rs-details ul.tabs li a { display: block; padding: 12px 0; font-weight: 600; color: var(--rs-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rs-details .wc-tabs li.active a, .rs-details ul.tabs li.active a { color: var(--rs-ink); border-color: var(--rs-navy); }
.rs-details .woocommerce-Tabs-panel { font-size: 17px; line-height: 1.75; max-width: 820px; }
.rs-details .woocommerce-Tabs-panel h2 { font-size: 24px; }
.rs-details .woocommerce-Tabs-panel > h2:first-child { display: none; }
.rs-details table.shop_attributes { border-collapse: collapse; width: 100%; max-width: 620px; }
.rs-details table.shop_attributes th, .rs-details table.shop_attributes td { border-bottom: 1px solid var(--rs-line); padding: 10px 0; text-align: start; font-style: normal; }
.rs-related h2.rs-h2 { margin-bottom: 28px; }

/* ---------- footer ---------- */
.rs-footer { background: var(--rs-navy); color: #DDE3EE; padding-block: 48px 24px; }
.rs-footer .rs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.rs-footer h3 { color: #fff; font-size: 18px; margin: 0 0 12px; font-weight: 700; }
.rs-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rs-footer a:hover { color: #fff; text-decoration: underline; }
.rs-footer .rs-copy { border-top: 1px solid #2B3B5E; margin-top: 32px; padding-top: 16px; font-size: 14px; color: #B9C4D6; }

/* עמודי תוכן (צור קשר, אודות, משלוחים) */
.rs-page { padding-block: 24px 56px; line-height: 1.75; }
.rs-narrow { max-width: 780px; }
.rs-page h2 { font-size: 26px; margin: 36px 0 10px; }
.rs-page .rs-lead { font-size: 20px; }
.rs-page a { text-decoration: underline; }
.rs-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 28px 0; }
.rs-contact-grid .rs-card { display: block; border: 1px solid #D8DEE9; border-radius: 10px; padding: 20px; text-decoration: none; color: inherit; }
.rs-contact-grid .rs-card:hover { border-color: var(--rs-navy); }
.rs-contact-grid h3 { margin: 0 0 6px; font-size: 20px; }
.rs-contact-grid p { margin: 0; font-weight: 700; direction: ltr; text-align: right; }
.rs-contact-grid span { font-size: 14px; color: #5A6478; }
.rs-map iframe { width: 100%; height: 340px; border: 0; border-radius: 10px; margin-top: 12px; }

/* כפתור וואטסאפ צף */
.rs-wa { position: fixed; bottom: 20px; left: 20px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.rs-wa:hover { background: #1EBE5A; color: #fff; }
/* כפתור הנגישות (Pojo): עיגול קטן מעל הוואטסאפ במקום לשונית באמצע המסך */
html body #pojo-a11y-toolbar { top: auto !important; bottom: 88px !important; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle { top: auto; bottom: 0; left: auto; right: -70px; width: 44px; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a { width: 44px; height: 44px; padding: 10px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
	.rs-logo img { height: 52px; }
	.rs-search { order: 3; flex: 1 1 100%; }
	.rs-menu { flex-wrap: nowrap; overflow-x: auto; }
	.rs-menu > li > a { white-space: nowrap; }
	.rs-menu > li:hover .rs-panel, .rs-menu > li:focus-within .rs-panel { display: none; }
	.rs-hero { height: 360px; }
	.rs-split { height: 420px; }
	.rs-cathead { padding-block: 20px 28px; }
	.rs-grid .wc-block-product-template { gap: 28px 14px !important; }
	.rs h3.rs-ptitle { font-size: 18px !important; }
	.rs-pbtn .wp-block-button__link, .rs-pbtn .wc-block-components-product-button__button { padding: 9px 10px !important; font-size: 14px !important; }
	.rs-summary { position: static; }
	.rs-carousel { padding-top: 48px; }
	.rs-carousel .wc-block-product-template { gap: 14px !important; }
	.rs-carousel .wc-block-product { flex-basis: 44% !important; }
	.rs-catrow a { flex-basis: 38%; }
	.rs-carnav a { display: none; }
	.rs-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.rs-chips a { white-space: nowrap; }
}
