/* =========================================================
   LifeComp — storefront chrome
   Loaded after style.css and shares its tokens.
   Styles the header, footer, hero, catalog, cart, product
   pages and common full-page layouts.
   ========================================================= */

/* ================= Announcement bar ================= */
.announce {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #0c1022 0%, #1a1a3d 50%, #0c1022 100%);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.announce::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(201, 138, 36, 0.22),
      transparent);
  transform: translateX(-100%);
  animation: lcShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lcShimmer {

  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background: rgba(246, 247, 251, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.site-header>.wrap {
  position: relative;
  overflow: visible;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px -8px rgba(67, 56, 202, 0.55);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a,
.header-login {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transition: right 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.main-nav a:hover,
.main-nav a.active,
.header-login:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-search {
  display: inline-flex;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-search svg {
  display: block;
  width: 21px;
  height: 21px;
  flex: none;
}

.header-search:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-cart svg {
  width: 21px;
  height: 21px;
}

.header-cart:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.header-cart[hidden] {
  display: none !important;
}

.cart-count {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--paper);
}

.account-control {
  position: relative;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.account-toggle:hover,
.header-cart:hover,
.header-search:hover {
  color: var(--brand);
}

.account-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: -4px 0 0 2px;
  transition: transform 0.2s ease;
}

.account-toggle[aria-expanded="true"] .account-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.account-menu {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  z-index: 120;
  min-width: 230px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: lcRise 0.2s ease-out;
}

.account-menu[hidden] {
  display: none;
}

.account-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.87rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.account-menu a:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.account-menu a[data-logout] {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
  color: var(--danger);
}

.account-menu a[data-logout]:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.mobile-account-section {
  display: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.header-actions a:focus-visible,
.account-toggle:focus-visible,
.nav-toggle:focus-visible,
.main-nav a:focus-visible,
.account-menu a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid var(--brand-tint);
  outline-offset: 2px;
}

/* ---------- Header responsive ---------- */
@media (max-width: 950px) {
  .site-header>.wrap {
    height: auto !important;
    min-height: 72px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 12px;
  }

  .site-header .brand {
    order: 1;
  }

  .site-header .header-actions {
    order: 2;
    margin-left: auto;
    gap: 10px;
  }

  .site-header .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
  }

  .site-header .main-nav {
    order: 3;
    position: static !important;
    inset: auto !important;
    display: none !important;
    flex: 1 0 100%;
    width: 100%;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 4px 14px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: none;
    transform: none !important;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .site-header .main-nav.open {
    display: flex !important;
  }

  .site-header .main-nav>a {
    display: block;
    padding: 14px 6px;
    border-bottom: 1px solid var(--ivory-deep);
    white-space: normal;
    font-size: 0.95rem;
  }

  .site-header .main-nav>a::after {
    display: none;
  }

  .site-header .mobile-account-section {
    display: block;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 14px;
  }

  .mobile-account-section>strong {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.66rem;
    font-weight: 800;
    margin: 0 0 8px;
  }

  .mobile-account-section a {
    display: block;
    padding: 12px 6px;
    color: var(--ink);
    border-bottom: 1px solid var(--ivory-deep);
    font-size: 0.92rem;
  }

  .site-header .header-login {
    display: inline-flex !important;
    font-size: 0.8rem !important;
    padding: 6px 0;
  }

  .site-header .header-cart span {
    display: none;
  }

  .site-header .header-cart {
    padding: 6px;
  }

  .site-header .account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    max-height: min(70vh, 460px);
    overflow: auto;
  }

  .site-header .header-search {
    display: inline-flex;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 390px) {
  .site-header .header-actions {
    gap: 6px;
  }

  .site-header .header-search {
    display: none;
  }

  .site-header .header-login {
    font-size: 0.74rem !important;
  }

  .site-header .brand {
    gap: 8px;
    font-size: 1.1rem;
  }
}

/* ================= Footer ================= */
.site-footer {
  background: #0A0C18;
  color: #C8CCDA;
  padding: 64px 0 24px;
  margin-top: auto;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(201, 138, 36, 0.35),
      transparent);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  background: linear-gradient(135deg, var(--gold), #a06d10);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(201, 138, 36, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 44px;
}

.footer-brand p {
  color: #8B92A6;
  max-width: 280px;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  margin: 4px 0 16px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: #8B92A6;
  font-size: 0.86rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-soft);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  color: #737A90;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 950px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ================= Hero ================= */
.lc-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 620px at 82% 15%, rgba(201, 138, 36, 0.14), transparent 62%),
    radial-gradient(900px 500px at 10% 100%, rgba(67, 56, 202, 0.4), transparent 60%),
    linear-gradient(135deg, #0c1022 0%, #1a1a3d 55%, #0a0c18 100%);
}

.lc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 72% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 72% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}

.lc-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 580px;
  gap: 40px;
}

.lc-hero-copy {
  padding: 64px 0;
}

.lc-hero .eyebrow {
  color: var(--gold-soft);
  letter-spacing: 0.22em;
}

.lc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 22px 0;
  font-weight: 500;
  color: #f6f1e6;
}

.lc-hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.lc-hero-copy>p {
  max-width: 480px;
  color: rgba(246, 241, 230, 0.78);
  line-height: 1.7;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.lc-hero .btn {
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.lc-hero .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #14121c;
  box-shadow: 0 12px 30px -10px rgba(201, 138, 36, 0.55);
}

.lc-hero .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}

.lc-hero .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.lc-hero .btn-outline:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero-proof {
  display: flex;
  gap: 22px;
  margin-top: 54px;
  color: rgba(246, 241, 230, 0.55);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  flex-wrap: wrap;
}

.hero-proof span {
  position: relative;
  padding-left: 14px;
}

.hero-proof span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

.hero-index {
  position: absolute;
  right: 4.5%;
  bottom: 20px;
  color: rgba(246, 241, 230, 0.32);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.lc-device-art {
  height: 460px;
  position: relative;
  display: grid;
  place-items: center;
}

.device-screen {
  position: relative;
  z-index: 1;
  width: min(420px, 82%);
  height: 265px;
  border: 8px solid #2a304a;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 75% 28%, rgba(201, 138, 36, 0.35) 0, transparent 55%),
    linear-gradient(135deg, #141728, #1e2140 60%, #0f1120);
  box-shadow:
    0 40px 90px rgba(3, 5, 12, 0.75),
    0 0 0 1px rgba(201, 138, 36, 0.1) inset;
  display: flex;
  align-items: center;
  padding: 38px;
  animation: lcFloat 7s ease-in-out infinite;
}

@keyframes lcFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.device-screen>span {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #f3ede0;
}

.cursor {
  color: var(--gold-soft);
  animation: lcBlink 1.05s steps(2, start) infinite;
}

@keyframes lcBlink {
  to {
    visibility: hidden;
  }
}

.device-base {
  position: absolute;
  z-index: 2;
  width: min(500px, 98%);
  height: 18px;
  bottom: 94px;
  background: linear-gradient(180deg, #5a5f7c, #2a2f4a 55%, #16182c);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  border-radius: 0 0 10px 10px;
}

.device-chip {
  position: absolute;
  right: 1%;
  bottom: 56px;
  border: 1px solid rgba(201, 138, 36, 0.5);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  background: rgba(10, 12, 24, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.device-chip span {
  color: rgba(246, 241, 230, 0.4);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(201, 138, 36, 0.16);
  border-radius: 50%;
  transform: rotate(-25deg);
  animation: lcOrbitPulse 6s ease-in-out infinite;
}

.orbit-two {
  animation-delay: -3s;
}

@keyframes lcOrbitPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.orbit-one {
  width: 500px;
  height: 285px;
}

.orbit-two {
  width: 600px;
  height: 355px;
}

@media (max-width: 992px) {
  .lc-hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {

  .lc-hero,
  .lc-hero-inner {
    min-height: 0;
  }

  .lc-hero-inner {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
    padding: 32px 0 20px;
  }

  .lc-hero-copy {
    padding: 42px 0 12px;
  }

  .lc-hero-copy>p {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-proof {
    justify-content: center;
    margin-top: 30px;
  }

  .lc-device-art {
    height: 320px;
  }

  .device-screen {
    height: 210px;
  }

  .device-base {
    bottom: 46px;
  }

  .orbit-one {
    width: 380px;
    height: 220px;
  }

  .orbit-two {
    width: 460px;
    height: 290px;
  }
}

@media (max-width: 560px) {
  .hero-index {
    display: none;
  }

  .lc-device-art {
    height: 260px;
  }

  .device-screen {
    height: 170px;
    padding: 22px;
  }

  .device-screen>span {
    font-size: 1.35rem;
  }

  .device-base {
    bottom: 36px;
    height: 14px;
  }

  .device-chip {
    bottom: 14px;
    right: 4%;
    font-size: 0.66rem;
    padding: 8px 11px;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 52px;
  }
}

/* ================= Section heads / category grid ================= */
.lc-section-head,
.section-head.lc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 30px;
}

.lc-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 8px 0 0;
  letter-spacing: -0.025em;
}

.lc-section-head p {
  color: var(--ink-soft);
  margin: 6px 0 0;
}

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

.category-tile {
  position: relative;
  min-height: 156px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
  overflow: hidden;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 138, 36, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.category-tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.category-tile:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 18px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.category-tile:hover .category-icon {
  color: var(--gold);
  transform: translateY(-3px);
}

.category-tile strong {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.category-tile small {
  color: var(--ink-soft);
  margin-top: 2px;
  font-size: 0.84rem;
}

.tile-arrow {
  position: absolute;
  right: 22px;
  top: 22px;
  color: var(--ink-soft);
  transition: transform 0.25s ease, color 0.25s ease;
}

.category-tile:hover .tile-arrow {
  color: var(--brand);
  transform: translate(3px, -3px);
}

@media (max-width: 950px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-tile {
    min-height: 132px;
    padding: 16px;
  }

  .category-icon {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .category-tile strong {
    font-size: 0.9rem;
  }

  .category-tile small {
    font-size: 0.74rem;
  }
}

/* ================= Product grid / card ================= */
.lc-featured {
  background: linear-gradient(180deg, var(--ivory-deep) 0%, var(--ivory) 100%);
}

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

.product-card {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.product-card .thumb {
  position: relative;
  height: 210px;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .thumb img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 10px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: var(--radius-pill);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.product-card .product-category {
  margin: 14px 0 6px;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.product-card .name {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  min-height: 42px;
  line-height: 1.35;
}

.product-card .desc {
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.product-card .product-model {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.product-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 10px;
}

.product-card .price,
.price-final {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
}

.price-original {
  display: block;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.82em;
  font-weight: 500;
}

.product-price .product-badge {
  position: static;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.product-saving {
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

.product-saving[hidden] {
  display: none;
}

.product-card .availability {
  font-size: 0.72rem;
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-card .availability.in {
  color: var(--success);
}

.product-card .availability.out {
  color: var(--danger);
}

.product-card .add,
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-weight: 600;
}

.product-card .add:hover,
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.loading-state,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 52px 22px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.product-pagination[hidden] {
  display: none;
}

.pagination-summary {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-buttons button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}

.pagination-buttons button:hover:not(:disabled),
.pagination-buttons button[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.pagination-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body[data-role="ADMIN"] .header-cart,
body[data-role="ADMIN"] #cartOverlay,
body[data-role="ADMIN"] #cartDrawer,
body[data-role="ADMIN"] .cart-foot,
body[data-role="ADMIN"] .product-card .add {
  display: none !important;
}

@media (max-width: 950px) {

  .product-grid,
  .catalog-results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {

  .product-grid,
  .catalog-results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 10px;
  }

  .product-card .thumb {
    height: 150px;
  }

  .product-card .name {
    font-size: 0.86rem;
    min-height: unset;
  }

  .product-card .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-card .add {
    width: 100%;
    min-height: 42px;
  }
}

@media (max-width: 480px) {
  .product-card .thumb {
    height: 130px;
  }

  .product-card .name {
    font-size: 0.82rem;
  }

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

/* ================= Build / promo bands ================= */
.lc-build {
  background: var(--ivory-deep);
  padding: 84px 0;
  overflow: hidden;
  position: relative;
}

.lc-build::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201, 138, 36, 0.18), transparent 65%);
  pointer-events: none;
}

.lc-build-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.lc-build h2,
.lc-promo h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 14px 0;
}

.lc-build p {
  color: var(--ink-soft);
  max-width: 420px;
  line-height: 1.72;
  margin: 18px 0 28px;
}

.build-graphic {
  height: 340px;
  position: relative;
  display: grid;
  place-items: center;
}

.pc-case {
  position: relative;
  width: 180px;
  height: 260px;
  border: 6px solid #14121c;
  border-radius: 14px;
  background: linear-gradient(140deg, #2a2f4a, #16182c);
  box-shadow: 20px 25px 45px rgba(12, 15, 23, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 20px;
}

.pc-case i {
  display: block;
  height: 51px;
  border-radius: 8px;
  border: 1px solid #3D4568;
  background: linear-gradient(90deg, #2A2F49, #181B2B 50%, var(--brand));
}

.spec {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spec:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.spec b {
  display: block;
  color: var(--muted);
  font-size: 0.57rem;
  margin-top: 4px;
  letter-spacing: 0.14em;
}

.spec-gpu {
  right: 6%;
  top: 45px;
}

.spec-cpu {
  left: 2%;
  top: 95px;
}

.spec-ram {
  right: 1%;
  bottom: 95px;
}

.spec-ssd {
  left: 4%;
  bottom: 44px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.trust-grid article {
  padding: 26px 22px 28px 0;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.trust-grid article:hover {
  background: rgba(201, 138, 36, 0.05);
}

.trust-grid article+article {
  padding-left: 24px;
}

.trust-grid article:last-child {
  border: 0;
}

.trust-grid article>span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: var(--font-display);
}

.trust-grid h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}

.trust-grid p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.lc-promo {
  padding: 76px 0;
  background:
    radial-gradient(900px 420px at 82% 10%, rgba(201, 138, 36, 0.24), transparent 62%),
    linear-gradient(120deg, #0c1022 0%, #1a1a3d 55%, #0a0c18 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.lc-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 20% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.lc-promo .wrap {
  position: relative;
  z-index: 1;
}

.lc-promo .eyebrow {
  color: var(--gold-soft);
}

.lc-promo h2 {
  margin: 14px 0 28px;
  color: #fff;
}

.lc-promo .btn-light,
.lc-build .btn-light {
  background: #fff;
  color: var(--brand-dark);
  padding: 14px 22px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.lc-promo .btn-light {
  background: var(--gold);
  color: #14121c;
  border-color: var(--gold);
}

.lc-promo .btn-light:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(201, 138, 36, 0.5);
}

.lc-build .btn-light {
  background: var(--brand);
  color: #fff;
}

.lc-build .btn-light:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

@media (max-width: 950px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid article:nth-child(2) {
    border-right: 0;
  }

  .trust-grid article:nth-child(n+3) {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }

  .trust-grid article:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .lc-build {
    padding: 60px 0;
  }

  .lc-build-inner {
    grid-template-columns: 1fr;
  }

  .build-graphic {
    height: 280px;
  }

  .lc-promo {
    padding: 56px 0;
    text-align: center;
  }

  .lc-promo .btn-light,
  .lc-build .btn-light {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }
}

/* ================= Cart drawer ================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 20, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 200;
  backdrop-filter: blur(2px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 210;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 {
  margin: 0;
  font-family: var(--font-display);
}

.cart-head button {
  border: none;
  background: var(--paper);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: var(--transition);
}

.cart-head button:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 24px;
}

.cart-empty {
  padding: 46px 0;
  text-align: center;
  color: var(--ink-soft);
}

.cart-line {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ivory-deep);
}

.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 12px;
  padding: 6px;
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding: 20px 24px 24px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-control button {
  border: none;
  background: #fff;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--ink);
  transition: var(--transition);
}

.qty-control button:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.qty-control span {
  min-width: 26px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

/* ================= Toast ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  z-index: 300;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= Shop / catalog ================= */
.shop-page {
  padding: 56px 0 84px;
}

.shop-intro {
  margin-bottom: 34px;
}

.shop-intro h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  letter-spacing: -0.035em;
  margin: 12px 0;
}

.shop-intro p {
  color: var(--ink-soft);
  max-width: 560px;
}

.catalog-tools {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0 18px;
  background: #fff;
  transition: var(--transition);
}

.catalog-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.catalog-search span {
  font-size: 1.3rem;
  color: var(--muted);
}

.catalog-search input {
  height: 46px;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  font: inherit;
  background: transparent;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.sort-select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 32px 10px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
}

.catalog-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.catalog-sidebar h2 {
  font-size: 0.95rem;
  margin: 4px 0 16px;
}

.filter-pills {
  display: grid;
  gap: 4px;
}

.filter-pills .pill {
  padding: 11px 14px;
  text-align: left;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pills .pill:hover,
.filter-pills .pill.active {
  background: var(--brand-tint);
  border-left-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 700;
}

.sidebar-note {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 22px;
}

.catalog-result-head {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 4px 0 16px;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 950px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-sidebar {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
  }

  .filter-pills {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 6px;
  }

  .filter-pills .pill {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 9px 16px;
  }

  .filter-pills .pill.active {
    border-color: var(--brand);
    background: var(--brand-tint);
  }

  .sidebar-note {
    display: none;
  }
}

@media (max-width: 420px) {
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-label {
    justify-content: space-between;
  }

  .shop-page {
    padding: 40px 0 60px;
  }
}

/* ================= Product detail overrides ================= */
.product-page {
  color: var(--ink);
}

.product-title {
  color: var(--ink);
  font-family: var(--font-display);
}

.rating-average {
  color: var(--brand);
}

.review-card,
.rating-summary {
  border-radius: var(--radius);
  border-color: var(--line);
}

.review-stars,
.verified {
  color: var(--brand);
}

.product-page .product-actions .btn {
  border-radius: var(--radius-sm);
}

.product-page .product-image {
  border-radius: var(--radius);
  background: var(--paper);
}

/* ================= Checkout snippet overrides ================= */
.checkout-layout {
  gap: 48px !important;
}

.checkout-step h3,
.order-summary h3 {
  color: var(--ink);
}

.checkout-step h3 .num {
  background: var(--brand) !important;
}

.pay-option {
  border-color: var(--line) !important;
  border-radius: var(--radius) !important;
  transition: var(--transition);
}

.pay-option.selected {
  border-color: var(--brand) !important;
  background: var(--brand-tint) !important;
}

.pay-option input {
  accent-color: var(--brand) !important;
}

#checkoutValidation {
  color: var(--danger) !important;
}

#checkoutForm input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font: inherit;
  max-width: 100%;
}

.order-summary {
  border-color: var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
}

@media (max-width: 560px) {
  .checkout-layout {
    gap: 24px !important;
  }
}

/* ================= Info pages ================= */
.info-page {
  min-height: 54vh;
  background: var(--ivory-deep);
  padding: 80px 0;
}

.info-copy {
  max-width: 900px;
}

.info-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  margin: 14px 0 20px;
}

.info-copy>p {
  max-width: 680px;
  color: var(--ink-soft);
  line-height: 1.78;
  font-size: 1.02rem;
}

.info-copy h2 {
  font-size: 1.35rem;
  margin: 34px 0 10px;
}

.info-copy details,
.info-copy section {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.info-copy details summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.02rem;
  padding: 4px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-copy details summary::-webkit-details-marker {
  display: none;
}

.info-copy details summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.info-copy details[open] summary::after {
  transform: rotate(45deg);
}

.info-copy details p,
.info-copy section p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.info-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .info-page {
    padding: 50px 0;
  }

  .info-actions {
    flex-direction: column;
  }

  .info-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.contact-layout input,
.contact-layout select,
.contact-layout textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* ================= Admin forms ================= */
.category-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: start;
}

.category-admin-layout>section {
  min-width: 0;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list .value-card {
  margin: 0 !important;
  padding: 18px;
}

.admin-list button {
  min-height: 40px;
}

.admin-list [data-delete] {
  color: var(--danger);
  border-color: #F3C7C7;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-products,
.orders-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 760px) {
  .category-admin-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-admin-layout .btn {
    min-height: 44px;
  }

  .admin-actions .btn {
    flex: 1;
  }
}

.category-form-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-form-card .form-field {
  margin-bottom: 18px;
}

.category-form-card textarea {
  min-height: 110px;
  resize: vertical;
}