/* RSG Sinks Catalog — Rio Stone Group */
.rsg-catalog, .rsg-product {
	--rsg-green: #6fa040;
	--rsg-blue: #2f7df6;
	--rsg-blue-dark: #1d63d6;
	--rsg-red: #e0262b;
	--rsg-ink: #1d1d1f;
	--rsg-muted: #5f6368;
	--rsg-line: #e3e3e3;
	--rsg-stage: #ececec;
	--rsg-admin: #f28c28;
	color: var(--rsg-ink);
	box-sizing: border-box;
}
.rsg-catalog *, .rsg-product * { box-sizing: border-box; }
.rsg-single-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px 64px; }

/* ---------- buttons / chips ---------- */
.rsg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 18px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--rsg-blue); color: #fff !important; font-weight: 600; font-size: 15px;
	text-decoration: none !important; line-height: 1.2; transition: background .15s;
}
.rsg-btn:hover { background: var(--rsg-blue-dark); }
.rsg-btn[disabled] { opacity: .6; cursor: wait; }
.rsg-btn--ghost { background: #fff; color: var(--rsg-ink) !important; border: 1px solid #c9c9c9; }
.rsg-btn--ghost:hover { background: #f4f4f4; }
.rsg-btn--pdf { background: #111; }
.rsg-btn--pdf:hover { background: #333; }
.rsg-btn--sync { background: var(--rsg-admin); }
.rsg-btn--sync:hover { background: #d97614; }
.rsg-btn--disabled { background: #ddd; color: #777 !important; cursor: not-allowed; }
.rsg-chip {
	display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--rsg-green);
	color: var(--rsg-ink) !important; text-decoration: none !important; font-weight: 600; font-size: 14px;
}
.rsg-chip.is-active, .rsg-chip:hover { background: var(--rsg-green); color: #fff !important; }

/* ---------- editor/admin only ---------- */
.rsg-admin-only { border: 2px dashed var(--rsg-admin); border-radius: 10px; padding: 12px; background: #fff8f0; position: relative; }
.rsg-admin-only__tag {
	display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: #fff; background: var(--rsg-admin); border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
}
.rsg-admin-only--bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.rsg-admin-only--bar .rsg-admin-only__tag { margin: 0; }
.rsg-admin-only--card { margin-top: 8px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 14px; }
.rsg-admin-only--price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.rsg-admin-only--price .rsg-admin-only__tag { margin: 0; }
.rsg-admin-only--panel { margin-top: 24px; }
.rsg-price { font-weight: 700; }
.rsg-price--big { font-size: 28px; }
.rsg-sku { color: var(--rsg-muted); font-size: 13px; }
.rsg-mini { font-size: 13px; font-weight: 700; color: var(--rsg-blue) !important; }
.rsg-flag { font-size: 12px; background: #555; color: #fff; padding: 2px 8px; border-radius: 4px; }
.rsg-meta { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; line-height: 1.8; }
.rsg-good { color: #2e7d32; font-weight: 600; }
.rsg-bad { color: var(--rsg-red); font-weight: 700; }
.rsg-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rsg-notice { background: #fff3cd; border: 1px solid #f0d27a; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }

/* "Produto não encontrado!" stripe */
.rsg-tarja {
	position: absolute; left: -2px; right: -2px; top: 42%;
	background: var(--rsg-red); color: #fff; text-align: center; font-weight: 800;
	padding: 8px 6px; font-size: 15px; letter-spacing: .02em; transform: rotate(-6deg);
	box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 2;
}
.rsg-tarja--wide { position: static; transform: none; border-radius: 8px; font-size: 18px; margin-bottom: 16px; }

/* ---------- sync widget ---------- */
.rsg-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rsg-sync__last { font-size: 13px; color: var(--rsg-muted); }
.rsg-progress { position: relative; flex: 1 1 100%; height: 22px; background: #eee; border-radius: 6px; overflow: hidden; }
.rsg-progress__bar { height: 100%; width: 0; background: var(--rsg-green); transition: width .3s; }
.rsg-progress__txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rsg-sync-log {
	flex: 1 1 100%; max-height: 220px; overflow: auto; background: #111; color: #d7f5c4;
	font: 12px/1.6 Consolas, Menlo, monospace; padding: 10px 12px; border-radius: 6px; margin-top: 8px;
}
.rsg-sync-log .is-bad { color: #ff8a80; }
.rsg-sync-log .is-warn { color: #ffd180; }

/* ---------- catalog ---------- */
.rsg-catalog__title { text-align: center; color: var(--rsg-green); text-decoration: underline; text-underline-offset: 6px; font-weight: 500; }
.rsg-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 16px; }
.rsg-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 28px; }
.rsg-search input[type="search"] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #cfcfcf; border-radius: 8px; font-size: 15px; }
.rsg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 1024px) { .rsg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rsg-grid { grid-template-columns: 1fr; } }
.rsg-card { text-align: center; }
.rsg-card__link { display: block; color: inherit !important; text-decoration: none !important; }
.rsg-card__name { font-size: 17px; font-weight: 800; text-transform: uppercase; margin: 0 0 8px; line-height: 1.25; height: 2.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rsg-card__frame {
	position: relative; aspect-ratio: 4 / 3; border: 2.5px solid var(--rsg-green); border-radius: 16px;
	background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px;
	transition: box-shadow .2s, transform .2s;
}
.rsg-card__link:hover .rsg-card__frame { box-shadow: 0 8px 22px rgba(0,0,0,.12); transform: translateY(-2px); }
.rsg-card__frame img { width: 100%; height: 100%; object-fit: contain; }
.rsg-card__code { margin-top: 10px; font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.rsg-card.is-not-found .rsg-card__frame img { opacity: .45; }
.rsg-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.rsg-page { min-width: 38px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; text-align: center; text-decoration: none !important; color: var(--rsg-ink) !important; }
.rsg-page.is-active, .rsg-page:hover { background: var(--rsg-green); border-color: var(--rsg-green); color: #fff !important; }
.rsg-empty { text-align: center; color: var(--rsg-muted); padding: 32px 0; }

/* ---------- product: part 1 ---------- */
.rsg-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 22px; }
.rsg-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 2px solid var(--rsg-green); border-radius: 999px; background: #fff; color: var(--rsg-green) !important; font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none !important; position: relative; z-index: 2; transition: background .15s, color .15s; }
.rsg-back:hover, .rsg-back:focus-visible { background: var(--rsg-green); color: #fff !important; }
.rsg-back__arrow { font-size: 18px; }
.rsg-breadcrumb { font-size: 15px; color: var(--rsg-muted); display: flex; flex-wrap: wrap; align-items: center; position: relative; z-index: 2; }
.rsg-breadcrumb .rsg-breadcrumb__link { color: var(--rsg-ink) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; cursor: pointer; }
.rsg-breadcrumb .rsg-breadcrumb__link:hover { color: var(--rsg-green) !important; }
.rsg-breadcrumb__sep { margin: 0 8px; color: #aaa; }
.rsg-breadcrumb__current { color: var(--rsg-muted); }
.rsg-p1 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.rsg-gallery { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.rsg-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow: auto; }
.rsg-thumb { padding: 0; border: 2px solid transparent; background: var(--rsg-stage); cursor: pointer; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.rsg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rsg-thumb.is-active { border-color: var(--rsg-green); }
.rsg-thumb[hidden] { display: none; }
.rsg-main { background: var(--rsg-stage); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.rsg-main__img { width: 100%; height: 100%; object-fit: contain; }
.rsg-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; margin: 0 0 6px; font-weight: 800; }
.rsg-code { font-size: 20px; font-weight: 800; color: var(--rsg-green); margin-bottom: 14px; }
.rsg-summary { font-size: 17px; color: #333; margin: 6px 0 18px; }
.rsg-option { margin-bottom: 18px; }
.rsg-option__label { font-size: 15px; margin-bottom: 8px; }
.rsg-option__values { display: flex; flex-wrap: wrap; gap: 10px; }
.rsg-swatch { width: 58px; height: 58px; padding: 2px; border: 2px solid transparent; background: var(--rsg-stage); border-radius: 4px; cursor: pointer; }
.rsg-swatch img { width: 100%; height: 100%; object-fit: cover; }
.rsg-swatch.is-active { border-color: var(--rsg-green); }
.rsg-pill { padding: 14px 24px; border: 2px solid #d5d5d5; background: #fff; border-radius: 4px; cursor: pointer; font-size: 17px; color: var(--rsg-ink); }
.rsg-pill.is-active { border-color: var(--rsg-green); color: var(--rsg-green); }
.rsg-qty { margin: 6px 0 20px; }
.rsg-qty__box { display: inline-flex; align-items: center; background: #ececec; border-radius: 4px; }
.rsg-qty__btn { width: 52px; height: 56px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--rsg-green); }
.rsg-qty__input { width: 60px; height: 56px; border: 0; background: transparent; text-align: center; font-size: 18px; -moz-appearance: textfield; }
.rsg-qty__input::-webkit-outer-spin-button, .rsg-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rsg-quote {
	display: block; width: 100%; text-align: center; padding: 18px 20px; border-radius: 6px;
	background: var(--rsg-blue); color: #fff !important; font-weight: 800; font-size: 20px; letter-spacing: .06em;
	text-decoration: none !important; transition: background .15s;
}
.rsg-quote:hover { background: var(--rsg-blue-dark); }

/* ---------- product: part 2 ---------- */
.rsg-p2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; margin-top: 56px; align-items: start; }
.rsg-eyebrow { color: var(--rsg-green); text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 18px; }
.rsg-desc__body { font-size: 17px; line-height: 1.65; }
.rsg-desc__body ul { padding-left: 22px; }
.rsg-eco { display: flex; gap: 14px; align-items: flex-start; }
.rsg-eco__icon { width: 26px; height: 26px; color: var(--rsg-green); flex: 0 0 auto; margin-top: 2px; }
.rsg-eco__title { color: var(--rsg-green); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.rsg-eco__text { color: var(--rsg-muted); font-size: 16px; line-height: 1.55; }

@media (max-width: 900px) {
	.rsg-p1, .rsg-p2 { grid-template-columns: 1fr; gap: 28px; }
	.rsg-gallery { grid-template-columns: 1fr; }
	.rsg-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
	.rsg-thumb { flex: 0 0 72px; width: 72px; }
}

/* v1.0.2 — the theme paints every <button> blue: text on blue is always white. */
.rsg-product button.rsg-pill,
.rsg-product button.rsg-pill:hover,
.rsg-product button.rsg-pill:focus,
.rsg-product button.rsg-pill:active {
	background: var(--rsg-blue) !important; border: 2px solid var(--rsg-blue) !important;
	color: #fff !important; font-weight: 600; text-shadow: none !important;
}
.rsg-product button.rsg-pill:hover { background: var(--rsg-blue-dark) !important; border-color: var(--rsg-blue-dark) !important; }
.rsg-product button.rsg-pill.is-active { background: var(--rsg-blue-dark) !important; border-color: var(--rsg-green) !important; color: #fff !important; }
.rsg-product button.rsg-qty__btn,
.rsg-product button.rsg-qty__btn:hover,
.rsg-product button.rsg-qty__btn:focus { color: #fff !important; }
