/*
Theme Name: Souq Affiliate
Theme URI: https://darkblue-mongoose-498746.hostingersite.com/
Author: Souq Affiliate
Description: قالب ثنائي اللغة (عربي RTL / إنجليزي LTR) متكامل لمتاجر التسويق بالعمولة (أمازون أفلييت)، يكتشف لغة الزائر تلقائياً مع زر تبديل يدوي. مبني ليعمل 100% مع Elementor Free وWooCommerce وHostinger Affiliate Marketing Tools. تصميم عصري مستوحى من أمازون لكن أنظف وأسرع، Mobile-First.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: souq-affiliate
Tags: rtl-language-support, e-commerce, custom-menu, custom-logo, featured-images, translation-ready
*/

/* --------------------------------------------------------------------------
   Souq Affiliate — تصميم وتطوير: قناة الصباغ للمعلوميات (Al-Sabbagh Informatics Channel).
   جميع حقوق التصميم محفوظة للمصمم، ويُرجى الإبقاء على هذه الحقوق في الأكواد
   عند التوزيع أو التعديل. حقوق الواجهة الظاهرة: "صنع بحب من خلال قناة الصباغ
   للمعلوميات" في تذييل الموقع، مرتبطة بقناة يوتيوب المصمم.
   -------------------------------------------------------------------------- */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --sq-ink: #0f1b2d;
  --sq-ink-2: #16263d;
  --sq-ink-3: #22354f;
  --sq-amber: #ff9900;
  --sq-amber-dark: #e88b00;
  --sq-flame: #ff6a00;
  --sq-teal: #067d62;
  --sq-link: #0b6bcb;
  --sq-bg: #f3f5f8;
  --sq-surface: #ffffff;
  --sq-line: #e3e8ef;
  --sq-line-strong: #cfd8e3;
  --sq-text: #1b2536;
  --sq-muted: #5b6b7f;
  --sq-danger: #c62828;
  --sq-success: #0f7b3f;

  --sq-radius: 16px;
  --sq-radius-sm: 10px;
  --sq-radius-pill: 999px;

  --sq-shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --sq-shadow: 0 6px 24px rgba(15, 27, 45, .09);
  --sq-shadow-lg: 0 18px 48px rgba(15, 27, 45, .16);

  --sq-container: 1240px;
  --sq-gap: clamp(16px, 2.2vw, 28px);
  --sq-font: "Tajawal", "Segoe UI", "Noto Naskh Arabic", "Arial", sans-serif;
  --sq-header-h: 76px;
}

/* English (LTR) typography: Latin-first stack instead of the Arabic face */
html[dir="ltr"] {
  --sq-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sq-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--sq-text);
  background: var(--sq-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--sq-link); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--sq-flame); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-weight: 800;
  line-height: 1.35;
  color: var(--sq-ink);
  letter-spacing: -.2px;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--sq-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px;
  z-index: 10000; padding: 10px 18px;
  background: var(--sq-ink); color: #fff;
  border-radius: var(--sq-radius-sm); width: auto; height: auto; clip: auto;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.sq-container {
  width: 100%;
  max-width: var(--sq-container);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 28px);
}

.sq-section { padding-block: clamp(32px, 5vw, 64px); }
.sq-section--tight { padding-block: clamp(20px, 3vw, 34px); }
.sq-section--surface { background: var(--sq-surface); }

.sq-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-block-end: 22px;
}
.sq-section__head h2 { margin: 0; }
.sq-section__head p { margin: 6px 0 0; color: var(--sq-muted); font-size: .95rem; }
.sq-section__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .95rem; color: var(--sq-link);
  padding: 8px 14px; border-radius: var(--sq-radius-pill);
  background: rgba(11, 107, 203, .07);
}
.sq-section__link:hover { background: rgba(11, 107, 203, .14); color: var(--sq-link); }

.sq-grid {
  display: grid;
  gap: var(--sq-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.sq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sq-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ==========================================================================
   4. Top bar
   ========================================================================== */
.sq-topbar {
  background: var(--sq-ink);
  color: #dbe4ef;
  font-size: .82rem;
}
.sq-topbar .sq-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 38px; flex-wrap: wrap;
}
.sq-topbar__list {
  display: flex; align-items: center; gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.sq-topbar__list a { color: #dbe4ef; }
.sq-topbar__list a:hover { color: var(--sq-amber); }
.sq-topbar__promo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.sq-topbar__promo .sq-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sq-amber); box-shadow: 0 0 0 4px rgba(255, 153, 0, .18);
}

/* ==========================================================================
   5. Header + Amazon-style search
   ========================================================================== */
.sq-header {
  position: sticky; inset-block-start: 0; z-index: 900;
  background: var(--sq-ink-2);
  color: #fff;
  box-shadow: var(--sq-shadow-sm);
}
.sq-header.is-stuck { box-shadow: var(--sq-shadow); }

.sq-header__main {
  display: flex; align-items: center; gap: clamp(10px, 2vw, 22px);
  min-height: var(--sq-header-h);
  padding-block: 12px;
}

.sq-logo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sq-logo img { max-height: 46px; width: auto; }
.sq-logo__mark {
  display: block;
  width: 46px; height: 46px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(255, 106, 0, .35);
  transition: transform .2s ease;
}
.sq-logo:hover .sq-logo__mark { transform: translateY(-1px) scale(1.03); }
img.sq-logo__mark { max-height: none; height: 46px; width: 46px; object-fit: contain; }
.sq-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.sq-logo__text strong { font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.sq-logo__text span { font-size: .7rem; color: #9fb2c9; letter-spacing: .5px; }

.sq-search { flex: 1 1 420px; min-width: 0; }
.sq-search__form {
  display: flex; align-items: stretch;
  background: #fff; border-radius: var(--sq-radius-pill);
  padding: 4px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
  transition: box-shadow .2s ease;
}
.sq-search__form:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 153, 0, .55), 0 8px 22px rgba(0, 0, 0, .18);
}
.sq-search__select {
  flex: 0 0 auto; max-width: 148px;
  border: 0; background: #f1f4f8; color: var(--sq-ink);
  border-start-start-radius: var(--sq-radius-pill);
  border-end-start-radius: var(--sq-radius-pill);
  padding: 0 14px; font-size: .85rem; font-weight: 700;
  border-inline-end: 1px solid var(--sq-line);
  cursor: pointer;
}
.sq-search__field {
  flex: 1 1 auto; border: 0; background: transparent;
  padding: 11px 16px; min-width: 0; font-size: .95rem; color: var(--sq-text);
  border-radius: var(--sq-radius-pill);
  font-family: inherit;
}
.sq-search__field::placeholder { color: #8b9aae; }
.sq-search__field:focus { outline: none; }
.sq-search__submit {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 46px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--sq-amber), #ffb340);
  color: var(--sq-ink);
  border-radius: var(--sq-radius-pill);
  transition: filter .18s ease, transform .18s ease;
}
.sq-search__submit:hover { filter: brightness(1.06); }
.sq-search__submit:active { transform: scale(.97); }

.sq-header__actions {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
}
.sq-action {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 7px 10px; border-radius: 12px;
  color: #e8eef7; font-size: .7rem; font-weight: 700;
  border: 0; background: transparent; cursor: pointer;
}
.sq-action:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sq-action svg { width: 22px; height: 22px; }
.sq-action__count {
  position: absolute; inset-block-start: 2px; inset-inline-end: 2px;
  min-width: 18px; height: 18px; padding-inline: 4px;
  display: grid; place-items: center;
  border-radius: var(--sq-radius-pill);
  background: var(--sq-amber); color: var(--sq-ink);
  font-size: .68rem; font-weight: 800;
}

/* Language switcher */
.sq-action--lang { text-decoration: none; }
.sq-action--lang svg { transition: transform .2s ease; }
.sq-action--lang:hover svg { transform: rotate(-12deg); }
.sq-lang-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; margin-block-end: 12px;
  border: 1px solid var(--sq-line); border-radius: var(--sq-radius-sm);
}
.sq-lang-row__label { font-size: .76rem; font-weight: 700; color: var(--sq-muted); }
.sq-lang-row__btn {
  flex: 1; padding: 8px 10px; border-radius: 8px; text-align: center;
  font-size: .85rem; font-weight: 700; color: var(--sq-text); text-decoration: none;
}
.sq-lang-row__btn:hover { background: var(--sq-bg); }
.sq-lang-row__btn.is-active { background: var(--sq-teal); color: #fff; }

.sq-burger {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: #fff;
  cursor: pointer; place-items: center;
}
.sq-burger span {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative;
}
.sq-burger span::before, .sq-burger span::after {
  content: ""; position: absolute; inset-inline-start: 0;
  width: 20px; height: 2px; background: currentColor; border-radius: 2px;
}
.sq-burger span::before { inset-block-start: -6px; }
.sq-burger span::after { inset-block-start: 6px; }

/* ==========================================================================
   6. Primary nav + mega menu
   ========================================================================== */
.sq-nav { background: var(--sq-ink); border-block-start: 1px solid rgba(255, 255, 255, .07); }
.sq-nav__inner { display: flex; align-items: center; gap: 4px; position: relative; }
.sq-nav ul { list-style: none; margin: 0; padding: 0; }
.sq-nav > .sq-nav__inner > ul { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

.sq-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 14px; border-radius: 8px;
  color: #e2e9f3; font-size: .92rem; font-weight: 700;
}
.sq-nav a:hover, .sq-nav .current-menu-item > a { background: rgba(255, 255, 255, .09); color: #fff; }
.sq-nav__all {
  background: linear-gradient(135deg, rgba(255, 153, 0, .18), rgba(255, 106, 0, .12));
  color: var(--sq-amber) !important;
  margin-inline-end: 6px;
}
.sq-nav .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .7;
}

.sq-nav .sub-menu {
  position: absolute; inset-block-start: 100%; inset-inline-start: 0;
  min-width: 230px; padding: 10px;
  background: #fff; border-radius: 14px;
  box-shadow: var(--sq-shadow-lg);
  border: 1px solid var(--sq-line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 950;
}
.sq-nav .sub-menu a { color: var(--sq-text); padding: 10px 14px; border-radius: 9px; font-weight: 600; }
.sq-nav .sub-menu a:hover { background: #f2f6fb; color: var(--sq-link); }

/* Mega menu: every top-level category opens its own anchored dropdown panel.
   The panel is a direct child of the item (never a static block in the nav flow). */
.sq-nav .sq-mega { position: relative; }
.sq-nav .sq-mega > .sub-menu {
  inset-inline: auto;
  inset-inline-start: 0;
  inset-block-start: calc(100% + 2px);
  width: max-content;
  min-width: 230px;
  max-width: min(540px, 92vw);
  display: block;
  grid-template-columns: none;
  padding: 10px;
  border-radius: 0 0 14px 14px;
  border-block-start: 3px solid var(--sq-amber);
}
/* invisible bridge: keeps the panel open while the pointer crosses the 2px gap */
.sq-nav .sq-mega > .sub-menu::before {
  content: ""; position: absolute;
  inset-inline: 0; inset-block-end: 100%; height: 10px;
}
.sq-nav .sq-mega > .sub-menu > li { position: static; }
.sq-nav .sq-mega > .sub-menu > li > a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: .9rem; font-weight: 700; color: var(--sq-text);
}
.sq-nav .sq-mega > .sub-menu > li > a:hover { background: #f2f6fb; color: var(--sq-link); }
/* nested child list: static grid inside the panel, never a floating panel itself */
.sq-nav .sq-mega > .sub-menu .sub-menu {
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: 0; padding: 0; min-width: 0; background: transparent;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 10px;
}
.sq-nav .sq-mega > .sub-menu .sub-menu a {
  padding: 7px 10px; color: var(--sq-muted); font-weight: 600; font-size: .88rem;
}
.sq-nav .sq-mega > .sub-menu .sub-menu a:hover { color: var(--sq-link); background: #f2f6fb; }

.sq-nav .menu-item-has-children:not(.sq-mega):hover > .sub-menu,
.sq-nav .menu-item-has-children:not(.sq-mega).is-open > .sub-menu,
.sq-nav .sq-mega:hover > .sub-menu,
.sq-nav .sq-mega.is-open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.sq-mega__promo {
  grid-row: span 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px; padding: 20px; border-radius: 14px;
  background: linear-gradient(150deg, var(--sq-ink-2), var(--sq-ink-3));
  color: #fff; min-height: 190px;
}
.sq-mega__promo strong { font-size: 1.05rem; }
.sq-mega__promo span { color: #a9bcd4; font-size: .82rem; }
.sq-mega__promo a { color: var(--sq-amber); font-weight: 800; font-size: .85rem; padding: 0; }

/* Mobile nav */
.sq-mobile-nav {
  position: fixed; inset: 0; z-index: 1000;
  display: none; background: rgba(9, 17, 29, .55);
  backdrop-filter: blur(2px);
}
.sq-mobile-nav.is-open { display: block; }
.sq-mobile-nav__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: min(88vw, 360px); height: 100%;
  overflow-y: auto; background: #fff; color: var(--sq-text);
  padding: 18px; transform: translateX(-102%);
  transition: transform .25s ease;
}
html[dir="rtl"] .sq-mobile-nav__panel { transform: translateX(102%); }
.sq-mobile-nav.is-open .sq-mobile-nav__panel,
html[dir="rtl"] .sq-mobile-nav.is-open .sq-mobile-nav__panel { transform: translateX(0); }
.sq-mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 14px; }
.sq-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.sq-mobile-nav ul a {
  display: block; padding: 12px 8px; color: var(--sq-text);
  font-weight: 700; border-block-end: 1px solid var(--sq-line);
}
.sq-mobile-nav ul ul a { padding-inline-start: 22px; font-weight: 600; color: var(--sq-muted); }
.sq-close {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--sq-line);
  background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--sq-ink);
}
body.sq-locked { overflow: hidden; }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.sq-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(255, 153, 0, .22), transparent 62%),
    radial-gradient(700px 400px at 92% 12%, rgba(11, 107, 203, .25), transparent 60%),
    linear-gradient(160deg, #0b1524, #16263d 62%, #1c3050);
  color: #fff;
  padding-block: clamp(34px, 6vw, 76px);
}
.sq-hero::after {
  content: "";
  position: absolute; inset-block-end: -140px; inset-inline-start: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, .28), transparent 68%);
  filter: blur(6px);
}
.sq-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(22px, 4vw, 54px); align-items: center;
}
.sq-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--sq-radius-pill);
  background: rgba(255, 153, 0, .16); color: var(--sq-amber);
  border: 1px solid rgba(255, 153, 0, .4);
  font-size: .8rem; font-weight: 800; margin-block-end: 16px;
}
.sq-hero h1 { color: #fff; margin-block-end: 14px; }
.sq-hero h1 span { color: var(--sq-amber); }
.sq-hero__lead { color: #c3d2e4; font-size: clamp(.95rem, 1.4vw, 1.1rem); max-width: 52ch; }
.sq-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }
.sq-hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 34px);
  margin-block-start: 28px; padding-block-start: 20px;
  border-block-start: 1px solid rgba(255, 255, 255, .12);
}
.sq-hero__stats strong { display: block; font-size: 1.3rem; color: #fff; }
.sq-hero__stats span { font-size: .78rem; color: #9fb2c9; }

.sq-countdown {
  display: flex; gap: 8px; margin-block-start: 18px;
}
.sq-countdown div {
  min-width: 58px; padding: 8px 6px; text-align: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
}
.sq-countdown b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: #fff; }
.sq-countdown small { font-size: .66rem; color: #a9bcd4; }

.sq-hero__card {
  position: relative;
  background: linear-gradient(180deg, #fff, #f6f9fd);
  border-radius: 22px; padding: 18px;
  color: var(--sq-text);
  box-shadow: var(--sq-shadow-lg);
  transform: rotate(-1.2deg);
}
.sq-hero__card img,
.sq-hero__card .sq-thumb { border-radius: 16px; }
.sq-hero__card img {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: center;
  border-radius: 16px; background: #fff;
}
.sq-hero__card::before {
  content: "الأكثر مبيعاً";
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  z-index: 3; background: var(--sq-danger); color: #fff;
  font-size: .7rem; font-weight: 800; padding: 5px 10px; border-radius: var(--sq-radius-pill);
}

/* ==========================================================================
   8. Buttons
   ========================================================================== */
.sq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--sq-radius-pill);
  font-weight: 800; font-size: .95rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  text-align: center;
}
.sq-btn:active { transform: translateY(1px); }

.sq-btn--primary {
  background: linear-gradient(135deg, var(--sq-amber), #ffb942);
  color: #241703; box-shadow: 0 8px 20px rgba(255, 153, 0, .32);
}
.sq-btn--primary:hover { filter: brightness(1.05); color: #241703; box-shadow: 0 10px 26px rgba(255, 153, 0, .42); }

.sq-btn--dark { background: var(--sq-ink); color: #fff; }
.sq-btn--dark:hover { background: var(--sq-ink-3); color: #fff; }

.sq-btn--ghost {
  background: rgba(255, 255, 255, .08); color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.sq-btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.sq-btn--block { width: 100%; }
.sq-btn--sm { padding: 9px 16px; font-size: .85rem; }

/* ==========================================================================
   9. Product / deal cards
   ========================================================================== */
.sq-deal {
  position: relative; display: flex; flex-direction: column;
  background: var(--sq-surface); border: 1px solid var(--sq-line);
  border-radius: var(--sq-radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
}
.sq-deal:hover { transform: translateY(-4px); box-shadow: var(--sq-shadow); border-color: var(--sq-line-strong); }

.sq-deal__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.sq-deal__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.sq-deal:hover .sq-deal__media img { transform: scale(1.05); }
.sq-thumb {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #22354f, #0f1b2d);
}

.sq-badge {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px;
  padding: 5px 10px; border-radius: var(--sq-radius-pill);
  font-size: .7rem; font-weight: 800; color: #fff;
  background: var(--sq-danger); box-shadow: 0 4px 12px rgba(198, 40, 40, .35);
}
.sq-badge--deal { background: linear-gradient(135deg, var(--sq-flame), #ff8f3c); color: #2a1200; }
.sq-badge--new { background: var(--sq-teal); }
.sq-badge--best { background: var(--sq-ink); }

.sq-deal__store {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: var(--sq-radius-pill);
  background: rgba(255, 255, 255, .94); color: var(--sq-ink);
  font-size: .68rem; font-weight: 800; backdrop-filter: blur(4px);
}

.sq-deal__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1 1 auto; }
.sq-deal__cat { font-size: .72rem; font-weight: 700; color: var(--sq-muted); letter-spacing: .2px; }
.sq-deal__title { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.55; }
.sq-deal__title a { color: var(--sq-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sq-deal__title a:hover { color: var(--sq-link); }

.sq-rating { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--sq-muted); }
.sq-stars { display: inline-flex; gap: 1px; color: var(--sq-amber); letter-spacing: .5px; line-height: 1; }
.sq-stars span { font-size: .95rem; }
.sq-stars .is-empty { color: #d5dde8; }

.sq-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-block-start: auto; }
.sq-price__now { font-size: 1.18rem; font-weight: 800; color: var(--sq-ink); }
.sq-price__now small { font-size: .72rem; font-weight: 600; color: var(--sq-muted); }
.sq-price__old { font-size: .85rem; color: var(--sq-muted); text-decoration: line-through; }
.sq-price__off { font-size: .74rem; font-weight: 800; color: var(--sq-success); }

.sq-deal__footer { padding: 0 16px 16px; }
.sq-deal__note { margin: 8px 0 0; font-size: .7rem; color: var(--sq-muted); text-align: center; }

/* Category tiles */
/* Category strip: every category sits on ONE row, all equal width */
.sq-cats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 18px);
}

.sq-cat-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 18px 12px 15px; text-align: center;
  background: radial-gradient(125% 95% at 50% 0%, #ffffff 0%, #f7faff 52%, #eaf2fb 100%);
  border: 1px solid var(--sq-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .25s ease, border-color .22s ease;
}
.sq-cat-tile::before {
  content: ""; position: absolute; inset-block-start: -55%; inset-inline: -10%;
  height: 105%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 153, 0, .22), rgba(255, 153, 0, 0) 72%);
  opacity: .55; transition: opacity .25s ease, transform .3s ease;
  pointer-events: none;
}
.sq-cat-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(12, 26, 44, .13);
  border-color: rgba(255, 153, 0, .55);
}
.sq-cat-tile:hover::before { opacity: 1; transform: translateY(6px) scale(1.05); }

.sq-cat-tile__icon {
  position: relative;
  display: grid; place-items: center;
  width: clamp(74px, 7vw, 98px); height: clamp(74px, 7vw, 98px);
  margin-block-end: 2px; font-size: 2rem;
}
.sq-cat-tile__icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(12, 26, 44, .22));
  transition: transform .26s ease;
}
.sq-cat-tile:hover .sq-cat-tile__icon img { transform: translateY(-3px) scale(1.05); }
.sq-cat-tile__emoji { line-height: 1; }

.sq-cat-tile strong {
  position: relative; color: var(--sq-ink);
  font-size: clamp(.88rem, .95vw, 1rem); font-weight: 800;
  letter-spacing: -.1px;
}
.sq-cat-tile .sq-cat-tile__count {
  position: relative;
  color: var(--sq-muted); font-size: .74rem; font-weight: 700;
  background: rgba(11, 107, 203, .07);
  padding: 3px 11px; border-radius: var(--sq-radius-pill);
}
.sq-cat-tile__arrow {
  position: absolute; inset-block-start: 12px; inset-inline-start: 13px;
  color: var(--sq-link); font-weight: 800; opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.sq-cat-tile:hover .sq-cat-tile__arrow { opacity: 1; transform: translateX(-4px); }

/* Tablets: keep the single row, scroll it horizontally instead of wrapping */
@media (max-width: 900px) {
  .sq-cats {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 58%);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding-block-end: 8px;
    scrollbar-width: thin;
  }
  .sq-cat-tile { scroll-snap-align: start; }
}

/* Phones: two categories per row, no horizontal scrolling */
@media (max-width: 620px) {
  .sq-cats {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
    padding-block-end: 0;
  }
  .sq-cat-tile {
    padding: 14px 10px 12px;
    border-radius: 16px;
    scroll-snap-align: none;
  }
  .sq-cat-tile__icon { width: 64px; height: 64px; }
  .sq-cat-tile strong { font-size: .84rem; }
  .sq-cat-tile .sq-cat-tile__count { font-size: .68rem; padding: 2px 9px; }
  .sq-cat-tile__arrow { display: none; }
  /* An odd last category stretches across the row instead of sitting alone */
  .sq-cats .sq-cat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Trust strip */
.sq-trust {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border-block: 1px solid var(--sq-line);
}
.sq-trust__grid {
  list-style: none; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; padding-block: 14px; padding-inline: 0;
}
.sq-trust__item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 16px;
  transition: background .2s ease, box-shadow .2s ease;
}
.sq-trust__item + .sq-trust__item::before {
  content: ""; position: absolute;
  inset-block: 16px; inset-inline-start: -3px;
  width: 1px; background: var(--sq-line);
}
.sq-trust__item:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(12, 26, 44, .07);
}
.sq-trust__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--sq-teal);
  background: linear-gradient(150deg, rgba(6, 125, 98, .14), rgba(6, 125, 98, .05));
  border: 1px solid rgba(6, 125, 98, .14);
}
.sq-trust__icon svg { width: 23px; height: 23px; }
.sq-trust__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sq-trust__text strong {
  font-size: .93rem; font-weight: 800; color: var(--sq-ink);
  line-height: 1.5; letter-spacing: -.1px;
}
.sq-trust__text > span {
  font-size: .76rem; color: var(--sq-muted); line-height: 1.6;
}

@media (max-width: 1100px) {
  .sq-trust__item { padding-inline: 8px; gap: 10px; }
  .sq-trust__icon { width: 42px; height: 42px; border-radius: 12px; }
  .sq-trust__icon svg { width: 21px; height: 21px; }
  .sq-trust__text strong { font-size: .86rem; }
  .sq-trust__text > span { font-size: .72rem; }
}

/* Promo banners */
.sq-promo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sq-gap);
}
.sq-promo__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: 8px; min-height: 190px; padding: clamp(18px, 3vw, 32px);
  border-radius: var(--sq-radius); color: #fff;
  background: linear-gradient(130deg, #16263d, #23405f);
}
.sq-promo__card--amber { background: linear-gradient(130deg, #ff9900, #ff6a00); color: #2a1200; }
.sq-promo__card--teal { background: linear-gradient(130deg, #067d62, #0aa37d); }
.sq-promo__card--onlight { color: #2a1200; }
.sq-promo__card--ondark { color: #fff; }
.sq-promo__card h3 { color: inherit; margin: 0; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.sq-promo__card p { margin: 0; font-size: .88rem; opacity: .9; }
.sq-promo__card .sq-btn { align-self: flex-start; margin-block-start: 10px; }

/* Newsletter */
.sq-newsletter {
  background: linear-gradient(135deg, var(--sq-ink), #1d3452);
  color: #fff; border-radius: 22px;
  padding: clamp(22px, 4vw, 44px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(16px, 3vw, 34px);
  align-items: center; box-shadow: var(--sq-shadow);
}
.sq-newsletter h2 { color: #fff; margin-block-end: 6px; }
.sq-newsletter p { color: #b9c9dd; margin: 0; }
.sq-newsletter__form { display: flex; gap: 8px; background: rgba(255, 255, 255, .08); padding: 6px; border-radius: var(--sq-radius-pill); border: 1px solid rgba(255, 255, 255, .16); }
.sq-newsletter__form input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  color: #fff; padding: 10px 16px;
}
.sq-newsletter__form input::placeholder { color: #9fb2c9; }
.sq-newsletter__form input:focus { outline: none; }

/* ==========================================================================
   9b. Articles / buying-guide cards
   ========================================================================== */
.sq-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.sq-post-card {
  display: flex; flex-direction: column;
  background: var(--sq-surface);
  border: 1px solid var(--sq-line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .25s ease, border-color .22s ease;
}
.sq-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(12, 26, 44, .14);
  border-color: rgba(255, 153, 0, .5);
}

.sq-post-card__media {
  display: block; aspect-ratio: 16 / 10;
  overflow: hidden; background: #eef2f7;
}
.sq-post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.sq-post-card:hover .sq-post-card__media img { transform: scale(1.06); }

.sq-post-card__body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px 18px;
  flex: 1 1 auto;
}
.sq-post-card__meta {
  display: flex; align-items: center; gap: 7px;
  color: var(--sq-muted); font-size: .75rem; font-weight: 600;
}
.sq-post-card__cat { color: #b96a00; font-weight: 800; }
.sq-post-card__body h3 {
  margin: 0; font-size: 1.02rem; line-height: 1.55;
}
.sq-post-card__body h3 a { color: var(--sq-ink); }
.sq-post-card__body h3 a:hover { color: var(--sq-link); }
.sq-post-card__body p {
  margin: 0; color: var(--sq-muted);
  font-size: .87rem; line-height: 1.75;
}
.sq-post-card__more {
  margin-block-start: auto; padding-block-start: 6px;
  font-size: .85rem; font-weight: 800; color: var(--sq-link);
}
.sq-post-card__more:hover { color: var(--sq-amber); }

/* Tablets: two article cards per row instead of a horizontal scroller */
@media (max-width: 900px) {
  .sq-posts {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
    padding-block-end: 0;
  }
  .sq-post-card { scroll-snap-align: none; }
}

/* Phones: one compact article card per row (image on the side, text beside it) */
@media (max-width: 620px) {
  .sq-posts { grid-template-columns: 1fr; gap: 12px; }
  .sq-posts .sq-post-card {
    flex-direction: row; align-items: stretch;
    border-radius: 18px;
  }
  .sq-posts .sq-post-card__media {
    flex: 0 0 38%; max-width: 38%;
    aspect-ratio: auto; align-self: stretch;
  }
  .sq-posts .sq-post-card__media img { height: 100%; min-height: 126px; }
  .sq-posts .sq-post-card__body { padding: 12px 14px; gap: 4px; }
  .sq-posts .sq-post-card__meta { font-size: .68rem; gap: 5px; }
  .sq-posts .sq-post-card__body h3 { font-size: .9rem; line-height: 1.5; }
  .sq-posts .sq-post-card__body p {
    font-size: .78rem; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sq-posts .sq-post-card__more { font-size: .78rem; padding-block-start: 2px; }
}

/* ==========================================================================
   10. Archive / listing
   ========================================================================== */
.sq-page-head {
  background: linear-gradient(140deg, var(--sq-ink), #1d3452);
  color: #fff; padding-block: clamp(26px, 4vw, 46px);
}
.sq-page-head h1 { color: #fff; margin: 0 0 6px; }
.sq-page-head p { color: #b9c9dd; margin: 0; }
.sq-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: #9fb2c9; margin-block-end: 10px; }
.sq-breadcrumb a { color: #cfe0f4; }
.sq-breadcrumb span[aria-hidden] { opacity: .5; }

.sq-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; padding-block: clamp(24px, 4vw, 44px); }

.sq-sidebar {
  position: sticky; inset-block-start: calc(var(--sq-header-h) + 16px);
  background: var(--sq-surface); border: 1px solid var(--sq-line);
  border-radius: var(--sq-radius); padding: 18px;
}
.sq-sidebar h3 { font-size: 1rem; margin-block-end: 12px; }
.sq-sidebar ul { list-style: none; margin: 0; padding: 0; }
.sq-sidebar li + li { border-block-start: 1px solid var(--sq-line); }
.sq-sidebar a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 9px 0; font-size: .88rem; font-weight: 600; color: var(--sq-text);
}
.sq-sidebar a:hover { color: var(--sq-link); }
.sq-sidebar .count { color: var(--sq-muted); font-size: .78rem; }

.sq-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-block-end: 18px;
  background: var(--sq-surface); border: 1px solid var(--sq-line);
  border-radius: 12px; padding: 10px 16px; font-size: .85rem; color: var(--sq-muted);
}

/* Single deal */
.sq-single { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 44px); padding-block: clamp(24px, 4vw, 44px); }
.sq-single__media { background: #fff; border: 1px solid var(--sq-line); border-radius: var(--sq-radius); overflow: hidden; }
.sq-single__media img { width: 100%; }
.sq-single__box { background: #fff; border: 1px solid var(--sq-line); border-radius: var(--sq-radius); padding: clamp(18px, 3vw, 30px); box-shadow: var(--sq-shadow-sm); }
.sq-single h1 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-block-end: 12px; }
.sq-single .sq-price__now { font-size: 1.7rem; }
.sq-single__facts { display: grid; gap: 8px; margin-block: 18px; padding-block: 16px; border-block: 1px solid var(--sq-line); }
.sq-single__facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.sq-single__facts dt { color: var(--sq-muted); }
.sq-single__facts dd { margin: 0; font-weight: 700; }

.sq-disclosure {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .78rem; color: var(--sq-muted);
  background: #f7fafd; border: 1px dashed var(--sq-line-strong);
  border-radius: 12px; padding: 12px 14px; margin-block: 16px;
}
.sq-disclosure svg { width: 18px; height: 18px; color: var(--sq-teal); flex: 0 0 auto; margin-block-start: 2px; }

/* ==========================================================================
   11. Entry content (pages, posts)
   ========================================================================== */
.sq-content { max-width: 860px; margin-inline: auto; padding-block: clamp(26px, 4vw, 52px); }
.sq-content__box {
  background: #fff; border: 1px solid var(--sq-line);
  border-radius: var(--sq-radius); padding: clamp(20px, 3vw, 38px);
}
.sq-content__box h2 { margin-block-start: 1.4em; }
.sq-content__box h2:first-child { margin-block-start: 0; }
.sq-content__box img { border-radius: 12px; }
.sq-content__box blockquote {
  margin: 1.4em 0; padding: 14px 18px;
  border-inline-start: 4px solid var(--sq-amber);
  background: #fff9ee; border-radius: 10px; color: var(--sq-ink-3);
}
.sq-content__box table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sq-content__box th, .sq-content__box td { padding: 10px 12px; border-block-end: 1px solid var(--sq-line); text-align: start; }
.sq-content__box th { background: #f5f8fc; font-weight: 800; }

.sq-404 { text-align: center; padding-block: clamp(40px, 8vw, 90px); }
.sq-404__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--sq-line-strong); }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.sq-footer { background: #0b1521; color: #b8c7d9; margin-block-start: clamp(30px, 5vw, 60px); }
.sq-footer__top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px); padding-block: clamp(30px, 5vw, 56px);
}
.sq-footer h3 { color: #fff; font-size: .98rem; margin-block-end: 14px; }
.sq-footer a { color: #b8c7d9; font-size: .88rem; }
.sq-footer a:hover { color: var(--sq-amber); }
.sq-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sq-footer__brand p { font-size: .86rem; color: #8fa3ba; max-width: 34ch; }
.sq-footer__social { display: flex; gap: 8px; margin-block-start: 14px; }
.sq-footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}
.sq-footer__social a:hover { background: rgba(255, 153, 0, .18); }
.sq-footer__social svg { width: 18px; height: 18px; }

.sq-footer__bottom {
  border-block-start: 1px solid rgba(255, 255, 255, .09);
  padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: .8rem;
}
.sq-footer__legal { display: grid; gap: 7px; }
.sq-footer__credit { margin: 0; }
.sq-footer__credit-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; letter-spacing: .2px; text-decoration: none;
  color: rgba(255, 255, 255, .62);
  transition: color .18s ease;
}
.sq-footer__credit-link svg { width: 17px; height: 17px; flex: none; color: #ff4d4d; transition: color .18s ease; }
.sq-footer__credit-link .sq-credit-heart { color: #ff6060; font-size: .95em; line-height: 1; }
.sq-footer__credit-link:hover, .sq-footer__credit-link:focus-visible { color: #f5a524; }
.sq-footer__credit-link:hover svg, .sq-footer__credit-link:focus-visible svg { color: #f5a524; }
.sq-payments { display: flex; align-items: center; gap: 8px; }
.sq-payments span {
  padding: 5px 10px; border-radius: 8px; font-size: .68rem; font-weight: 800;
  background: rgba(255, 255, 255, .08); color: #dce7f3;
  border: 1px solid rgba(255, 255, 255, .1);
}

.sq-disclosure-bar {
  background: #070f19; color: #7f93aa;
  font-size: .74rem; text-align: center;
  padding: 12px 16px; line-height: 1.7;
}

/* Floating live chat + back to top */
/* Floating actions: chat pinned bottom-left, back-to-top bottom-right.
   Physical sides are used on purpose so RTL never mirrors them. */
.sq-float { position: static; z-index: 800; }
.sq-float__btn {
  position: fixed; bottom: 18px; z-index: 800;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
  transition: transform .18s ease;
}
.sq-float__btn:hover { transform: translateY(-3px); }
.sq-float__btn svg { width: 24px; height: 24px; }
.sq-float .sq-chat { left: 18px; right: auto; background: linear-gradient(135deg, #0aa37d, #067d62); }
.sq-float .sq-top { right: 18px; left: auto; }
.sq-top { background: var(--sq-ink); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.sq-top.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   12b. Hostinger Affiliate Marketing Tools integration
   The plugin renders: Gutenberg blocks (hostinger-affiliate-plugin/block),
   an Elementor widget ("Affiliate product") and product-table shortcodes.
   These rules make its output inherit the store's card design.
   ========================================================================== */
.wp-block-hostinger-affiliate-plugin-block,
.wp-block-hostinger-affiliate-plugin-mercado-block,
.elementor-widget[class*="hostinger"] .elementor-widget-container {
  background: var(--sq-surface);
  border: 1px solid var(--sq-line);
  border-radius: var(--sq-radius);
  padding: 14px;
  box-shadow: var(--sq-shadow-sm);
  color: var(--sq-text);
  font-family: var(--sq-font);
}

.wp-block-hostinger-affiliate-plugin-block:hover,
.wp-block-hostinger-affiliate-plugin-mercado-block:hover {
  box-shadow: var(--sq-shadow);
  border-color: var(--sq-line-strong);
}

.wp-block-hostinger-affiliate-plugin-block img,
.wp-block-hostinger-affiliate-plugin-mercado-block img {
  border-radius: 12px;
  height: auto;
}

.wp-block-hostinger-affiliate-plugin-block a,
.wp-block-hostinger-affiliate-plugin-mercado-block a {
  color: var(--sq-ink);
  font-weight: 700;
  text-decoration: none;
}

/* Call-to-action buttons rendered by the plugin */
.wp-block-hostinger-affiliate-plugin-block a[class*="button"],
.wp-block-hostinger-affiliate-plugin-block button,
.wp-block-hostinger-affiliate-plugin-mercado-block a[class*="button"],
.wp-block-hostinger-affiliate-plugin-mercado-block button,
.elementor-widget[class*="hostinger"] a[class*="button"],
.elementor-widget[class*="hostinger"] button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--sq-radius-pill);
  background: linear-gradient(135deg, var(--sq-amber), #ffb942);
  color: #241703;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 8px 20px rgba(255, 153, 0, .28);
  transition: filter .2s ease, transform .16s ease;
}

.wp-block-hostinger-affiliate-plugin-block a[class*="button"]:hover,
.wp-block-hostinger-affiliate-plugin-block button:hover,
.elementor-widget[class*="hostinger"] a[class*="button"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Price text rendered by the plugin */
.wp-block-hostinger-affiliate-plugin-block [class*="price"],
.wp-block-hostinger-affiliate-plugin-mercado-block [class*="price"] {
  color: var(--sq-ink);
  font-weight: 800;
  font-size: 1.05rem;
}

/* Product tables keep the theme typography and horizontal scroll on mobile */
.wp-block-hostinger-affiliate-plugin-block table,
.elementor-widget[class*="hostinger"] table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.wp-block-hostinger-affiliate-plugin-block th,
.wp-block-hostinger-affiliate-plugin-block td,
.elementor-widget[class*="hostinger"] th,
.elementor-widget[class*="hostinger"] td {
  padding: 10px 12px;
  border-block-end: 1px solid var(--sq-line);
  text-align: start;
}

@media (max-width: 620px) {
  .wp-block-hostinger-affiliate-plugin-block,
  .elementor-widget[class*="hostinger"] .elementor-widget-container {
    padding: 10px;
  }
}

/* Elementor section helpers so custom sections match the theme */
.sq-elementor-section { padding-block: clamp(28px, 4vw, 56px); }
.elementor-widget-shortcode .sq-grid { margin-block: 0; }

/* ==========================================================================
   13. Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--sq-line-strong); border-radius: var(--sq-radius-sm);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sq-amber);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, .18);
}
textarea { min-height: 130px; resize: vertical; }
label { display: block; font-size: .85rem; font-weight: 700; margin-block-end: 6px; color: var(--sq-ink); }

/* The header search keeps its own pill styling (the generic input rules above must not win) */
.sq-search .sq-search__field {
  width: auto; padding: 11px 16px; border: 0; background: transparent;
  border-radius: var(--sq-radius-pill); box-shadow: none;
}
.sq-search .sq-search__field:focus { border: 0; box-shadow: none; }
.sq-search .sq-search__select {
  width: auto; padding: 0 14px; border: 0;
  border-inline-end: 1px solid var(--sq-line);
  border-start-start-radius: var(--sq-radius-pill);
  border-end-start-radius: var(--sq-radius-pill);
  box-shadow: none;
}

.sq-form { display: grid; gap: 16px; }
.sq-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.sq-contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(18px, 3vw, 32px); }
.sq-contact-card {
  background: #fff; border: 1px solid var(--sq-line);
  border-radius: var(--sq-radius); padding: 22px;
  display: grid; gap: 14px; align-content: start;
}
.sq-contact-card__item { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.sq-contact-card__item svg { width: 22px; height: 22px; color: var(--sq-teal); flex: 0 0 auto; }

/* ==========================================================================
   14. Responsive (mobile-first refinements)
   ========================================================================== */
@media (max-width: 1100px) {
  .sq-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sq-nav .sq-mega > .sub-menu { grid-template-columns: repeat(2, minmax(0, 1fr)) 240px; }
}

@media (max-width: 960px) {
  .sq-hero__inner { grid-template-columns: 1fr; }
  .sq-hero__card { max-width: 420px; margin-inline: auto; transform: none; }
  .sq-layout { grid-template-columns: 1fr; }
  .sq-sidebar { position: static; }
  /* On small screens show the deals grid first, then the category panel. */
  .sq-layout > div { order: 1; }
  .sq-layout > .sq-sidebar { order: 2; }
  .sq-single { grid-template-columns: 1fr; }
  .sq-newsletter { grid-template-columns: 1fr; }
  .sq-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sq-contact-grid { grid-template-columns: 1fr; }
  .sq-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-block: 12px; }
  .sq-trust__item { padding: 12px; background: #fff; border: 1px solid var(--sq-line); }
  .sq-trust__item + .sq-trust__item::before { display: none; }
  .sq-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --sq-header-h: 66px; }
  .sq-header__main { flex-wrap: wrap; row-gap: 8px; }
  .sq-nav { display: none; }
  /* RTL phone header: brand on the right, actions + burger pinned to the far left */
  .sq-logo { order: 1; }
  .sq-header__actions { order: 2; margin-inline-start: auto; gap: 2px; }
  .sq-burger { display: grid; order: 3; }
  .sq-header__actions .sq-action__label { display: none; }
  .sq-action { padding: 8px; }
  /* The phone header keeps the original 3 actions; the switcher lives in the drawer. */
  .sq-header__actions .sq-action--lang { display: none; }
  .sq-search { order: 4; flex: 1 1 100%; }
  .sq-search__select { display: none; }
  .sq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  /* Trust cards: 2×2 with the icon above the text */
  .sq-trust__grid { gap: 8px; padding-block: 12px; }
  .sq-trust__item {
    flex-direction: column; align-items: center; text-align: center;
    gap: 8px; padding: 12px 8px; border-radius: 14px;
  }
  .sq-trust__item:hover { box-shadow: none; }
  .sq-trust__icon { width: 38px; height: 38px; border-radius: 11px; }
  .sq-trust__icon svg { width: 19px; height: 19px; }
  .sq-trust__text strong { font-size: .8rem; }
  .sq-trust__text > span { font-size: .68rem; }

  /* Compact header search: slimmer bar, fully rounded button */
  .sq-search__form { padding: 3px; }
  .sq-search .sq-search__field { padding: 6px 12px; font-size: .82rem; }
  .sq-search__submit { width: 34px; height: 34px; margin-inline-start: 2px; }
  .sq-search__submit svg { width: 16px; height: 16px; }

  body { font-size: 15px; }
  .sq-promo { grid-template-columns: 1fr; }
  .sq-form__row { grid-template-columns: 1fr; }
  .sq-footer__top { grid-template-columns: 1fr; }
  .sq-topbar__list { display: none; }
  .sq-topbar .sq-container { justify-content: center; }
  .sq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .sq-deal__body { padding: 12px; gap: 6px; }
  .sq-deal__title { font-size: .88rem; }
  .sq-price__now { font-size: 1.02rem; }
  .sq-deal__footer { padding: 0 12px 12px; }
  .sq-btn { padding: 11px 18px; font-size: .88rem; }
  .sq-hero__stats { gap: 18px; }
  .sq-float__btn { width: 48px; height: 48px; bottom: 14px; }
  .sq-float .sq-chat { left: 14px; }
  .sq-float .sq-top { right: 14px; }
}

@media (max-width: 340px) {
  .sq-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   15. Motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .sq-header, .sq-nav, .sq-footer, .sq-float, .sq-topbar { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   13. Product description blocks (specs / verdict / note)
   ========================================================================== */
.sq-specs { list-style: none !important; padding-inline-start: 0 !important; }
.sq-specs li {
  background: #f4f8fc; border-radius: 10px;
  padding: 8px 12px; margin-block: 6px !important;
  font-size: .95rem; color: #31485f;
}
.sq-verdict {
  background: linear-gradient(135deg, #0f2036, #1d3452);
  color: #fff; border-radius: 18px;
  padding: 18px 22px; margin-block-start: 1.8em;
}
.sq-verdict strong { display: block; color: #ffc27a; margin-block-end: 6px; font-size: .95rem; }
.sq-verdict p { margin: 0; color: #dce6f2; line-height: 1.9; }
.sq-note {
  font-size: .9rem; color: #6b7b8f; background: #f7f9fc;
  border-radius: 12px; padding: 12px 16px;
}

/* ==========================================================================
   14. Single article
   ========================================================================== */
.sq-art__head { padding-block: 30px 6px; }
.sq-art__cat {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: #b45309; background: #fff3e2;
  border-radius: var(--sq-radius-pill); padding: 6px 13px;
  text-decoration: none;
}
.sq-art__title {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.45; margin-block: 14px 12px; color: #0f2036;
}
.sq-art__lede { font-size: 1.05rem; color: #5b6b80; line-height: 1.9; max-width: 68ch; margin: 0; }
.sq-art__meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-block-start: 18px; font-size: .85rem; color: #6b7b8f;
}
.sq-art__meta span { display: inline-flex; align-items: center; gap: 6px; }
.sq-art__meta svg { width: 16px; height: 16px; color: var(--sq-flame); }
.sq-art__figure { margin-block: 22px 6px; }
.sq-art__figure img {
  width: 100%; height: auto; max-height: 440px; object-fit: cover;
  border-radius: 22px; box-shadow: 0 18px 40px rgba(15, 32, 54, .12);
}
.sq-art {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px; align-items: start; padding-block: 26px 56px;
}
.sq-art__main { min-width: 0; }
.sq-art__side { position: sticky; top: 96px; display: grid; gap: 16px; }

.sq-prose { font-size: 1.02rem; line-height: 2; color: #26374b; }
.sq-prose > * + * { margin-block-start: 1.1em; }
.sq-prose h2 {
  font-size: 1.4rem; line-height: 1.6; margin-block: 2em .7em;
  padding-inline-start: 14px; border-inline-start: 4px solid var(--sq-flame);
  color: #0f2036; scroll-margin-top: 96px;
}
.sq-prose h3 { font-size: 1.15rem; color: #0f2036; margin-block: 1.6em .5em; }
.sq-prose ul, .sq-prose ol { padding-inline-start: 1.3em; }
.sq-prose li { margin-block: .5em; }
.sq-prose blockquote {
  margin-block: 1.6em; padding: 16px 20px;
  background: #fff6ea; border-inline-start: 4px solid var(--sq-flame);
  border-radius: 14px; color: #5a4023; font-weight: 500;
}
.sq-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sq-prose th, .sq-prose td { padding: 10px 12px; border-bottom: 1px solid #e6ebf2; text-align: start; }
.sq-prose th { background: #f4f7fb; font-weight: 700; }
.sq-prose img { height: auto; border-radius: 16px; }
.sq-prose a { color: #c2410c; text-decoration: underline; text-underline-offset: 3px; }

.sq-art__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 26px; }
.sq-art__tags a {
  background: #eef3f9; color: #31485f; border-radius: var(--sq-radius-pill);
  padding: 6px 12px; font-size: .82rem; text-decoration: none;
}
.sq-art__share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-block-start: 24px; padding-block-start: 22px; border-top: 1px solid #e6ebf2;
}
.sq-art__share strong { font-size: .9rem; color: #415468; }
.sq-art__share-btn {
  background: #0f2036; color: #fff !important; border-radius: var(--sq-radius-pill);
  padding: 8px 16px; font-size: .82rem; text-decoration: none;
}
.sq-art__share-btn:hover { background: var(--sq-flame); }
.sq-author {
  display: flex; gap: 14px; align-items: flex-start;
  margin-block-start: 26px; background: #f6f9fc; border-radius: 18px; padding: 18px;
}
.sq-author img { border-radius: 50%; display: block; }
.sq-author strong { color: #0f2036; }
.sq-author p { margin: 6px 0 0; font-size: .88rem; color: #5b6b80; line-height: 1.8; }

.sq-toc, .sq-side-cta, .sq-side-list {
  background: #fff; border: 1px solid var(--sq-line); border-radius: 18px; padding: 18px;
}
.sq-toc h3, .sq-side-cta h3, .sq-side-list h3 {
  font-size: .95rem; margin: 0 0 12px; color: #0f2036;
}
.sq-toc ol { margin: 0; padding-inline-start: 1.1em; font-size: .88rem; line-height: 1.9; }
.sq-toc a { color: #31485f; text-decoration: none; }
.sq-toc a:hover { color: #c2410c; }
.sq-side-cta p { font-size: .85rem; color: #5b6b80; line-height: 1.8; }
.sq-side-cta .sq-btn { width: 100%; justify-content: center; }
.sq-side-list ul { list-style: none; margin: 0; padding: 0; }
.sq-side-list li { padding-block: 10px; border-top: 1px dashed #e6ebf2; font-size: .88rem; }
.sq-side-list li:first-child { border-top: 0; padding-block-start: 0; }
.sq-side-list a { color: #22364b; font-weight: 600; text-decoration: none; display: block; line-height: 1.7; }
.sq-side-list span { font-size: .78rem; color: #8a97a8; }

/* ==========================================================================
   15. Comments
   ========================================================================== */
.sq-comments { margin-block-start: 38px; padding-block-start: 26px; border-top: 1px solid #e6ebf2; }
.sq-comments__title, .sq-comments__form-title {
  font-size: 1.15rem; color: #0f2036; margin-block: 0 14px;
}
.sq-comments__list { list-style: none; margin: 0 0 24px; padding: 0; }
.sq-comments__list .children { list-style: none; padding-inline-start: 26px; margin-block-start: 14px; }
.sq-comment { display: flex; gap: 12px; padding-block: 14px; border-bottom: 1px dashed #e6ebf2; }
.sq-comment__avatar img { border-radius: 50%; display: block; }
.sq-comment__meta { display: flex; gap: 10px; align-items: center; font-size: .84rem; color: #7b8a9c; }
.sq-comment__meta strong { color: #22364b; }
.sq-comment__text { font-size: .92rem; line-height: 1.9; color: #415468; margin-block-start: 6px; }
.sq-comment__text p { margin-block: .4em; }
.sq-comment__reply a { font-size: .82rem; color: #c2410c; text-decoration: none; }
.sq-comments__note { font-size: .82rem; color: #7b8a9c; }
.sq-comment-form p { margin-block: 0 14px; }
.sq-comment-form label { display: block; font-size: .85rem; font-weight: 600; color: #31485f; margin-block-end: 6px; }
.sq-comment-form input[type=text], .sq-comment-form input[type=email],
.sq-comment-form input[type=url], .sq-comment-form textarea {
  width: 100%; border: 1px solid #dbe3ec; border-radius: 12px;
  padding: 12px 14px; font-family: inherit; font-size: .92rem; background: #fbfcfe; color: #22364b;
}
.sq-comment-form input:focus, .sq-comment-form textarea:focus {
  outline: none; border-color: var(--sq-flame); background: #fff;
}
.sq-comment-form .sq-btn--primary { border: 0; cursor: pointer; }

/* ==========================================================================
   16. Inline product box inside articles (shortcodes)
   ========================================================================== */
.sq-inline {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--sq-line);
  border-radius: 20px; padding: 16px; margin-block: 1.8em;
  box-shadow: 0 12px 28px rgba(15, 32, 54, .07);
}
.sq-inline__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.sq-inline__brand {
  display: inline-block; font-size: .74rem; font-weight: 700;
  color: #b45309; background: #fff3e2; border-radius: 999px; padding: 4px 10px;
}
.sq-inline__title { font-size: 1.05rem; margin: 8px 0 6px; line-height: 1.6; color: #0f2036; }
.sq-inline__rating { font-size: .82rem; color: #b8791a; }
.sq-inline__pr
/* ==========================================================================
   13. Product description blocks (specs / verdict / note)
   ========================================================================== */
.sq-specs { list-style: none !important; padding-inline-start: 0 !important; }
.sq-specs li {
  background: #f4f8fc; border-radius: 10px;
  padding: 8px 12px; margin-block: 6px !important;
  font-size: .95rem; color: #31485f;
}
.sq-verdict {
  background: linear-gradient(135deg, #0f2036, #1d3452);
  color: #fff; border-radius: 18px;
  padding: 18px 22px; margin-block-start: 1.8em;
}
.sq-verdict strong { display: block; color: #ffc27a; margin-block-end: 6px; font-size: .95rem; }
.sq-verdict p { margin: 0; color: #dce6f2; line-height: 1.9; }
.sq-note {
  font-size: .9rem; color: #6b7b8f; background: #f7f9fc;
  border-radius: 12px; padding: 12px 16px;
}

/* ==========================================================================
   14. Single article
   ========================================================================== */
.sq-art__head { padding-block: 30px 6px; }
.sq-art__cat {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: #b45309; background: #fff3e2;
  border-radius: 999px; padding: 6px 13px;
  text-decoration: none;
}
.sq-art__title {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.45; margin-block: 14px 12px; color: #0f2036;
}
.sq-art__lede { font-size: 1.05rem; color: #5b6b80; line-height: 1.9; max-width: 68ch; margin: 0; }
.sq-art__meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-block-start: 18px; font-size: .85rem; color: #6b7b8f;
}
.sq-art__meta span { display: inline-flex; align-items: center; gap: 6px; }
.sq-art__meta svg { width: 16px; height: 16px; color: var(--sq-flame); }
.sq-art__figure { margin-block: 22px 6px; }
.sq-art__figure img {
  width: 100%; height: auto; max-height: 440px; object-fit: cover;
  border-radius: 22px; box-shadow: 0 18px 40px rgba(15, 32, 54, .12);
}
.sq-art {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px; align-items: start; padding-block: 26px 56px;
}
.sq-art__main { min-width: 0; }
.sq-art__side { position: sticky; top: 96px; display: grid; gap: 16px; }

.sq-prose { font-size: 1.02rem; line-height: 2; color: #26374b; }
.sq-prose > * + * { margin-block-start: 1.1em; }
.sq-prose h2 {
  font-size: 1.4rem; line-height: 1.6; margin-block: 2em .7em;
  padding-inline-start: 14px; border-inline-start: 4px solid var(--sq-flame);
  color: #0f2036; scroll-margin-top: 96px;
}
.sq-prose h3 { font-size: 1.15rem; color: #0f2036; margin-block: 1.6em .5em; }
.sq-prose ul, .sq-prose ol { padding-inline-start: 1.3em; }
.sq-prose li { margin-block: .5em; }
.sq-prose blockquote {
  margin-block: 1.6em; padding: 16px 20px;
  background: #fff6ea; border-inline-start: 4px solid var(--sq-flame);
  border-radius: 14px; color: #5a4023; font-weight: 500;
}
.sq-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sq-prose th, .sq-prose td { padding: 10px 12px; border-bottom: 1px solid #e6ebf2; text-align: start; }
.sq-prose th { background: #f4f7fb; font-weight: 700; }
.sq-prose img { height: auto; border-radius: 16px; }
.sq-prose a { color: #c2410c; text-decoration: underline; text-underline-offset: 3px; }

.sq-art__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 26px; }
.sq-art__tags a {
  background: #eef3f9; color: #31485f; border-radius: 999px;
  padding: 6px 12px; font-size: .82rem; text-decoration: none;
}
.sq-art__share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-block-start: 24px; padding-block-start: 22px; border-top: 1px solid #e6ebf2;
}
.sq-art__share strong { font-size: .9rem; color: #415468; }
.sq-art__share-btn {
  background: #0f2036; color: #fff !important; border-radius: 999px;
  padding: 8px 16px; font-size: .82rem; text-decoration: none;
}
.sq-art__share-btn:hover { background: var(--sq-flame); }
.sq-author {
  display: flex; gap: 14px; align-items: flex-start;
  margin-block-start: 26px; background: #f6f9fc; border-radius: 18px; padding: 18px;
}
.sq-author img { border-radius: 50%; display: block; }
.sq-author strong { color: #0f2036; }
.sq-author p { margin: 6px 0 0; font-size: .88rem; color: #5b6b80; line-height: 1.8; }

.sq-toc, .sq-side-cta, .sq-side-list {
  background: #fff; border: 1px solid var(--sq-line); border-radius: 18px; padding: 18px;
}
.sq-toc h3, .sq-side-cta h3, .sq-side-list h3 {
  font-size: .95rem; margin: 0 0 12px; color: #0f2036;
}
.sq-toc ol { margin: 0; padding-inline-start: 1.1em; font-size: .88rem; line-height: 1.9; }
.sq-toc a { color: #31485f; text-decoration: none; }
.sq-toc a:hover { color: #c2410c; }
.sq-side-cta p { font-size: .85rem; color: #5b6b80; line-height: 1.8; }
.sq-side-cta .sq-btn { width: 100%; justify-content: center; }
.sq-side-list ul { list-style: none; margin: 0; padding: 0; }
.sq-side-list li { padding-block: 10px; border-top: 1px dashed #e6ebf2; font-size: .88rem; }
.sq-side-list li:first-child { border-top: 0; padding-block-start: 0; }
.sq-side-list a { color: #22364b; font-weight: 600; text-decoration: none; display: block; line-height: 1.7; }
.sq-side-list span { font-size: .78rem; color: #8a97a8; }

/* ==========================================================================
   15. Comments
   ========================================================================== */
.sq-comments { margin-block-start: 38px; padding-block-start: 26px; border-top: 1px solid #e6ebf2; }
.sq-comments__title, .sq-comments__form-title {
  font-size: 1.15rem; color: #0f2036; margin-block: 0 14px;
}
.sq-comments__list { list-style: none; margin: 0 0 24px; padding: 0; }
.sq-comments__list .children { list-style: none; padding-inline-start: 26px; margin-block-start: 14px; }
.sq-comment { display: flex; gap: 12px; padding-block: 14px; border-bottom: 1px dashed #e6ebf2; }
.sq-comment__avatar img { border-radius: 50%; display: block; }
.sq-comment__meta { display: flex; gap: 10px; align-items: center; font-size: .84rem; color: #7b8a9c; }
.sq-comment__meta strong { color: #22364b; }
.sq-comment__text { font-size: .92rem; line-height: 1.9; color: #415468; margin-block-start: 6px; }
.sq-comment__text p { margin-block: .4em; }
.sq-comment__reply a { font-size: .82rem; color: #c2410c; text-decoration: none; }
.sq-comments__note { font-size: .82rem; color: #7b8a9c; }
.sq-comment-form p { margin-block: 0 14px; }
.sq-comment-form label { display: block; font-size: .85rem; font-weight: 600; color: #31485f; margin-block-end: 6px; }
.sq-comment-form input[type=text], .sq-comment-form input[type=email],
.sq-comment-form input[type=url], .sq-comment-form textarea {
  width: 100%; border: 1px solid #dbe3ec; border-radius: 12px;
  padding: 12px 14px; font-family: inherit; font-size: .92rem; background: #fbfcfe; color: #22364b;
}
.sq-comment-form input:focus, .sq-comment-form textarea:focus {
  outline: none; border-color: var(--sq-flame); background: #fff;
}
.sq-comment-form .sq-btn--primary { border: 0; cursor: pointer; }

/* ==========================================================================
   16. Inline product box inside articles (shortcodes)
   ========================================================================== */
.sq-inline {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--sq-line);
  border-radius: 20px; padding: 16px; margin-block: 1.8em;
  box-shadow: 0 12px 28px rgba(15, 32, 54, .07);
}
.sq-inline__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.sq-inline__brand {
  display: inline-block; font-size: .74rem; font-weight: 700;
  color: #b45309; background: #fff3e2; border-radius: 999px; padding: 4px 10px;
}
.sq-inline__title { font-size: 1.05rem; margin: 8px 0 6px; line-height: 1.6; color: #0f2036; }
.sq-inline__rating { font-size: .82rem; color: #b8791a; }
.sq-inline__price { display: flex; align-items: baseline; gap: 10px; margin-block: 8px; }
.sq-inline__price strong { font-size: 1.25rem; color: #0f2036; }
.sq-inline__price del { color: #97a4b4; font-size: .9rem; }
.sq-inline__note { font-size: .86rem; color: #5b6b80; margin: 0 0 10px; line-height: 1.8; }
.sq-inline__disc { display: block; font-size: .72rem; color: #97a4b4; margin-block-start: 8px; }
.sq-inline-grid { margin-block: 1.8em; }
.sq-inline-cta { margin-block: 1.6em; }
.sq-tip-box {
  background: #f2f9f4; border: 1px solid #cfe8d8; border-radius: 16px;
  padding: 16px 18px; margin-block: 1.6em; color: #24513a;
}
.sq-tip-box strong { display: block; margin-block-end: 6px; }

/* ==========================================================================
   17. Affiliate transparency strip above the footer
   ========================================================================== */
.sq-aff-note { padding-block: 8px 30px; }
.sq-aff-note__inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px; align-items: center;
  background: linear-gradient(135deg, #fff7ec, #fffdfa);
  border: 1px solid #ffe2bd; border-radius: 20px;
  padding: 16px 20px;
}
.sq-aff-note__icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fff; color: var(--sq-flame);
  box-shadow: 0 6px 16px rgba(255, 106, 0, .16);
}
.sq-aff-note__icon svg { width: 22px; height: 22px; }
.sq-aff-note__body h2 { font-size: .98rem; margin: 0 0 4px; color: #7a3d05; }
.sq-aff-note__body p { margin: 0; font-size: .86rem; line-height: 1.85; color: #8a5a22; }
.sq-aff-note__link {
  font-size: .82rem; font-weight: 700; color: #b45309;
  text-decoration: none; white-space: nowrap;
}
.sq-aff-note__link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .sq-art { grid-template-columns: 1fr; gap: 26px; }
  .sq-art__side { position: static; }
  .sq-aff-note__inner { grid-template-columns: auto minmax(0, 1fr); }
  .sq-aff-note__link { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .sq-art__title { font-size: 1.4rem; }
  .sq-prose { font-size: .98rem; line-height: 1.95; }
  .sq-prose h2 { font-size: 1.2rem; }
  .sq-art__figure img { border-radius: 16px; max-height: none; }
  .sq-inline { grid-template-columns: 1fr; }
  .sq-inline__media img { max-height: 220px; aspect-ratio: 16 / 10; }
}
/* ==========================================================================
   18. Blog archive
   ========================================================================== */
.sq-blog { padding-block: 26px 56px; }
.sq-featured {
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--sq-surface);
  border: 1px solid var(--sq-line);
  border-radius: 24px; overflow: hidden;
  margin-block-end: 28px; box-shadow: var(--sq-shadow);
}
.sq-featured__media { display: block; overflow: hidden; }
.sq-featured__media img {
  width: 100%; height: 100%; min-height: 300px;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.sq-featured:hover .sq-featured__media img { transform: scale(1.04); }
.sq-featured__body {
  padding: clamp(18px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
}
.sq-featured__badge {
  align-self: flex-start; font-size: .72rem; font-weight: 800;
  color: #b45309; background: #fff3e2; border-radius: 999px; padding: 5px 12px;
}
.sq-featured__body h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.5; margin: 0;
}
.sq-featured__body h2 a { color: var(--sq-ink); text-decoration: none; }
.sq-featured__body h2 a:hover { color: var(--sq-link); }
.sq-featured__body p { color: var(--sq-muted); line-height: 1.9; margin: 0; }
.sq-featured__body .sq-btn { align-self: flex-start; margin-block-start: 8px; }

.sq-posts__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.sq-post-card__link {
  margin-block-start: auto; padding-block-start: 10px;
  font-weight: 700; font-size: .86rem; color: #c2410c; text-decoration: none;
}
.sq-post-card__link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .sq-featured { grid-template-columns: 1fr; }
  .sq-featured__media img { min-height: 220px; max-height: 280px; }
  .sq-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sq-posts__grid { grid-template-columns: 1fr; }
  .sq-featured__media img { min-height: 200px; }
}
/* Price freshness note (PA-API sync) */
.sq-price-note {
  display: flex; align-items: center; gap: 6px;
  margin-block: 8px 0; font-size: .76rem; color: #6b7b8f;
  line-height: 1.7;
}
.sq-price-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--sq-teal); }
.sq-price-note.is-stale { color: #a15c00; }
.sq-price-note.is-stale svg { color: #d97706; }

@media (max-width: 620px) {
  .sq-price-note { font-size: .72rem; }
}
