/* iMobi V137 — premium refinement for main content only.
   Explicitly excludes top header/navigation and bottom/footer/navigation. */
:root{
  --v137-rose:#b9827d;
  --v137-rose-deep:#895c58;
  --v137-rose-pale:#f8efed;
  --v137-ink:#292529;
  --v137-muted:#777078;
  --v137-border:#e9e1e0;
  --v137-card-shadow:0 12px 32px rgba(40,29,32,.065);
  --v137-card-shadow-hover:0 18px 42px rgba(40,29,32,.11);
}

/* Home / catalog */
main.shop-home .home-store-search{
  border:1px solid var(--v137-border);
  border-radius:20px;
  background:linear-gradient(135deg,#fff 0%,#fbf6f5 100%);
  box-shadow:var(--v137-card-shadow);
}
main.shop-home .home-search-box{
  border-radius:15px;
  border-color:#e3d7d6;
  background:#fff;
}
main.shop-home .home-search-box:focus-within{
  border-color:var(--v137-rose);
  box-shadow:0 0 0 4px rgba(185,130,125,.13);
}
main.shop-home .home-category-chips{
  gap:10px;
}
main.shop-home .home-category-chips a,
main.shop-home .home-category-chips button{
  border-radius:999px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
main.shop-home .home-category-chips .active{
  box-shadow:0 5px 15px rgba(137,92,88,.14);
}
main.shop-home .home-product-grid{
  gap:clamp(12px,2vw,22px);
}
main.shop-home .home-product-grid > *{
  border:1px solid var(--v137-border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(40,29,32,.045);
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
main.shop-home .home-product-grid > *:hover{
  transform:translateY(-3px);
  border-color:#d8b5b1;
  box-shadow:var(--v137-card-shadow-hover);
}
main.shop-home .shop-service-banner{
  border:1px solid rgba(185,130,125,.28);
  border-radius:24px;
  overflow:hidden;
}

/* User profile — polish existing elements, no new sections */
main.personal-page{
  --profile-card-radius:22px;
}
main.personal-page .personal-top{
  margin-bottom:clamp(18px,3vw,30px);
}
main.personal-page .personal-heading{
  line-height:1.18;
  letter-spacing:-.035em;
}
main.personal-page .personal-card{
  border:1px solid var(--v137-border);
  border-radius:22px;
  background:linear-gradient(160deg,#fff 0%,#fdfafa 100%);
  box-shadow:var(--v137-card-shadow);
  padding:clamp(18px,3vw,28px);
}
main.personal-page .personal-card-head{
  padding-bottom:16px;
  border-bottom:1px solid #f0e8e7;
  margin-bottom:20px;
}
main.personal-page .personal-fields{
  gap:16px;
}
main.personal-page .personal-field{
  min-width:0;
}
main.personal-page .personal-field :where(input,select,textarea){
  width:100%;
  min-height:46px;
  border:1px solid #e4d9d8;
  border-radius:13px;
  background:#fff;
  padding:11px 13px;
  color:var(--v137-ink);
}
main.personal-page .personal-field :where(input,select,textarea):focus{
  border-color:var(--v137-rose);
  box-shadow:0 0 0 4px rgba(185,130,125,.13);
  outline:0;
}
main.personal-page .personal-notice{
  border:1px solid #ead8d6;
  border-radius:15px;
  background:var(--v137-rose-pale);
  padding:14px 16px;
}
main.personal-page .personal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
main.personal-page .personal-primary,
main.personal-page .personal-secondary{
  min-height:46px;
  border-radius:13px;
  padding:12px 20px;
  font-weight:650;
}

/* Service/support pages */
main.content .lead{
  max-width:760px;
  line-height:1.75;
  color:var(--v137-muted);
}
main.content .support-cards{
  gap:clamp(14px,2vw,22px);
}
main.content .support-card{
  position:relative;
  border:1px solid var(--v137-border);
  border-radius:22px;
  background:linear-gradient(155deg,#fff 0%,#fcf8f7 100%);
  box-shadow:var(--v137-card-shadow);
  padding:clamp(20px,3vw,28px);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
main.content .support-card:hover{
  transform:translateY(-3px);
  border-color:#d8b5b1;
  box-shadow:var(--v137-card-shadow-hover);
}
main.content .support-card .pill{
  display:inline-flex;
  align-items:center;
  border:1px solid #ead6d4;
  border-radius:999px;
  background:var(--v137-rose-pale);
  color:var(--v137-rose-deep);
  padding:6px 11px;
}

/* Store */
main.store-v95 .store-intro{
  border:1px solid var(--v137-border);
  border-radius:24px;
  background:linear-gradient(135deg,#fff 0%,#fbf4f3 100%);
  box-shadow:var(--v137-card-shadow);
  padding:clamp(20px,3vw,34px);
}
main.store-v95 .store-toolbar{
  border:1px solid var(--v137-border);
  border-radius:17px;
  background:#fff;
  box-shadow:0 6px 20px rgba(40,29,32,.035);
}
main.store-v95 .store-search,
main.store-v95 .store-sort,
main.store-v95 .store-advanced-filters{
  border-radius:13px;
}
main.store-v95 .store-layout{
  gap:clamp(16px,2.5vw,28px);
}
main.store-v95 .store-sidebar{
  border:1px solid var(--v137-border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(40,29,32,.04);
}
main.store-v95 .store-results-head{
  align-items:center;
  gap:12px;
}
main.store-v95 .store-product-grid{
  gap:clamp(12px,2vw,22px);
}
main.store-v95 .store-product-grid > *{
  border:1px solid var(--v137-border);
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(40,29,32,.045);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
main.store-v95 .store-product-grid > *:hover{
  transform:translateY(-3px);
  border-color:#d8b5b1;
  box-shadow:var(--v137-card-shadow-hover);
}
main.store-v95 .store-cart-shortcut{
  border-radius:13px;
}

/* Global form controls only inside main content; header/footer are not selected. */
main :where(input,select,textarea){
  accent-color:var(--v137-rose);
}
main :where(input,select,textarea):focus-visible,
main :where(button,a):focus-visible{
  outline:2px solid rgba(185,130,125,.7);
  outline-offset:3px;
}
@media(max-width:760px){
  main.personal-page .personal-card,
  main.content .support-card,
  main.store-v95 .store-intro{
    border-radius:17px;
  }
  main.personal-page .personal-actions > *{
    flex:1 1 100%;
  }
  main.store-v95 .store-toolbar{
    border-radius:14px;
  }
}
@media(prefers-reduced-motion:reduce){
  main *{transition:none!important;animation:none!important;}
}


/* V137.1 — restrained content-surface refinement.
   All selectors are scoped beneath main; site header and footer remain untouched. */
main :where(.section-heading,.page-title,.store-title,.content-title){
  text-wrap:balance;
  letter-spacing:-.025em;
}
main :where(.section-description,.page-description,.store-description){
  max-width:68ch;
  line-height:1.72;
}
main :where(.card,.service-card,.feature-card,.product-card,.account-card){
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;
}
main :where(button,.button,.btn,[role="button"]){
  -webkit-tap-highlight-color:transparent;
}
main :where(button,.button,.btn):not(:disabled):not([aria-disabled="true"]){
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,
             box-shadow .18s ease,transform .18s ease;
}
main :where(button,.button,.btn):not(:disabled):not([aria-disabled="true"]):active{
  transform:translateY(1px);
}
main :where(img){
  max-width:100%;
}
main :where(.product-image,.product-media,.service-image){
  overflow:hidden;
}
main :where(.product-image,.product-media,.service-image) img{
  display:block;
  max-width:100%;
}
main :where(.empty-state,.no-results,.cart-empty){
  border:1px dashed var(--v137-border);
  border-radius:20px;
  background:linear-gradient(145deg,#fff 0%,#fbf6f5 100%);
}
main :where(.notice,.alert,.status-message){
  border-radius:14px;
}
main :where(input,select,textarea):disabled{
  cursor:not-allowed;
  opacity:.72;
}
@media(max-width:560px){
  main :where(.section-heading,.page-title,.store-title,.content-title){
    letter-spacing:-.02em;
  }
  main :where(.card,.service-card,.feature-card,.product-card,.account-card){
    min-width:0;
  }
}
