/* Aresta Store — light professional commerce UI */

:root {
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1f5;
  --surface: #ffffff;
  --line: #e5e9ef;
  --text: #12161c;
  --muted: #5b6675;
  --steel: #7a8698;
  --accent: #0084ff;
  --accent-strong: #0066cc;
  --accent-dim: rgba(0, 132, 255, 0.14);
  --warm: #c9a227;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-btn: 10px;
  --shadow: 0 8px 24px rgba(18, 22, 28, 0.06);
  --shadow-sm: 0 2px 8px rgba(18, 22, 28, 0.05);
  --container: 1140px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.brand-logo--full {
  display: none;
}

.brand-logo--wordmark {
  display: block;
  max-height: 38px;
  max-width: min(168px, 38vw);
}

@media (min-width: 900px) {
  .brand-logo--full {
    display: block;
    max-height: 52px;
    max-width: 200px;
  }

  .brand-logo--wordmark {
    display: none;
  }
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #c9d2de;
  background: var(--bg-soft);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.cart-link {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
  background: #fff;
}

.header-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.header-account-btn:hover {
  border-color: var(--accent);
  color: var(--accent-strong, #0066cc);
}

.header-login-btn {
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--accent-strong, #0066cc);
}

.header-login-btn:hover {
  background: rgba(13, 148, 136, 0.08);
  border-color: var(--accent);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.nav-toggle .hamburger {
  width: 18px;
  height: 14px;
  display: grid;
  align-content: space-between;
  margin: 0 auto;
}

.nav-toggle .hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}

.nav-toggle.is-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Product search */
.product-search-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.product-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.product-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 0.75rem 1.1rem;
  background: var(--bg);
  color: var(--text);
}

.product-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.product-search-form .btn {
  flex-shrink: 0;
}

/* Carousel — 16:9 banner (full width mobile; inset on desktop) */
.home-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(56.25vw, 640px);
  background: #0f1720;
}

@media (min-width: 900px) {
  .home-carousel {
    width: min(calc(100% - 3rem), 1040px);
    max-width: calc(var(--container) - 2rem);
    margin-inline: auto;
    margin-top: 0.75rem;
    max-height: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide--no-bg {
  background: linear-gradient(135deg, #0f1720 0%, #1a2a36 100%);
}

.carousel-slide::before {
  content: none;
}

.carousel-slide__frame {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: clamp(1.35rem, 3.5vw, 2.25rem);
  padding-top: 1rem;
}

.carousel-slide .slide-inner {
  width: 100%;
  max-width: min(32rem, 58%);
  text-align: left;
  color: #fff;
}

.carousel-slide .slide-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent, #0084ff);
  margin: 0 0 0.35rem;
  text-align: left;
}

.carousel-slide h2 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.carousel-slide .slide-text {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-slide .slide-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0.15rem;
}

.carousel-slide .slide-inner .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.carousel-nav {
  position: absolute;
  inset: auto 0.5rem 50%;
  transform: translateY(50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.carousel-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 2;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.is-active {
  background: #fff;
  width: 22px;
  border-radius: var(--radius-btn);
}

/* Compact hero strip under carousel */
.home-intro {
  padding: 1.75rem 0 0.5rem;
}

.home-intro h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.home-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* Track order page */
.track-page-card {
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.track-page-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.aresta-track-card {
  max-width: 560px;
}

.aresta-track-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.aresta-track-tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.aresta-track-tab.is-active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.aresta-track-panel[hidden] {
  display: none !important;
}

.aresta-otp__row,
.aresta-otp__actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0.65rem 0;
}

.aresta-otp__actions {
  grid-template-columns: 1fr;
  margin: 0;
}

.aresta-otp__verify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.aresta-otp__verify-row--solo {
  grid-template-columns: 1fr;
}

.aresta-track-panel .aresta-otp__row {
  grid-template-columns: auto 1fr;
}

.aresta-otp__input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #c9d2de;
  border-radius: 10px;
  background: #fff;
}

.aresta-otp__hint {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.aresta-otp__status {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.aresta-otp__status.is-ok {
  color: #047857;
}

.aresta-otp__status.is-error {
  color: #b91c1c;
}

.aresta-otp__status.is-info {
  color: #0066cc;
}

.aresta-otp.is-verified .aresta-otp__status.is-ok {
  font-weight: 750;
}

.aresta-track-order {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.aresta-track-order:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aresta-track-phone-label {
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.aresta-phone-field label .optional,
#billing_phone_field label .optional,
#shipping_phone_field label .optional {
  display: none !important;
}

.aresta-otp--inline {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #f8fafc;
}

.aresta-otp__row--send-only {
  grid-template-columns: auto 1fr !important;
}

.aresta-otp__step-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0066cc;
}

.aresta-login-card {
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 4px 18px rgba(18, 22, 28, 0.04);
}

.aresta-login-tabs {
  margin-bottom: 1rem;
}

.aresta-login-panel[hidden] {
  display: none !important;
}

.aresta-otp--login .aresta-otp__hint {
  margin-bottom: 0.75rem;
}

.aresta-login-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  float: none !important;
  width: 100% !important;
}

.aresta-login-grid .col-1,
.aresta-login-grid .col-2 {
  float: none !important;
  width: 100% !important;
}

@media (max-width: 860px) {
  .aresta-login-grid {
    grid-template-columns: 1fr;
  }
}

.aresta-otp__captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
}

.aresta-otp__captcha-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: #334155;
}

.aresta-otp__captcha-input {
  width: 88px !important;
  min-height: 40px !important;
  padding: 0.45rem 0.55rem !important;
  border: 1px solid #c9d2de !important;
  border-radius: 8px !important;
  text-align: center;
  font-weight: 700;
}

.aresta-otp__captcha-refresh {
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0.35rem 0.55rem !important;
}

.aresta-otp__gate {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: #64748b;
}

.aresta-otp__gate.is-ok {
  color: #047857;
}

.aresta-otp__gate.is-error {
  color: #b91c1c;
}

.woocommerce-checkout #place_order.aresta-place-locked,
.woocommerce-checkout button#place_order:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.woocommerce-checkout .aresta-otp--checkout .button {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 0.7rem !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
}

.woocommerce-checkout .aresta-otp--checkout .aresta-otp__send {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid #c9d2de !important;
}

.woocommerce-checkout .aresta-otp--checkout .aresta-otp__verify {
  background: var(--accent) !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .aresta-otp__row,
  .aresta-track-panel .aresta-otp__row {
    grid-template-columns: 1fr;
  }
}

/* Track + shipping tools (shared form styles) */
.tools-section {
  padding-top: 1.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.tool-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.tool-card > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-form {
  display: grid;
  gap: 0.45rem;
}

.tool-form label {
  font-size: 0.85rem;
  color: var(--steel);
}

.tool-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
}

.tool-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.tool-form .btn {
  margin-top: 0.35rem;
  justify-self: start;
}

.tool-result {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tool-result.is-loading {
  background: var(--bg-soft);
  color: var(--muted);
}

.tool-result.is-ok {
  background: var(--accent-dim);
  border: 1px solid rgba(13, 148, 136, 0.28);
}

.tool-result.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.section-head h2,
.page-hero h1,
.content-block h1,
.content-block h2 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
}

/* Compact product cards (home + shop) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.woocommerce ul.products li.product.aresta-product-item {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible;
}

.woocommerce ul.products li.product.aresta-product-item:hover {
  transform: none;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.product-card:hover {
  border-color: #cfd8e3;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #eef2f6, #e4eaf1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

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

.product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-btn);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-badge--sale {
  background: #0084ff;
  color: #fff;
}

.product-card-body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.stock-pill,
.sku-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-btn);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.stock-pill.in {
  background: rgba(13, 148, 136, 0.12);
  color: #0066cc;
}

.stock-pill.out {
  background: #fef2f2;
  color: #b91c1c;
}

.sku-pill {
  background: #f1f4f8;
  color: var(--steel);
}

.product-card-body h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.55em;
}

.product-card-body h3 a:hover {
  color: var(--accent-strong);
}

.product-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35em;
}

.product-card-price-row {
  margin-top: 0.15rem;
}

.product-card-body .price {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.product-card-body .price del {
  color: var(--steel);
  font-weight: 500;
  font-size: 0.85rem;
  margin-right: 0.35rem;
}

.product-card-body .price ins {
  text-decoration: none;
}

.product-card-actions {
  margin-top: auto;
  padding-top: 0.65rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.45rem;
}

.product-card-actions .btn {
  flex: 1;
  padding: 0.58rem 0.55rem;
  font-size: 0.82rem;
  width: 100%;
}

.product-card.is-out .product-card-media {
  opacity: 0.72;
}

/* Why / software / CTA */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.why-card {
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.why-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.software-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.soft-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.soft-panel::before {
  content: "";
  position: absolute;
  inset: auto -15% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.16), transparent 70%);
}

.soft-panel.postick::before {
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 70%);
}

.soft-panel h3 {
  position: relative;
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.soft-panel p {
  position: relative;
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.94rem;
  max-width: 36ch;
}

.soft-panel .btn {
  position: relative;
  align-self: start;
}

.cta-band {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin: 0 0 0.25rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Pages */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 52ch;
}

.content-block {
  padding-bottom: 2.5rem;
}

.content-block .prose {
  color: var(--muted);
  max-width: 68ch;
}

.content-block .prose h2,
.content-block .prose h3 {
  color: var(--text);
  margin-top: 1.5rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.feature-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.feature-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.contact-card,
.contact-form,
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.25rem;
}

.contact-card h3,
.download-card h3 {
  margin-top: 0;
  font-family: var(--display);
}

.contact-card p,
.download-card p {
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.form-row label {
  font-size: 0.88rem;
  color: var(--steel);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0.75rem 0.9rem;
}

.form-row input[type="checkbox"],
.form-row input[type="radio"] {
  width: auto;
  min-width: 0;
  padding: 0;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.notice {
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.notice.ok {
  background: var(--accent-dim);
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.notice.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  line-height: 0;
  max-width: 100%;
}

.footer-brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: min(200px, 100%);
  object-fit: contain;
  object-position: left center;
}

.footer-grid > div:first-child p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.55;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid h4 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--steel);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* WooCommerce — compact shop cards */
.woocommerce-products-header {
  margin-bottom: 1.25rem;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  padding: 0 0 0.9rem !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.woocommerce ul.products li.product a img {
  margin: 0 0 0.65rem !important;
  border-radius: 0;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.92rem !important;
  padding: 0 0.85rem;
  color: var(--text);
  font-weight: 650;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price {
  padding: 0 0.85rem;
  margin-bottom: 0.55rem !important;
  font-size: 0.95rem;
  color: var(--text) !important;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-btn) !important;
  border: 0 !important;
  font-weight: 650 !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.85rem !important;
}

.woocommerce ul.products li.product .button {
  margin-left: 0.85rem;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.woocommerce div.product .product_title {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.5rem;
}

.woocommerce div.product .price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.35rem 0 0.85rem;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  position: static !important;
  width: auto !important;
  max-width: 100%;
}

.woocommerce div.product form.cart .quantity {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
}

.woocommerce div.product form.cart .quantity .qty {
  width: 72px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0.45rem 0.55rem !important;
  border: 1px solid #c9d2de !important;
  border-radius: 10px !important;
  background: #fff !important;
  text-align: center;
  font-weight: 700;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0.7rem 1.25rem !important;
  border-radius: 10px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.22);
  flex: 0 1 auto;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--accent-strong) !important;
}

.woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-color: var(--line) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 0.85rem;
  background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-btn) !important;
  margin-right: 0.4rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--accent-dim) !important;
  border-color: rgba(13, 148, 136, 0.35) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--text) !important;
}

.woocommerce-tabs {
  grid-column: 1 / -1;
}

.woocommerce table.shop_table {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--line) !important;
  background: transparent !important;
}

/* ===== Cart page layout ===== */
.cart-checkout-wrap {
  max-width: none;
}

.cart-checkout-wrap .prose {
  max-width: none;
}

.woocommerce-cart .page-hero {
  padding: 1rem 0 0.35rem;
}

.woocommerce-cart .page-hero .section-kicker {
  margin-bottom: 0.15rem;
}

.woocommerce-cart .page-hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin: 0;
  line-height: 1.15;
}

.woocommerce-cart .cart-checkout-wrap {
  padding-top: 0.35rem;
  padding-bottom: 3rem;
}

.woocommerce-cart .site-main.commerce-main {
  padding-bottom: 1rem;
}

.woocommerce-cart .site-footer {
  margin-top: 1.25rem;
  padding-top: 1.75rem;
}

.woocommerce-cart.aresta-commerce {
  padding-bottom: 0;
}

.woocommerce-checkout .page-hero,
.woocommerce-account .page-hero {
  padding: 1rem 0 0.35rem;
}

.woocommerce-checkout .page-hero h1,
.woocommerce-account .page-hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin: 0;
}

.woocommerce-checkout .cart-checkout-wrap,
.woocommerce-account .cart-checkout-wrap {
  padding-top: 0.35rem;
  padding-bottom: 3rem;
}

.woocommerce-cart .cart-checkout-wrap > .woocommerce,
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 360px);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

.woocommerce-cart .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form.aresta-cart-form,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-cart .aresta-cart-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.woocommerce-cart table.shop_table.cart {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
}

.woocommerce-cart table.cart thead th {
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 700;
  background: #f3f5f8 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  vertical-align: middle;
}

.woocommerce-cart table.cart thead th.product-remove,
.woocommerce-cart table.cart thead th.product-thumbnail {
  width: 1%;
  padding-left: 0.75rem;
  padding-right: 0.35rem;
}

.woocommerce-cart table.cart thead th.product-name {
  text-align: left;
  padding-left: 0.5rem;
}

.woocommerce-cart table.cart thead th.product-price,
.woocommerce-cart table.cart thead th.product-quantity,
.woocommerce-cart table.cart thead th.product-subtotal {
  text-align: right;
  white-space: nowrap;
}

.woocommerce-cart table.cart td {
  padding: 1.1rem 1rem;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;
}

.woocommerce-cart table.cart tbody tr:last-child td {
  border-bottom: 0 !important;
}

.woocommerce-cart table.cart .product-remove {
  width: 40px;
  padding-right: 0.25rem !important;
  text-align: center;
}

.woocommerce-cart table.cart .product-remove a.remove {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 1.15rem;
  line-height: 1;
  background: #fff;
  text-decoration: none !important;
}

.woocommerce-cart table.cart .product-remove a.remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c !important;
}

.woocommerce-cart table.cart .product-thumbnail {
  width: 64px;
  padding-left: 0.35rem !important;
  padding-right: 0.5rem !important;
}

.woocommerce-cart table.cart .product-thumbnail img,
.woocommerce-cart table.cart .product-thumbnail a img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 0 !important;
}

.woocommerce-cart table.cart .product-name {
  text-align: left;
  padding-left: 0.5rem !important;
}

.woocommerce-cart table.cart .product-name a {
  font-weight: 650;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-quantity,
.woocommerce-cart table.cart .product-subtotal {
  text-align: right;
  white-space: nowrap;
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  font-weight: 700;
  width: 100px;
}

.woocommerce-cart table.cart .product-quantity {
  width: 120px;
}

.woocommerce-cart table.cart .quantity {
  display: inline-flex !important;
  float: none !important;
  margin: 0 0 0 auto !important;
  justify-content: flex-end;
}

.woocommerce-cart table.cart .quantity .qty {
  width: 64px !important;
  min-width: 64px;
  max-width: 64px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 0.3rem !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

/* Coupon + update row under table */
.woocommerce-cart .aresta-cart-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0;
}

.woocommerce-cart .aresta-cart-actions .coupon {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  float: none !important;
  margin: 0 !important;
  width: auto !important;
}

.woocommerce-cart .aresta-cart-actions .coupon .input-text {
  width: 200px !important;
  min-width: 160px;
  height: 42px !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 0 0.9rem !important;
  color: var(--text) !important;
}

.woocommerce-cart .aresta-cart-actions .button,
.woocommerce-cart .aresta-cart-actions .coupon .button {
  float: none !important;
  margin: 0 !important;
  height: 42px;
  padding: 0 1.1rem !important;
  white-space: nowrap;
}

.woocommerce-cart .aresta-cart-actions .update-cart-btn {
  background: #fff !important;
  color: #12161c !important;
  border: 1px solid #cfd6e0 !important;
  box-shadow: none !important;
}

.woocommerce-cart .aresta-cart-actions .update-cart-btn:hover {
  background: var(--bg-soft) !important;
  color: #12161c !important;
}

.woocommerce-cart .aresta-cart-actions .coupon .button {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Totals card */
.woocommerce-cart .cart-collaterals {
  position: static;
}

.woocommerce-cart .cart_totals {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 1.2rem 1.25rem 1.3rem !important;
  box-shadow: var(--shadow-sm);
}

.woocommerce-cart .cart_totals > h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
  letter-spacing: -0.02em;
}

.woocommerce-cart .cart_totals table.shop_table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 0 1rem !important;
  background: transparent !important;
  width: 100% !important;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 0.75rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  vertical-align: top;
  background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  width: 38%;
}

.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right;
  font-weight: 650;
}

.woocommerce-cart .cart_totals ul#shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  text-align: left;
}

.woocommerce-cart .cart_totals ul#shipping_method li {
  margin: 0;
  padding: 0;
  text-align: left;
}

.woocommerce-cart .cart_totals ul#shipping_method label {
  font-weight: 550;
  color: var(--text);
}

.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
  text-align: left;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.woocommerce-cart .cart_totals .shipping-calculator-button {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  border-bottom: 0 !important;
  font-size: 1.08rem;
  color: var(--text);
  padding-top: 0.95rem !important;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  width: 100% !important;
  justify-content: center;
  text-align: center;
  margin: 0 !important;
  padding: 0.95rem 1rem !important;
}

.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .woocommerce-cart .page-hero,
  .woocommerce-cart .page-hero--compact {
    padding: 0.65rem 0 0.15rem !important;
  }

  .woocommerce-cart .page-hero h1 {
    font-size: 1.35rem !important;
  }

  .woocommerce-cart .cart-checkout-wrap {
    padding-top: 0.25rem !important;
    padding-bottom: 2rem !important;
  }

  .woocommerce-cart .cart-checkout-wrap > .woocommerce,
  .woocommerce-cart .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .woocommerce-cart .cart-collaterals {
    position: static !important;
  }

  .woocommerce-cart .aresta-cart-table-wrap {
    border-radius: 12px;
  }

  .woocommerce-cart table.shop_table_responsive.cart,
  .woocommerce-cart table.shop_table.cart {
    display: block !important;
    width: 100% !important;
  }

  .woocommerce-cart table.shop_table_responsive.cart thead {
    display: none !important;
  }

  .woocommerce-cart table.shop_table_responsive.cart tbody {
    display: block !important;
  }

  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item,
  .woocommerce-cart table.shop_table_responsive.cart tr.woocommerce-cart-form__cart-item {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name name"
      "thumb price qty"
      "thumb sub sub";
    column-gap: 0.75rem;
    row-gap: 0.4rem;
    padding: 0.9rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    position: relative;
    background: #fff;
  }

  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item:last-child,
  .woocommerce-cart table.shop_table_responsive.cart tr.woocommerce-cart-form__cart-item:last-child {
    border-bottom: 0 !important;
  }

  .woocommerce-cart table.shop_table_responsive.cart td {
    display: block !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    text-align: left !important;
    background: transparent !important;
  }

  .woocommerce-cart table.shop_table_responsive.cart td::before {
    display: none !important;
    content: none !important;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-remove {
    position: absolute !important;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    width: auto !important;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-remove a.remove {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-thumbnail {
    grid-area: thumb;
    align-self: start;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-thumbnail img,
  .woocommerce-cart table.shop_table_responsive.cart td.product-thumbnail a img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    border-radius: 10px;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-name {
    grid-area: name;
    padding-right: 1.75rem !important;
    font-size: 0.92rem !important;
    line-height: 1.3;
    align-self: start;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-name a {
    font-size: 0.92rem;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-price {
    grid-area: price;
    align-self: center;
    font-weight: 700;
    font-size: 0.95rem;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-quantity {
    grid-area: qty;
    align-self: center;
    justify-self: end;
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-subtotal {
    grid-area: sub;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--muted);
  }

  .woocommerce-cart table.shop_table_responsive.cart td.product-subtotal::after {
    content: none;
  }

  .woocommerce-cart table.shop_table_responsive.cart .quantity {
    display: inline-flex !important;
    margin: 0 !important;
    float: none !important;
    justify-content: flex-end;
  }

  .woocommerce-cart table.shop_table_responsive.cart .quantity .qty {
    width: 52px !important;
    min-width: 52px !important;
    height: 34px !important;
  }

  .woocommerce-cart .aresta-cart-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.65rem;
  }

  .woocommerce-cart .aresta-cart-actions .coupon {
    width: 100% !important;
    display: flex !important;
  }

  .woocommerce-cart .aresta-cart-actions .coupon .input-text {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .woocommerce-cart .aresta-cart-actions .coupon .button {
    flex: 0 0 auto;
  }

  .woocommerce-cart .aresta-cart-actions .update-cart-btn {
    width: 100% !important;
    background: #fff !important;
    color: #12161c !important;
    border: 1px solid #cfd6e0 !important;
    font-weight: 650 !important;
  }

  .woocommerce-cart .cart_totals {
    padding: 1rem !important;
  }

  .woocommerce-cart .cart_totals > h2 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }

  .woocommerce-cart .cart_totals table.shop_table,
  .woocommerce-cart .cart_totals table.shop_table tbody,
  .woocommerce-cart .cart_totals table.shop_table tr {
    display: block !important;
    width: 100% !important;
  }

  .woocommerce-cart .cart_totals table.shop_table th,
  .woocommerce-cart .cart_totals table.shop_table td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0.45rem 0 !important;
  }

  .woocommerce-cart .cart_totals table.shop_table tr {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
  }

  .woocommerce-cart .cart_totals table.shop_table tr:last-child {
    border-bottom: 0;
  }

  .woocommerce-cart .cart_totals table.shop_table th,
  .woocommerce-cart .cart_totals table.shop_table td {
    border: 0 !important;
  }

  .woocommerce-cart .cart_totals .cart-subtotal,
  .woocommerce-cart .cart_totals .order-total {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .woocommerce-cart .cart_totals .cart-subtotal th,
  .woocommerce-cart .cart_totals .cart-subtotal td,
  .woocommerce-cart .cart_totals .order-total th,
  .woocommerce-cart .cart_totals .order-total td {
    width: auto !important;
    padding: 0 !important;
  }

  .woocommerce-cart .cart_totals .woocommerce-shipping-totals th {
    margin-bottom: 0.35rem;
  }

  .woocommerce-cart .cart_totals ul#shipping_method {
    gap: 0.45rem;
    text-align: left !important;
  }

  .woocommerce-cart .cart_totals ul#shipping_method li {
    text-align: left !important;
  }

  .woocommerce-cart .cart_totals .woocommerce-shipping-destination {
    font-size: 0.8rem;
  }

  .woocommerce-cart .site-footer {
    margin-top: 1rem;
  }
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: #fff !important;
  border: 1px solid #c9d2de !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 0.8rem 0.95rem !important;
  width: 100%;
  min-height: 46px;
  box-shadow: none !important;
}

/* Checkout UI lives in assets/css/checkout.css */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--accent) !important;
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-top-width: 3px !important;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile bottom order bar */
.mobile-order-bar {
  display: none;
}

@media (max-width: 1100px) {
  .product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    flex: 0;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 0.75rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-primary.is-open {
    display: flex;
  }

  .nav-primary > li {
    border-bottom: 1px solid var(--line);
  }

  .nav-primary > li:last-child {
    border-bottom: 0;
  }

  .nav-primary a {
    display: block;
    padding: 0.85rem 1.15rem;
    color: var(--text);
    font-weight: 600;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-actions .header-shop-btn {
    display: none;
  }

  .header-account-btn {
    padding: 0 0.7rem;
    font-size: 0.8rem;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
  }

  .product-card-body {
    padding: 0.7rem 0.7rem 0.8rem;
    gap: 0.3rem;
  }

  .product-card-body h3 {
    font-size: 0.86rem;
    min-height: 2.3em;
  }

  .product-card-excerpt {
    display: none;
  }

  .product-card-body .price {
    font-size: 0.95rem;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .product-card-actions .btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.45rem;
  }

  .product-card-actions .btn-ghost {
    display: none;
  }

  .sku-pill {
    display: none;
  }

  .software-split,
  .why-grid,
  .feature-list,
  .contact-grid,
  .download-grid,
  .footer-grid,
  .tools-grid,
  .woocommerce div.product {
    grid-template-columns: 1fr !important;
  }

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

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

  .carousel-slide__frame {
    padding-bottom: 1.75rem;
  }

  .carousel-slide .slide-inner {
    max-width: 88%;
  }

  .carousel-slide h2 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
  }

  .carousel-slide .slide-text {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }

  .home-carousel {
    max-height: none;
  }

  .mobile-order-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .mobile-order-bar .btn {
    flex: 1;
  }

  body {
    padding-bottom: 72px;
  }

  body.woocommerce-cart,
  body.woocommerce-checkout,
  body.woocommerce-account,
  body.single-product {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1rem, var(--container));
  }

  .product-search-form {
    flex-direction: column;
  }
}
