/* Marketplace Indonesia v1.9.1 — native store directory + seller landing pages.
 * Scoped only to store routes; no native store or classified listing templates replaced.
 */
body.cms-mart-store-page {
  --cms-store-accent:#e52332;
  --cms-store-ink:#142039;
  --cms-store-muted:#69788d;
  --cms-store-line:#e5eaf4;
  --cms-store-shadow:0 14px 35px rgba(21,37,64,.065);
  background:#f5f7fc;
}
body.cms-mart-store-page .site-content { background: #f5f7fc; }
body.cms-mart-store-page .classima-store-single { padding:32px 0 75px; }
body.cms-mart-store-page .classima-store-single > .container {max-width:1430px;}
body.cms-mart-store-page .classima-store-single a:focus-visible,
body.cms-mart-store-page .classima-store-single button:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }

/* Stores index — welcoming hero */
.cms-store-directory-intro {
  isolation:isolate; overflow:hidden; position:relative;
  border-radius:24px; margin:0 0 30px; padding:42px 48px;
  color:#fff; background:linear-gradient(112deg,#e32235 0%,#e84163 50%,#f07b55 100%);
  box-shadow:0 18px 36px rgba(219,42,70,.17);
}
.cms-store-directory-intro::before,.cms-store-directory-intro::after {
  content:"";position:absolute;border-radius:50%;pointer-events:none;z-index:-1;
}
.cms-store-directory-intro::before {height:360px;width:360px;right:-110px;top:-205px;border:76px solid rgba(255,255,255,.13);}
.cms-store-directory-intro::after {height:260px;width:260px;right:18%;bottom:-200px;background:rgba(255,255,255,.095);}
.cms-store-directory-intro .cms-store-kicker {display:inline-block; font-size:11px;letter-spacing:.19em;text-transform:uppercase;font-weight:800;color:#fff2c3;margin-bottom:14px;}
.cms-store-directory-intro h1 {color:#fff!important;font-size:clamp(27px,3vw,42px)!important;letter-spacing:-.035em;line-height:1.14;margin:0 0 12px;font-weight:850;}
.cms-store-directory-intro p {color:#fff!important;opacity:.94;margin:0;max-width:560px;line-height:1.7;font-size:15px;}
.cms-store-directory-intro .cms-store-decoration {position:absolute;right:65px;top:calc(50% - 35px);width:90px;height:90px;border-radius:22px;background:#fff2;display:grid;place-items:center;font-size:42px;transform:rotate(-9deg);box-shadow:0 8px 30px #0001;}
body.cms-store-directory-page .classima-store-single .rtcl-stores-header-title {color:var(--cms-store-ink);font-size:26px;margin:15px 0 24px;letter-spacing:-.02em;}
body.cms-store-directory-page .classima-store-single .rtcl .rtcl-stores,
body.cms-store-directory-page .classima-store-single .rtcl-stores {grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
body.cms-store-directory-page .classima-store-single .rtcl .rtcl-stores .rtcl-store-item {min-width:0;}
body.cms-store-directory-page .classima-store-single .rtcl .rtcl-stores .rtcl-store-item .rtcl-store-link {
  position:relative; isolation:isolate; overflow:hidden; min-height:278px;justify-content:flex-start;
  border:1px solid var(--cms-store-line);border-radius:21px;
  background:#fff;box-shadow:var(--cms-store-shadow)!important;
  transition:transform .44s cubic-bezier(.2,.7,.2,1),box-shadow .44s,border-color .44s;
}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item .rtcl-store-link::before {
  content:""; height:7px; background:linear-gradient(90deg,#f03456,#ffa469);position:absolute;top:0;left:0;right:0;z-index:1;
}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:nth-child(3n + 2) .rtcl-store-link::before {background:linear-gradient(90deg,#6559cf,#8b9eff);}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:nth-child(3n) .rtcl-store-link::before {background:linear-gradient(90deg,#0b9d8d,#70d8b0);}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:hover .rtcl-store-link,
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:focus-within .rtcl-store-link {
  transform:translateY(-7px);border-color:#f8b6c0;box-shadow:0 21px 50px rgba(23,43,82,.15)!important;
}
body.cms-store-directory-page .classima-store-single .rtcl-stores .rtcl-store-item .store-thumb {
  width:100%;height:164px;margin:0;padding:25px 15px 14px;
  display:flex;align-items:center;justify-content:center;border-bottom:0;
  background:radial-gradient(ellipse at 32% 0%,#fff 0%,#f9e6eb 65%,#f1f5fd 100%);
}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:nth-child(3n + 2) .store-thumb {background:linear-gradient(155deg,#e9e7ff,#f9faff);}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:nth-child(3n) .store-thumb {background:linear-gradient(155deg,#def9ef,#f7fbfb);}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item .store-thumb img {
  max-width:118px;max-height:118px;width:auto;height:auto;object-fit:contain;
  padding:9px;background:#fff;border-radius:20px;box-shadow:0 11px 25px rgba(17,33,59,.11);
  transition:transform .48s cubic-bezier(.18,.78,.18,1);
}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:hover .store-thumb img {transform:scale(1.075) rotate(-2deg);}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item .item-content {flex:1;align-items:flex-start;text-align:left;padding:18px 22px 23px;gap:7px;}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item .rtcl-store-title {
  color:var(--cms-store-ink);font-weight:800;font-size:19px;line-height:1.3;word-break:normal;overflow-wrap:anywhere;
}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item .rtcl-store-meta {color:var(--cms-store-muted);font-size:13px;line-height:1.5;}
.cms-store-visit-chip {margin-top:auto;align-self:flex-start;display:inline-flex;gap:9px;align-items:center;border-radius:999px;padding:8px 14px;background:#fff1f3;color:#cb2136;font-size:12px;font-weight:800;}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:nth-child(3n + 2) .cms-store-visit-chip {color:#4d4ab0;background:#f0efff;}
body.cms-store-directory-page .rtcl-stores .rtcl-store-item:nth-child(3n) .cms-store-visit-chip {color:#087765;background:#e8faf4;}

/* Store sidebar filters and native controls */
body.cms-mart-store-page .sidebar-widget-area > .widget,
body.cms-mart-store-page .sidebar-widget-area .widget,
body.cms-mart-store-page .sidebar-store-archive > .widget {
  background:#fff;border:1px solid var(--cms-store-line);border-radius:18px;
  padding:22px;box-shadow:var(--cms-store-shadow);margin-bottom:20px;
}
body.cms-mart-store-page .sidebar-widget-area .widget .widgettitle {
  font-weight:800!important;font-size:18px!important;line-height:1.35!important;
  color:var(--cms-store-ink)!important;margin:0 0 18px!important;padding:0 0 15px!important;
  border-bottom:1px solid var(--cms-store-line);
}
body.cms-mart-store-page .sidebar-widget-area .widget .widgettitle::after {content:"";display:block;width:35px;height:3px;border-radius:4px;background:var(--cms-store-accent);position:relative;top:17px;}
body.cms-mart-store-page .sidebar-widget-area input:not([type=checkbox]):not([type=radio]),
body.cms-mart-store-page .sidebar-widget-area select,
body.cms-mart-store-page .sidebar-widget-area textarea {
  min-height:44px;background:#f8faff;border:1px solid #dce5f1;border-radius:10px;color:#263951;max-width:100%;
}
body.cms-mart-store-page .sidebar-widget-area :is(input,textarea,select):focus {outline:2px solid #f4aab3;outline-offset:1px;}
body.cms-mart-store-page .sidebar-widget-area .btn,
body.cms-mart-store-page .sidebar-widget-area button[type=submit] {
  border:0;border-radius:11px;background:var(--cms-store-accent);color:#fff;padding:11px 18px;font-weight:750;
  box-shadow:0 9px 18px rgba(229,35,50,.15);transition:transform .25s,filter .25s;
}
body.cms-mart-store-page .sidebar-widget-area .btn:hover,
body.cms-mart-store-page .sidebar-widget-area button[type=submit]:hover {transform:translateY(-2px);filter:brightness(.94);}

/* Single-store full banner, preserving the owner's banner, slogan and logo. */
body.cms-storefront-page .classima-store-single .rtin-banner-wrap {
  position:relative;margin-bottom:25px;isolation:isolate;border-radius:24px;
  box-shadow:0 22px 50px rgba(29,44,80,.12);
}
body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-img {
  position:relative;height:355px;border-radius:24px;overflow:hidden;
  background:linear-gradient(115deg,#20294c,#63366c 48%,#db4f66);
}
body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-img img {
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform 1.1s ease;
}
body.cms-storefront-page .rtin-banner-wrap:hover .rtin-banner-img img {transform:scale(1.035);}
body.cms-storefront-page .classima-store-single .rtin-banner-img::after {
  border-radius:24px;inset:0;position:absolute;display:block;content:"";width:100%;height:100%;
  background:linear-gradient(90deg,rgba(11,19,41,.83),rgba(19,26,53,.47) 65%,rgba(14,30,42,.21));
}
body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-content {
  position:absolute;left:32px;right:32px;bottom:28px;top:auto;align-items:end;
  display:flex;gap:22px;z-index:3;
}
body.cms-storefront-page .classima-store-single .rtin-banner-content .rtin-logo {
  margin:0; flex:0 0 auto; width:116px;height:116px;display:flex;align-items:center;justify-content:center;
  padding:10px;background:#fff;border:4px solid rgba(255,255,255,.85);border-radius:22px;
  box-shadow:0 12px 36px rgba(0,0,0,.2);
}
body.cms-storefront-page .classima-store-single .rtin-banner-content .rtin-logo img {width:100%;height:100%;object-fit:contain;border-radius:12px;}
body.cms-storefront-page .classima-store-single .rtin-banner-content .rtin-store-title-area {flex:1;min-width:0;align-self:end;padding:0;margin:0;}
body.cms-storefront-page .rtin-banner-wrap .rtin-store-title {color:#fff!important;font-size:clamp(26px,3vw,42px)!important;line-height:1.17;font-weight:850;letter-spacing:-.02em;margin:0 0 10px!important;}
body.cms-storefront-page .rtin-banner-wrap .rtin-store-slogan {font-size:15px!important;color:#f0f4ff!important;font-weight:500!important;max-width:700px;line-height:1.6;}
body.cms-storefront-page .rtin-banner-wrap .rtin-title-meta {display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0!important;padding:0;}
body.cms-storefront-page .rtin-banner-wrap .rtin-title-meta li {display:inline-flex;align-items:center;gap:4px;margin:0!important;padding:7px 11px!important;background:rgba(255,255,255,.15);color:#fff!important;border:1px solid rgba(255,255,255,.24);border-radius:100px;line-height:1.3!important;font-weight:600!important;font-size:12px!important;backdrop-filter:blur(8px);}
body.cms-storefront-page .rtin-banner-wrap .rtin-title-meta li i {color:#ffe4b2!important;padding-right:4px!important;}
.cms-store-browse-button {display:inline-flex;align-items:center;justify-content:center;margin-top:17px;padding:11px 20px;border-radius:11px;background:#fff;color:#c51b32!important;font-weight:800;font-size:13px;box-shadow:0 8px 19px #07162a35;transition:transform .3s,box-shadow .3s;}
.cms-store-browse-button:hover {color:#ab1230!important;transform:translateY(-2px);box-shadow:0 12px 24px #07162a55;text-decoration:none;}
.cms-store-eyebrow {display:inline-block;margin-bottom:7px;color:#ffda99;font-weight:800;font-size:11px;letter-spacing:.12em;text-transform:uppercase;}

/* Functional anchored navigation: existing products, store info, reviews */
.cms-store-quick-nav {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 29px;padding:12px;border-radius:17px;background:#fff;border:1px solid var(--cms-store-line);box-shadow:var(--cms-store-shadow);}
.cms-store-quick-nav a {color:#40516a;font-size:13px;font-weight:800;border-radius:10px;padding:12px 16px;transition:background .3s,color .3s,transform .3s;}
.cms-store-quick-nav a:hover,.cms-store-quick-nav a:focus-visible {color:#c91e34;background:#fff0f2;transform:translateY(-1px);text-decoration:none;}
.cms-store-quick-nav .cms-store-quick-primary {margin-left:auto;background:#e52332;color:#fff;}
.cms-store-quick-nav .cms-store-quick-primary:hover {background:#b91e31;color:#fff;}

/* Store product grid/ordering preserve native product cards, buttons and pagination */
body.cms-storefront-page .classima-store-single .listing-archive-top {
  background:#fff;border:1px solid var(--cms-store-line);border-radius:17px;padding:18px 21px;
  box-shadow:var(--cms-store-shadow);margin:0 0 22px;
}
body.cms-storefront-page .classima-store-single .listing-archive-top .rtin-title {
  color:var(--cms-store-ink);font-size:21px;font-weight:800;margin:0;
}
body.cms-storefront-page .store-ad-listing-wrapper2 .listing-grid-each,
body.cms-storefront-page .store-ad-listing-wrapper2 .listing-list-each {
  border:1px solid var(--cms-store-line);border-radius:16px;background:#fff;overflow:hidden;
  box-shadow:var(--cms-store-shadow);transition:transform .35s,box-shadow .35s,border-color .35s;
}
body.cms-storefront-page .store-ad-listing-wrapper2 .listing-grid-each:hover,
body.cms-storefront-page .store-ad-listing-wrapper2 .listing-list-each:hover {transform:translateY(-4px);box-shadow:0 19px 44px rgba(25,44,80,.14);border-color:#ffc3ca;}
body.cms-storefront-page .store-ad-listing-wrapper2 .rtin-title a {color:var(--cms-store-ink);font-weight:800;}
body.cms-storefront-page .store-ad-listing-wrapper2 .rtin-title a:hover {color:var(--cms-store-accent);}
body.cms-storefront-page .store-ad-listing-wrapper2 .rtin-price {color:var(--cms-store-accent);font-size:20px;font-weight:850;}
body.cms-storefront-page .store-ad-listing-wrapper2 .rtin-thumb img {transition:transform .5s ease;}
body.cms-storefront-page .store-ad-listing-wrapper2 .listing-grid-each:hover .rtin-thumb img {transform:scale(1.035);}
body.cms-storefront-page .store-ad-listing-wrapper2 {min-width:0;}

/* Landing-page seller details and info cards */
body.cms-storefront-page .sidebar-widget-area .classima-store-details,
body.cms-storefront-page .sidebar-widget-area .classima-store-info {overflow:hidden;}
body.cms-storefront-page .classima-store-details p,
body.cms-storefront-page .classima-store-info p {color:#55657c;line-height:1.75;font-size:14px;}
body.cms-storefront-page .classima-store-socials {display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:15px 0 3px;}
body.cms-storefront-page .classima-store-socials a {width:39px;height:39px;transition:transform .3s,box-shadow .3s;}
body.cms-storefront-page .classima-store-socials a:hover {transform:translateY(-3px);box-shadow:0 7px 15px #0002;opacity:1;}
body.cms-storefront-page .classima-store-info .rtin-store-hours-list {color:#54627a;line-height:1.8;}
body.cms-storefront-page .classima-store-info .rtin-store-hours-list > .row {border-bottom:1px dashed #e6ebf5;padding:6px 0;margin:0;}
body.cms-storefront-page .classima-store-info .rtin-store-hours-list .current-store-hour {background:#e8f8f0;border-radius:7px;color:#087f55;}
body.cms-storefront-page .classima-store-info .rtin-store-web a {font-weight:700;color:#df2334;}
body.cms-storefront-page .classima-store-info .rtin-phone {border-radius:12px;background:#f5f8fd;border:1px solid #e0e7f0;}
body.cms-storefront-page .classima-store-info .rtin-email a {background:var(--cms-store-accent);border-radius:11px;text-align:center;padding:12px;color:#fff;}
body.cms-storefront-page .classima-store-info .rtin-email a:hover {background:#ba172b;}
body.cms-storefront-page .rtcl-store-review-heading {margin-top:34px;}
body.cms-storefront-page .rtcl-store-review-heading h2 {font-size:22px;color:var(--cms-store-ink);}

/* Optional reveal-on-scroll: does not hide elements before JS executes */
@media (prefers-reduced-motion:no-preference) {
  body.cms-mart-store-page .cms-store-reveal {transition:transform .65s cubic-bezier(.22,.8,.22,1),opacity .65s;}
  body.cms-mart-store-page .cms-store-reveal.is-before-view {transform:translateY(18px);opacity:.88;}
  body.cms-mart-store-page .cms-store-reveal.is-in-view {transform:translateY(0);opacity:1;}
}
@media (max-width:1199px) {
  body.cms-store-directory-page .classima-store-single .rtcl .rtcl-stores,body.cms-store-directory-page .classima-store-single .rtcl-stores {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:991px) {
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-img {height:340px;}
  body.cms-storefront-page .classima-store-single .rtin-banner-content .rtin-logo {width:95px;height:95px;}
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-content {left:20px;right:20px;bottom:22px;}
}
@media (max-width:767px) {
  .cms-store-directory-intro {padding:30px 24px;min-height:190px;}
  .cms-store-directory-intro .cms-store-decoration {display:none;}
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-img {height:400px;}
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-content {position:absolute;display:block;left:18px;right:18px;bottom:18px;top:auto;margin:0;}
  body.cms-storefront-page .classima-store-single .rtin-banner-content .rtin-logo {position:static;max-width:none;width:72px;height:72px;margin-bottom:10px;}
  body.cms-storefront-page .classima-store-single .rtin-banner-content .rtin-store-title-area {position:static;max-width:100%;margin:0;}
  body.cms-storefront-page .rtin-banner-wrap .rtin-store-title {margin:0 0 7px!important; font-size:25px!important;}
  body.cms-storefront-page .rtin-banner-wrap .rtin-title-meta {gap:5px;}
  body.cms-storefront-page .rtin-banner-wrap .rtin-title-meta li {font-size:11px!important;padding:5px 8px!important;}
  .cms-store-quick-nav {gap:3px;}
  .cms-store-quick-nav a {padding:9px 11px;font-size:12px;}
  .cms-store-quick-nav .cms-store-quick-primary {margin-left:0;}
}
@media (max-width:600px) {
  body.cms-store-directory-page .classima-store-single .rtcl .rtcl-stores,body.cms-store-directory-page .classima-store-single .rtcl-stores {grid-template-columns:1fr;}
  body.cms-mart-store-page .classima-store-single {padding:17px 0 48px;}
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-img {height:450px;}
  body.cms-storefront-page .rtin-banner-wrap .rtin-title-meta li {max-width:100%;}
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-content .rtin-store-title-area {width:100%;}
}
@media (prefers-reduced-motion:reduce) {
  body.cms-mart-store-page .classima-store-single * {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}
/* Match Classima's more-specific mobile banner rules. */
@media (max-width:767px) {
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-content .rtin-logo {
    position:static;left:auto;right:auto;top:auto;max-width:none;margin:0 0 10px;
  }
  body.cms-storefront-page .classima-store-single .rtin-banner-wrap .rtin-banner-content .rtin-store-title-area {
    position:static;left:auto;right:auto;top:auto;margin:0;padding:0;max-width:100%;
  }
}
