/* Shared source components; route lookalikes remain scoped in page styles. */
.search-control {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:55px;
  padding:5px;
  border:1px solid #e1e3df;
  border-radius:8px;
  background:white;
  box-shadow:0 5px 18px #3a453708;
}

.search-icon {
  width:20px;
  height:20px;
  margin-inline-start:9px;
  color:#747b88;
}

.search-control input {
  width:100%;
  border:0;
  font-size:11px;
  padding:8px 0;
  background:transparent;
}

.search-control input:focus {
  outline:0;
}

.search-control:focus-within {
  border-color:#008c69;
  box-shadow:0 0 0 3px #00c29218;
}

.search-control .btn {
  flex-shrink:0;
  min-height:43px;
  padding-inline:16px;
  font-size:11px;
}

.store-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.store-card {
  position:relative;
  min-width:0;
  padding:22px;
  border:1px solid var(--line);
  background:white;
  border-radius:var(--radius);
  transition:border-color var(--ease),box-shadow var(--ease),transform var(--ease);
}

.store-card h3 a::after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
}

.store-card:hover {
  border-color:#aad7c4;
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}

.store-card:focus-within {
  outline:3px solid #008966;
  outline-offset:3px;
}

.store-card h3 a:focus-visible {
  outline:none;
}

.store-card-head {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:12px;
  margin-bottom:16px;
}

.store-logo {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:100px;
  height:68px;
  padding:12px;
  border:1px solid #e9ecf0;
  border-radius:10px;
  background:white;
  color:var(--logo-color,#136d55);
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  text-align:center;
}

.store-logo img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.store-logo[data-store="jarir"] { padding:7px; }

.store-logo[data-store="saco"] { padding:8px; }

.store-logo[data-store="amazon"] { overflow:hidden; }

.store-logo[data-store="amazon"] img { transform:scale(1.2); }

.store-logo--large {
  width:134px;
  height:100px;
  font-size:24px;
  border-radius:15px;
}

.store-card h3 {
  font-size:14px;
}

.store-card p {
  font-size:12px;
  line-height:1.9;
  margin-top:7px;
}

.store-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  margin-top:18px;
  padding-top:13px;
  border-top:1px solid #edf0f2;
  font-size:9px;
  color:var(--ink-600);
}

.store-meta strong {
  font-size:10px;
  color:#087456;
  font-weight:550;
}

.offer-list {
  display:grid;
  gap:18px;
}

.offer-card {
  position:relative;
  display:grid;
  grid-template-columns:100px minmax(0,1fr) 178px;
  align-items:center;
  gap:22px;
  min-width:0;
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  transition:border-color var(--ease),box-shadow var(--ease);
}

.offer-card:hover {
  border-color:#b3d7c7;
  box-shadow:var(--shadow);
}

.offer-content {
  min-width:0;
}

.offer-content h3 {
  font-size:15px;
  margin-block:10px 8px;
  line-height:1.8;
}

.offer-content h3 a:hover {
  color:#00815d;
}

.offer-description {
  font-size:12px;
  line-height:1.95;
}

.offer-badges {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
}

.badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:25px;
  padding:2px 8px;
  background:#eef2f5;
  color:#50556b;
  border-radius:4px;
  font-size:9px;
  font-weight:500;
  line-height:1.7;
}

.badge--brand {
  background:#ddf7ea;
  color:#076944;
}

.badge--blue {
  background:#eef3fb;
  color:#465875;
}

.badge--gold {
  background:#fff0de;
  color:#965317;
}

.badge--coral {
  background:#fff0ec;
  color:#a74c36;
}

.badge--muted {
  background:#eef0f2;
  color:#64697a;
}

.offer-meta {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:16px;
  font-size:9px;
  color:#777b89;
}

.offer-meta span {
  display:flex;
  gap:5px;
  align-items:center;
}

.offer-meta svg {
  width:13px;
  height:13px;
}

.offer-action {
  display:flex;
  flex-direction:column;
  gap:9px;
  align-items:stretch;
  border-inline-start:1px dashed #dce4df;
  padding-inline-start:18px;
}

.coupon-button {
  position:relative;
  display:block;
  width:100%;
  min-height:50px;
  padding:0;
  overflow:hidden;
  isolation:isolate;
  border:1px solid var(--brand-navy);
  border-radius:8px;
  background:#e8faf1;
  color:var(--brand-navy);
  transition:transform 220ms ease,box-shadow 220ms ease,border-color 220ms ease,background 220ms ease;
}

.coupon-code {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:10px 14px;
  font-size:15px;
  line-height:1.6;
  font-weight:650;
  direction:ltr;
  letter-spacing:1.5px;
  user-select:all;
  opacity:0;
  transform:translateY(9px);
  transition:opacity 240ms ease 100ms,transform 280ms ease 100ms;
}

.coupon-label {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:var(--brand-navy);
  color:white;
  font-size:12px;
  font-weight:550;
  transform:translateX(0);
  transition:transform 420ms cubic-bezier(.22,.75,.18,1),opacity 280ms ease,background 200ms ease;
  z-index:1;
}

.coupon-label svg,
.coupon-code svg {
  width:18px;
  height:18px;
  flex:0 0 18px;
  transition:transform 240ms ease;
}

.coupon-button:hover,
.coupon-button:focus-visible {
  transform:translateY(-2px);
  box-shadow:0 7px 16px rgb(28 28 77 / 18%);
}

.coupon-button:hover .coupon-label,
.coupon-button:focus-visible .coupon-label {
  background:#343472;
}

.coupon-button:hover .coupon-label svg {
  transform:scale(1.15);
}

.coupon-button:active {
  transform:translateY(1px) scale(.985);
  box-shadow:none;
}

.coupon-button.is-revealed .coupon-label {
  transform:translateX(103%);
  opacity:0;
  pointer-events:none;
}

.coupon-button.is-revealed {
  border:1px dashed #07855f;
}

.coupon-button.is-revealed .coupon-code {
  opacity:1;
  transform:translateY(0);
}

.coupon-button.is-revealed:hover {
  background:#d5f5e5;
  box-shadow:0 7px 16px rgb(8 133 95 / 12%);
}

.coupon-button.is-copied {
  background:#c8f1dd;
  border-style:solid;
  color:#006c47;
  animation:coupon-confirm 360ms ease;
}

.coupon-code .copy-success { display:none; }

.coupon-button.is-copied .copy-icon { display:none; }

.coupon-button.is-copied .copy-success { display:block; }

@keyframes coupon-confirm {
  50% { box-shadow:0 0 0 5px rgb(0 194 146 / 15%); }
}

.coupon-hint {
  font-size:9px;
  color:#727788;
  text-align:center;
}

.coupon-fallback {
  padding:8px;
  border:1px dashed #9bcab5;
  font-size:15px;
  text-align:center;
}

.js .coupon-fallback {
  display:none;
}

.no-js .coupon-button {
  display:none;
}

.deal-button {
  width:100%;
  min-height:50px;
  font-size:10px;
  padding-inline:10px;
}

.deal-button .icon {
  width:15px;
  height:15px;
}

.expired-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:46px;
  padding:8px 14px;
  border:1px solid #e3e5e8;
  border-radius:6px;
  background:#edf0f2;
  color:#777c87;
  font-size:11px;
}

.offer-card--expired {
  background:#f8f9fa;
}

.offer-card--expired .store-logo {
  border-color:#e5e8eb;
}

.offer-card--expired .offer-content h3 {
  color:#747989;
}

.offer-visual {
  margin:0;
  text-align:center;
}

.offer-visual figcaption {
  font-size:10px;
  font-weight:550;
  color:#4d5668;
  margin-top:7px;
}

.offer-visual figcaption img {
  width:100%;
  height:23px;
  object-fit:contain;
  object-position:center;
  margin-top:9px;
}

.offer-thumbnail {
  width:88px;
  height:88px;
  object-fit:cover;
  border-radius:9px;
}

.editorial-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.editorial-card {
  min-width:0;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  transition:border-color var(--ease),box-shadow var(--ease);
}

.editorial-image {
  width:100%;
  aspect-ratio:3/2;
  object-fit:cover;
  transition:transform 350ms ease;
}

.editorial-card:hover {
  border-color:#b3d7c7;
  box-shadow:var(--shadow);
}

.editorial-card:hover .editorial-image {
  transform:scale(1.035);
}

.editorial-card h3 a::after {
  content:'';
  position:absolute;
  inset:0;
}

.editorial-card-content {
  padding:22px;
}

.editorial-card h3 {
  margin-block:10px;
  font-size:16px;
}

.editorial-card p {
  font-size:12px;
  line-height:2;
}

.article-meta-line {
  display:flex;
  justify-content:space-between;
  margin-top:20px;
  color:#07815c;
  font-size:10px;
}

.country-feature {
  display:grid;
  grid-template-columns:1fr 380px;
  align-items:center;
  gap:70px;
}

.country-feature h2 {
  font-size:26px;
}

.country-feature p {
  margin-block:12px 20px;
  font-size:12px;
  max-width:570px;
}

.country-selector-preview {
  padding:22px;
  border:1px solid #c9e9da;
  border-radius:12px;
  background:#ffffffb3;
}

.country-selector-preview>span {
  display:block;
  font-size:10px;
  color:#6f7b74;
  margin-bottom:14px;
}

.country-choice {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border:1px solid #dcebe3;
  border-radius:7px;
  background:white;
  transition:border-color var(--ease);
}

.country-choice+.country-choice {
  margin-top:10px;
}

.country-choice:hover {
  border-color:#00aa7f;
}

.country-choice strong {
  display:block;
  font-size:12px;
  font-weight:550;
}

.country-choice small {
  display:block;
  font-size:9px;
  color:#737c78;
}

.country-flag {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:38px;
}

.country-flag-image {
  display:inline-block;
  flex-shrink:0;
  width:22px;
  height:16.5px;
  object-fit:contain;
  border-radius:1px;
  box-shadow:0 0 0 1px rgb(28 28 77 / 10%);
  vertical-align:-3px;
}

.country-globe {
  display:inline-block;
  flex-shrink:0;
  width:19px;
  height:19px;
  vertical-align:-4px;
  color:#287c65;
}

.country-flags {
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex-shrink:0;
  vertical-align:middle;
}

.filter-option[data-filter-key="country"]>span:first-child,
.store-meta>span {
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.country-flag .country-flag-image {
  width:36px;
  height:27px;
}

.country-flag .country-globe {
  width:30px;
  height:30px;
}

.choice-check {
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--brand-turquoise);
  margin-inline-start:auto;
}

.choice-check svg {
  width:13px;
  height:13px;
}

.value-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}

.value-card {
  padding:22px;
  border:1px solid var(--line);
  border-radius:10px;
}

.value-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:15px;
  color:#007756;
  background:#e6f8ef;
  border-radius:9px;
}

.value-icon svg {
  width:22px;
  height:22px;
}

.value-card h3 {
  margin-bottom:7px;
  font-size:14px;
}

.value-card p {
  font-size:11px;
}

.newsletter {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:32px 38px;
  background:var(--brand-navy);
  border-radius:12px;
  color:white;
}

.newsletter h2 {
  color:white;
  font-size:22px;
}

.newsletter p {
  color:#ccccdf;
  font-size:11px;
  margin-top:8px;
}

.breadcrumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:20px;
  font-size:9px;
  color:#838797;
}

.breadcrumb svg {
  width:12px;
  height:12px;
}

.breadcrumb a:hover {
  color:#008664;
}

.filter-reset {
  border:0;
  padding:3px;
  background:transparent;
  color:#097b58;
  font-size:10px;
}

.filter-reset:hover {
  text-decoration:underline;
}

.filter-stack {
  display:flex;
  flex-direction:column;
  gap:5px;
}

.filter-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:39px;
  text-align:start;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:#626779;
  font-size:11px;
  transition:background var(--ease),color var(--ease),border-color var(--ease);
}

.filter-option:hover {
  background:#f3f8f5;
  color:var(--brand-navy);
}

.filter-option[aria-pressed=true] {
  background:#e4f8ee;
  color:#087050;
  border-color:#c8e9d9;
  font-weight:550;
}

.filter-count {
  font-size:10px;
  color:#8b9490;
}

.filter-option[aria-pressed=true] .filter-count {
  color:#187954;
}

.empty-state {
  margin-top:20px;
  padding:44px 24px;
  border:1px dashed #bdcfc6;
  border-radius:10px;
  text-align:center;
}

.empty-state-icon {
  display:inline-grid;
  place-items:center;
  width:48px;
  height:48px;
  background:#e6f5ee;
  color:#187252;
  border-radius:12px;
  margin-bottom:16px;
}

.empty-state-icon svg {
  width:24px;
  height:24px;
}

.empty-state h2,
.empty-state h3 {
  font-size:20px;
}

.empty-state p {
  font-size:12px;
  margin-block:10px 18px;
}

.empty-state .filter-reset {
  padding:10px 18px;
  background:#e1f5eb;
  border-radius:7px;
}

@media(max-width:1100px) {
.country-feature {
  grid-template-columns:1fr 320px;
  gap:40px;
}

.newsletter {
  gap:24px;
  padding-inline:26px;
}

}

@media(max-width:900px) {
.store-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.editorial-card-content {
  padding:18px;
}

.editorial-card h3 {
  font-size:14px;
}

.country-feature {
  grid-template-columns:1fr 290px;
  gap:28px;
}

.country-feature h2 {
  font-size:22px;
}

.country-selector-preview {
  padding:15px;
}

.value-grid {
  gap:16px;
}

.value-card {
  padding:18px;
}

.newsletter {
  flex-direction:column;
  align-items:start;
}

}

@media(max-width:640px) {
.search-control {
  min-height:49px;
  gap:5px;
  padding:4px;
}

.search-control input {
  font-size:10px;
}

.search-control .btn {
  padding-inline:12px;
  min-height:39px;
  font-size:10px;
}

.store-grid {
  gap:12px;
}

.store-card {
  padding:16px;
}

.store-card-head {
  margin-bottom:12px;
}

.store-card h3 {
  font-size:12px;
}

.store-card p {
  font-size:11px;
}

.store-card .store-logo {
  width:96px;
  height:58px;
  padding:9px;
  font-size:13px;
}

.store-meta {
  flex-wrap:wrap;
  font-size:8px;
  gap:5px;
  margin-top:12px;
  padding-top:10px;
}

.store-meta strong {
  font-size:9px;
}

.offer-card {
  grid-template-columns:74px minmax(0,1fr);
  padding:18px;
  gap:16px;
}

.offer-card>.store-logo {
  width:74px;
  height:56px;
  padding:8px;
  font-size:13px;
  align-self:start;
}

.offer-action {
  grid-column:1/-1;
  border:0;
  border-top:1px dashed #dce4df;
  padding:15px 0 0;
}

.offer-content h3 {
  font-size:13px;
}

.offer-description {
  font-size:11px;
}

.offer-meta {
  gap:10px;
  font-size:8px;
  margin-top:12px;
}

.badge {
  font-size:8px;
  padding-inline:6px;
  min-height:23px;
}

.editorial-grid {
  grid-template-columns:1fr;
  gap:20px;
}

.editorial-image {
  aspect-ratio:16/10;
}

.editorial-card-content {
  padding:20px;
}

.editorial-card h3 {
  font-size:16px;
}

.editorial-card p {
  font-size:12px;
}

.country-feature {
  grid-template-columns:1fr;
  gap:24px;
}

.country-feature h2 {
  font-size:23px;
}

.country-feature p {
  font-size:11px;
}

.country-selector-preview {
  padding:18px;
}

.value-grid {
  grid-template-columns:1fr;
  gap:12px;
}

.value-card {
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:4px 14px;
  padding:18px;
}

.value-icon {
  width:40px;
  height:40px;
  grid-row:1/3;
  margin:0;
}

.value-card h3 {
  font-size:12px;
  margin:0;
}

.value-card p {
  grid-column:2;
  font-size:10px;
}

.newsletter {
  padding:26px 22px;
  gap:20px;
}

.newsletter h2 {
  font-size:20px;
}

.newsletter p {
  font-size:10px;
}

.breadcrumb {
  margin-bottom:16px;
  font-size:8px;
  gap:5px;
}

.store-profile-card>.store-logo {
  width:98px;
  height:70px;
  font-size:20px;
}

}

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

}

@media(prefers-reduced-motion:reduce) {
.coupon-button,
.coupon-button:hover,
.coupon-button:focus-visible,
.coupon-button:active,
.coupon-label svg,
.coupon-button:hover .coupon-label svg {
  transform:none!important;
}

.coupon-button.is-copied { animation:none!important; }

}

/* Small WordPress integrations; no source layout is replaced. */
.tewfeer-pagination { margin-block-start:24px; }
.tewfeer-pagination ul { display:flex; gap:8px; list-style:none; padding:0; flex-wrap:wrap; }
.tewfeer-pagination a,.tewfeer-pagination span { display:block; padding:8px 16px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.tewfeer-pagination [aria-current] { background:var(--brand-navy); color:#fff; }
.coupon-merchant-link { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:6px 10px; border:1px solid var(--line); border-radius:6px; color:#087858; font-size:11px; }
.coupon-merchant-link .icon { width:13px; height:13px; }
.coupon-merchant-link:hover { text-decoration:underline; background:#eaf8f0; border-color:#b3d7c7; }
.no-js .coupon-hint { display:none; }
.store-logo-fallback { font-size:14px; text-align:center; }
.offer-terms { margin-block-start:8px; font-size:11px; color:var(--ink-600); }
.offer-terms summary { width:fit-content; color:#087858; cursor:pointer; }
.offer-terms>div { margin-block-start:8px; padding:10px 12px; border-radius:6px; background:#f5faf7; overflow-wrap:anywhere; }
.offer-terms p+p { margin-block-start:8px; }
.offer-terms ul,.offer-terms ol { padding-inline-start:20px; }
.offer-action { min-width:0; }
.coupon-code>span { min-width:0; overflow-wrap:anywhere; }
.coupon-fallback,.store-card h3,.offer-content h3,.offer-description { overflow-wrap:anywhere; }
