/* iMobi.uz V106 — Apple Minimal Luxury Plus
   Scope: page content only. Do not target or modify .global-nav, .nav-inner,
   .nav-links, .brand, .nav-icons, .icon-link, or the global-header script. */

:root {
  --v106-ink: #1d1d1f;
  --v106-muted: #6e6e73;
  --v106-line: #e6e6eb;
  --v106-paper: #ffffff;
  --v106-canvas: #f5f5f7;
  --v106-accent: #06c;
  --v106-accent-soft: rgba(0, 102, 204, .09);
  --v106-radius: 20px;
  --v106-shadow: 0 8px 26px rgba(0, 0, 0, .045);
  --v106-shadow-hover: 0 16px 38px rgba(0, 0, 0, .085);
}

/* Shared content typography; header is intentionally outside these scopes. */
main, .wrap, .content, .profile-page, .store-v95, .shop-home {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--v106-ink);
  -webkit-font-smoothing: antialiased;
}
main:not(.auth-body), .wrap {
  text-rendering: optimizeLegibility;
}
main :where(h1, h2, h3, h4), .wrap :where(h1, h2, h3, h4) {
  color: var(--v106-ink);
  letter-spacing: -.035em;
}
main :where(p, small, .muted, .description), .wrap :where(p, small, .muted, .description) {
  color: var(--v106-muted);
}
main :where(section, article, .panel, .card), .wrap :where(.card, .section, .table-wrap) {
  min-width: 0;
}

/* Quiet, consistent surfaces across the storefront and informational pages. */
main :where(.panel, .card, .tile, .service-card, .feature-card, .info-card),
.wrap :where(.card, .section, .table-wrap) {
  border-color: var(--v106-line);
  border-radius: var(--v106-radius);
}
main :where(input, select, textarea), .wrap :where(input, select, textarea) {
  border-color: #dedee3;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
main :where(input, select, textarea):focus, .wrap :where(input, select, textarea):focus {
  outline: none;
  border-color: #78aee8;
  box-shadow: 0 0 0 4px var(--v106-accent-soft);
}
main :where(button, .button, .btn, .shop-button, .primary, [role="button"]) {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}
main :where(button, .button, .btn, .shop-button, .primary):active,
.wrap :where(button, .btn, .primary):active {
  transform: scale(.985);
}

/* Home: editorial spacing, restrained visual hierarchy. */
.shop-home > section,
.store-v95 > section {
  margin-bottom: clamp(18px, 2.5vw, 30px);
}
.shop-home :where(.home-deals, .home-category-section, .home-products-section),
.store-v95 :where(.store-intro, .store-toolbar, .store-results-head) {
  animation: v106-rise-in .48s cubic-bezier(.2, .7, .25, 1) both;
}
.shop-home .home-deals {
  border-radius: 26px;
  box-shadow: var(--v106-shadow);
}
.shop-home .home-deals-heading h1,
.store-v95 .store-intro h1 {
  text-wrap: balance;
}
.shop-home .home-search-box {
  border-color: #e2e2e7;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
}
.shop-home .home-search-box:focus-within {
  border-color: #8bb8e8;
  box-shadow: 0 0 0 4px var(--v106-accent-soft);
}

/* Product cards: stable geometry and restrained hover feedback. */
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card) {
  overflow: hidden;
  border: 1px solid var(--v106-line);
  border-radius: 19px;
  background: var(--v106-paper);
  box-shadow: 0 5px 18px rgba(0,0,0,.035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: v106-rise-in .42s ease both;
}
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):hover {
  transform: translateY(-3px);
  border-color: #d4d4dc;
  box-shadow: var(--v106-shadow-hover);
}
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card) img {
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):hover img {
  transform: scale(1.025);
}
main :where(.product-art, .product-image, .shop-product-image) {
  overflow: hidden;
  background: linear-gradient(145deg, #fbfbfd, #f1f1f5);
}
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):focus-within {
  outline: 3px solid rgba(0,102,204,.14);
  outline-offset: 2px;
}
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):nth-child(2) { animation-delay: .04s; }
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):nth-child(3) { animation-delay: .08s; }
main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):nth-child(4) { animation-delay: .12s; }

/* Catalog, filters, detail view, cart and comparison. */
.store-v95 .store-intro,
.store-v95 .store-toolbar,
.store-v95 .store-sidebar,
.store-v95 .store-detail-media,
.store-v95 .store-detail-info {
  border-color: var(--v106-line);
  box-shadow: var(--v106-shadow);
}
.store-v95 .store-toolbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
main :where(.cart-row, .compare-row, .order-summary, .checkout-card) {
  border-color: var(--v106-line);
  border-radius: 15px;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
main :where(.cart-row, .compare-row):hover {
  border-color: #d7d7df;
  box-shadow: 0 7px 20px rgba(0,0,0,.04);
}

/* Profile and account pages. */
.profile-page {
  background: #f5f5f7;
}
.profile-page :where(.panel, .profile-identity, .profile-sidebar, .profile-card) {
  border-color: var(--v106-line);
  border-radius: 19px;
  box-shadow: var(--v106-shadow);
}
.profile-page .sidebar-link {
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.profile-page .sidebar-link:hover {
  transform: translateX(2px);
}
.profile-page :where(.profile-identity, .profile-sidebar, .panel) {
  animation: v106-rise-in .42s ease both;
}

/* Auth and registration content only; do not target any site-wide navigation. */
body:has(.auth-form) .auth-form,
body:has(.login-reference-card) .login-reference-card {
  animation: v106-auth-enter .55s cubic-bezier(.2,.7,.25,1) both;
}
body:has(.auth-form) .auth-submit {
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
body:has(.auth-form) .auth-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(0,102,204,.18);
}

/* Installation wizard and admin workspace. */
body:has(.wrap .steps) .wrap > .card,
body:has(#product-editor) .wrap > .card,
body:has(#product-editor) .wrap > .grid > .card {
  border: 1px solid var(--v106-line);
  border-radius: 17px;
  box-shadow: var(--v106-shadow);
}
body:has(.wrap .steps) .step {
  transition: transform .2s ease, box-shadow .2s ease;
}
body:has(.wrap .steps) .step:hover {
  transform: translateY(-2px);
}
body:has(#product-editor) .grid > .card {
  transition: transform .2s ease, box-shadow .2s ease;
}
body:has(#product-editor) .grid > .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v106-shadow-hover);
}
body:has(#product-editor) .table-wrap {
  border: 1px solid var(--v106-line);
  border-radius: 15px;
  background: #fff;
  overflow: auto;
}
body:has(#product-editor) tbody tr {
  transition: background-color .16s ease;
}
body:has(#product-editor) tbody tr:hover {
  background: #f6f8fb;
}

/* Informational/support/service sections. */
main :where(.support-card, .service-card, .feature-card, .contact-card, .info-card) {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
main :where(.support-card, .service-card, .feature-card, .contact-card, .info-card):hover {
  transform: translateY(-2px);
  box-shadow: var(--v106-shadow);
}

/* Footer is the only shared outer panel whose color is adjusted:
   same charcoal tone as the existing global top panel (#171719).
   Its markup, dimensions, layout and links remain unchanged. */
.footer,
.profile-footer {
  background: #171719;
  color: #c7c7cc;
  border-color: rgba(255,255,255,.12);
}
.footer :where(p, span, small, .footer-bottom),
.profile-footer :where(span, small) {
  color: #b7b7bd;
}
.footer :where(h4, strong) {
  color: #f5f5f7;
}
.footer a,
.profile-footer a {
  color: #dedee3;
  transition: color .18s ease, opacity .18s ease;
}
.footer a:hover,
.profile-footer a:hover {
  color: #fff;
}
.footer-inner > p,
.footer-bottom {
  border-color: rgba(255,255,255,.14);
}

/* Accessible motion: keep all controls and content fully usable without motion. */
@keyframes v106-rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes v106-auth-enter {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):hover {
    transform: none;
  }
  main :where(.shop-product-card, .home-product-card, .product-card, .store-product-card, .store-card):hover img {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
