/* Powertech shop — dynamic UI helpers (minimal; brand colors preserved) */

.pt-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #666;
  font-weight: 600;
  grid-column: 1 / -1;
}

.pt-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2.5rem 1rem;
  color: #00512e;
  font-weight: 600;
  grid-column: 1 / -1;
}

.pt-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(0, 81, 46, 0.2);
  border-top-color: #00512e;
  border-radius: 50%;
  animation: pt-spin 0.7s linear infinite;
}

@keyframes pt-spin {
  to { transform: rotate(360deg); }
}

.pt-account-shell {
  padding: 2rem 0 3.5rem;
  background: linear-gradient(180deg, #f4f7f5 0%, #fff 40%);
  min-height: 55vh;
}

.pt-account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pt-account-nav {
  background: #fff;
  border: 1px solid rgba(0, 81, 46, 0.12);
  border-radius: 14px;
  padding: 1rem 0.75rem;
  position: sticky;
  top: 6.5rem;
}

.pt-account-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.pt-account-nav a:hover,
.pt-account-nav a.is-active {
  background: #e8f5ef;
  color: #00512e;
}

.pt-account-nav .pt-account-logout {
  color: #8b1e1e;
  margin-top: 0.5rem;
}

.pt-account-panel {
  background: #fff;
  border: 1px solid rgba(0, 81, 46, 0.12);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
}

.pt-account-panel h1 {
  font-family: var(--display, "Libre Baskerville", Georgia, "Times New Roman", serif);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.pt-account-panel .lead {
  color: #666;
  margin: 0 0 1.25rem;
}

.pt-account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pt-account-table th,
.pt-account-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.pt-account-table th {
  color: #666;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pt-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f5ef;
  color: #00512e;
}

.pt-status.is-pending { background: #fff4e5; color: #9a5b00; }
.pt-status.is-cancelled { background: #fdeaea; color: #8b1e1e; }

.pt-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.pt-addr-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.pt-addr-card {
  border: 1px solid rgba(0, 81, 46, 0.14);
  border-radius: 12px;
  padding: 1rem;
}

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

.pt-addr-card p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

.pt-addr-card .pt-addr-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.pt-account-modern { padding:0; overflow:hidden; box-shadow:0 12px 34px rgba(18,45,32,.07); }
.pt-account-content-head { display:flex; align-items:center; gap:.9rem; padding:1.35rem 1.5rem; border-bottom:1px solid rgba(0,81,46,.1); background:linear-gradient(135deg,#eef8f3 0%,#fff 75%); }
.pt-account-content-head .lead { margin-bottom:0; font-size:.9rem; }
.pt-account-head-icon { display:grid; place-items:center; width:48px; height:48px; flex:0 0 auto; border-radius:14px; color:#fff; background:var(--primary-grad); box-shadow:0 8px 18px rgba(0,81,46,.18); font-size:1.2rem; }
.pt-profile-form { padding:1.25rem 1.5rem 1.5rem; }
.pt-account-form-section,.pt-address-list-section { padding:1rem; border:1px solid #e2e9e5; border-radius:14px; background:#fbfdfc; }
.pt-account-form-section + .pt-account-form-section { margin-top:1rem; }
.pt-form-section-head { display:flex; align-items:center; gap:.65rem; margin-bottom:.9rem; }
.pt-form-section-head > i { display:grid; place-items:center; width:34px; height:34px; flex:0 0 auto; border-radius:10px; color:var(--primary); background:var(--primary-soft); }
.pt-form-section-head h2 { margin:0; font-size:.98rem; }
.pt-form-section-head p { margin:.15rem 0 0; color:var(--muted); font-size:.74rem; }
.pt-account-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.pt-account-form-grid .full { grid-column:1/-1; }
.pt-field-block label { display:block; margin-bottom:.35rem; color:#36443d; font-size:.76rem; font-weight:750; }
.pt-field-block input { width:100%; min-height:44px; padding:.65rem .75rem; border:1px solid #d7e0db; border-radius:10px; color:var(--ink); background:#fff; outline:none; transition:border-color .2s,box-shadow .2s; }
.pt-field-block input:hover { border-color:#b9c9c0; }
.pt-field-block input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,81,46,.1); }
.pt-account-savebar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:1rem; padding:.8rem .9rem; border:1px solid #d5e9df; border-radius:12px; background:#f3faf6; }
.pt-account-savebar span { color:var(--muted); font-size:.76rem; }
.pt-address-page-grid { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); gap:1rem; padding:1.25rem 1.5rem 1.5rem; align-items:start; }
.pt-address-form-section { position:sticky; top:6.5rem; }
.pt-address-defaults { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin-top:.85rem; }
.pt-address-defaults .pt-check { display:flex; align-items:flex-start; gap:.55rem; padding:.7rem; border:1px solid #dfe7e3; border-radius:10px; background:#fff; }
.pt-address-defaults strong,.pt-address-defaults small { display:block; }
.pt-address-defaults strong { color:var(--ink); font-size:.78rem; }
.pt-address-defaults small { margin-top:.1rem; color:var(--muted); font-size:.68rem; }
.pt-address-form .pt-form-actions { display:flex; gap:.55rem; margin-top:.85rem; }
.pt-addr-card { position:relative; padding:1rem 1rem .9rem; background:#fff; box-shadow:0 5px 15px rgba(18,45,32,.05); }
.pt-addr-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:.6rem; }
.pt-addr-badges { display:flex; flex-wrap:wrap; gap:.3rem; justify-content:flex-end; }
.pt-addr-badge { padding:.2rem .4rem; border-radius:999px; color:var(--primary); background:var(--primary-soft); font-size:.62rem; font-weight:750; }
.pt-addr-line { display:flex; gap:.45rem; margin-top:.45rem !important; }
.pt-addr-line i { color:var(--primary); flex:0 0 auto; }

.pt-terms-body {
  max-width: 72ch;
  line-height: 1.65;
  color: #333;
}

.pt-terms-body h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  color: #00512e;
}

.pt-pagination-wrap {
  margin: 2rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.pt-pagination {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1px solid rgba(0, 81, 46, 0.12);
  box-shadow: 0 8px 24px rgba(0, 81, 46, 0.06);
}

.pt-pagination-pages {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 0.15rem;
}

.pt-pagination-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(0, 81, 46, 0.14);
  background: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #00512e;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.pt-pagination-btn:hover:not(:disabled):not(.is-active) {
  background: #e8f5ef;
  border-color: rgba(0, 81, 46, 0.28);
}

.pt-pagination-btn.is-active {
  background: linear-gradient(135deg, #007044 0%, #00512e 52%, #003d23 100%);
  color: #fff;
  border-color: #00512e;
  box-shadow: 0 4px 12px rgba(0, 81, 46, 0.22);
}

.pt-pagination-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pt-pagination-edge {
  min-width: 2.5rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.pt-pagination-nav {
  min-width: 2.5rem;
  font-size: 1.1rem;
  line-height: 1;
}

.pt-pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 2.35rem;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.12em;
  user-select: none;
}

.pt-pagination-summary {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .pt-pagination {
    width: 100%;
    justify-content: center;
  }
  .pt-pagination-btn {
    min-width: 2.1rem;
    height: 2.1rem;
    font-size: 0.78rem;
  }
}

.pt-img-placeholder,
.pt-product-media img,
.pt-cat-card img,
.pt-product-media {
  background: #ffffff !important;
  object-fit: contain;
}

.pt-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.pt-product-media img.pt-is-placeholder,
img.pt-is-placeholder,
.pt-cat-card img.pt-is-placeholder {
  object-fit: contain !important;
  padding: 16%;
  background: #ffffff !important;
}

.pt-cat-card:has(img.pt-is-placeholder) {
  background: #ffffff;
}

.pt-price-request {
  color: #00512e;
  font-weight: 700;
  font-size: 0.95em;
}

.pt-product-actions .pt-quote-primary,
.pt-buy-actions .pt-quote-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00512e;
  color: #fff !important;
  border: none;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  width: 100%;
}

.pt-product-actions .pt-quote-primary:hover,
.pt-buy-actions .pt-quote-primary:hover {
  background: #003d23;
  color: #fff !important;
}

/* —— Cart canvas drawer —— */
body.pt-cart-canvas-lock {
  overflow: hidden;
}

.pt-cart-canvas {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  visibility: hidden;
}

.pt-cart-canvas.is-open {
  pointer-events: auto;
  visibility: visible;
}

.pt-cart-canvas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 14, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pt-cart-canvas.is-open .pt-cart-canvas-backdrop {
  opacity: 1;
}

.pt-cart-canvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 40, 24, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pt-cart-canvas.is-open .pt-cart-canvas-panel {
  transform: none;
}

[dir="rtl"] .pt-cart-canvas-panel {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 12px 0 40px rgba(0, 40, 24, 0.18);
}

[dir="rtl"] .pt-cart-canvas.is-open .pt-cart-canvas-panel {
  transform: none;
}

.pt-cart-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 81, 46, 0.12);
  background: linear-gradient(180deg, #f4faf6 0%, #fff 100%);
}

.pt-cart-canvas-head strong {
  display: block;
  font-family: var(--display, "Libre Baskerville", Georgia, "Times New Roman", serif);
  font-size: 1.15rem;
  color: #00512e;
  letter-spacing: -0.02em;
}

.pt-cart-canvas-head small {
  color: #666;
  font-weight: 600;
}

.pt-cart-canvas-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 81, 46, 0.15);
  border-radius: 10px;
  background: #fff;
  color: #00512e;
  display: grid;
  place-items: center;
}

.pt-cart-canvas-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.15rem;
}

.pt-cart-canvas-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.pt-cart-canvas-empty i {
  font-size: 2rem;
  color: #00512e;
  opacity: 0.45;
}

.pt-cart-canvas-empty p {
  font-weight: 700;
  margin: 0.75rem 0 1rem;
}

.pt-cart-canvas-empty a {
  color: #00512e;
  font-weight: 700;
}

.pt-cart-canvas-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eee;
  align-items: start;
}

.pt-cart-canvas-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 81, 46, 0.1);
  background: #fff;
}

.pt-cart-canvas-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pt-cart-canvas-info strong {
  display: block;
  font-size: 0.9rem;
  color: #141218;
  text-decoration: none;
  line-height: 1.35;
}

.pt-cart-canvas-info a {
  text-decoration: none;
}

.pt-cart-canvas-price {
  display: block;
  margin-top: 0.2rem;
  color: #00512e;
  font-weight: 700;
  font-size: 0.85rem;
}

.pt-cart-canvas-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.pt-cart-canvas-qty button {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(0, 81, 46, 0.2);
  border-radius: 8px;
  background: #fff;
  color: #00512e;
  font-weight: 700;
  line-height: 1;
}

.pt-cart-canvas-qty span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
}

.pt-cart-canvas-remove {
  width: auto !important;
  border: none !important;
  background: transparent !important;
  color: #8b1e1e !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 0.25rem;
  margin-inline-start: 0.25rem;
}

.pt-cart-canvas-line {
  font-weight: 800;
  color: #141218;
  font-size: 0.9rem;
  white-space: nowrap;
}

.pt-cart-canvas-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(0, 81, 46, 0.12);
  background: #f7faf8;
}

.pt-cart-canvas-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.pt-cart-canvas-sub strong {
  color: #00512e;
  font-size: 1.15rem;
}

.pt-cart-canvas-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.55rem;
}

.pt-cart-canvas-link,
.pt-cart-canvas-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.pt-cart-canvas-link {
  border: 1.5px solid #00512e;
  color: #00512e;
  background: #fff;
}

.pt-cart-canvas-checkout {
  background: #00512e;
  color: #fff;
}

.pt-cart-canvas-checkout:hover {
  background: #003d23;
  color: #fff;
}

/* —— Responsive polish —— */
@media (max-width: 991.98px) {
  .pt-account-layout {
    grid-template-columns: 1fr;
  }

  .pt-account-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .pt-account-nav a {
    flex: 1 1 auto;
  }
  .pt-address-page-grid { grid-template-columns:1fr; }
  .pt-address-form-section { position:static; }
}

@media (max-width: 767.98px) {
  .pt-listing-grid {
    grid-template-columns: 1fr !important;
  }

  /* Home featured / popular — 2 products per row */
  .pt-product-grid,
  #pt-featured-grid,
  #pt-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
  }

  .pt-logo img {
    max-height: 36px;
    width: auto;
  }

  .pt-logo-meta strong {
    font-size: 0.85rem;
  }

  .pt-logo-meta small {
    display: none;
  }

  .pt-cart-canvas-panel {
    width: 100%;
  }

  .pt-account-table-wrap,
  .pt-account-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pt-account-table {
    min-width: 560px;
  }

  .pt-cart-canvas-item {
    grid-template-columns: 64px 1fr;
  }

  .pt-cart-canvas-line {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 575.98px) {
  .pt-account-content-head,.pt-profile-form,.pt-address-page-grid { padding:1rem; }
  .pt-account-content-head { align-items:flex-start; }
  .pt-account-form-grid,.pt-address-defaults { grid-template-columns:1fr; }
  .pt-account-form-grid .full { grid-column:auto; }
  .pt-account-savebar { align-items:stretch; flex-direction:column; }
  .pt-account-savebar .pt-add { width:100%; }
  .pt-header-main {
    gap: 0.35rem;
  }

  .pt-header-actions {
    gap: 0;
  }

  .pt-logo img {
    max-height: 30px;
  }

  .pt-icon-btn .lbl {
    display: none;
  }

  .pt-icon-btn[data-open-menu] {
    padding: 0.35rem 0.4rem;
  }

  .pt-icon-btn[data-open-menu] i {
    font-size: 2rem;
  }
}

/* ===== Home — Shop by category (modern bento, max 4) ===== */
.pt-cats {
  position: relative;
  overflow: hidden;
}

.pt-cats::before {
  content: "";
  position: absolute;
  inset: auto -8% -30% auto;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 81, 46, 0.08), transparent 68%);
  pointer-events: none;
}

.pt-cats-head {
  align-items: flex-end;
  gap: 1.25rem;
}

.pt-cats-head .pt-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-mid, #3d9b6a);
}

.pt-cats-lead {
  margin: 0.45rem 0 0;
  max-width: 42ch;
  color: var(--muted, #666);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pt-cats-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 0.9rem;
  min-height: clamp(460px, 58vh, 620px);
  position: relative;
  z-index: 1;
}

.pt-cats-bento > .pt-loading,
.pt-cats-bento > .pt-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  align-self: center;
}

.pt-cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #0f2a1c;
  color: #fff;
  isolation: isolate;
  text-decoration: none;
  min-height: 200px;
  box-shadow: 0 14px 36px rgba(16, 40, 28, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pt-cat-tile-1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.pt-cat-tile-2 {
  grid-column: 2 / 4;
  grid-row: 1;
}

.pt-cat-tile-3 {
  grid-column: 2;
  grid-row: 2;
}

.pt-cat-tile-4 {
  grid-column: 3;
  grid-row: 2;
}

.pt-cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pt-cat-tile.is-placeholder {
  background: linear-gradient(145deg, #13452c 0%, #0a2418 100%);
}

.pt-cat-tile.is-placeholder img {
  object-fit: contain;
  padding: 18%;
  opacity: 0.55;
  filter: brightness(1.15);
}

.pt-cat-tile-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 24, 14, 0.08) 0%, rgba(0, 24, 14, 0.15) 42%, rgba(0, 20, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 81, 46, 0.18), transparent 55%);
  z-index: 1;
  transition: opacity 0.35s ease;
}

.pt-cat-tile-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1.2rem;
}

.pt-cat-tile-index {
  font-family: var(--display, "Libre Baskerville", Georgia, "Times New Roman", serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.7;
  padding-bottom: 0.2rem;
}

.pt-cat-tile-copy h3 {
  margin: 0;
  font-family: var(--display, "Libre Baskerville", Georgia, "Times New Roman", serif);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.pt-cat-tile-copy span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.pt-cat-tile-go {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.pt-cat-tile:hover,
.pt-cat-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(16, 40, 28, 0.18);
  outline: none;
}

.pt-cat-tile:hover img,
.pt-cat-tile:focus-visible img {
  transform: scale(1.08);
}

.pt-cat-tile:hover .pt-cat-tile-go,
.pt-cat-tile:focus-visible .pt-cat-tile-go {
  background: #fff;
  color: #00512e;
  transform: translate(2px, -2px);
}

.pt-cat-tile-1 .pt-cat-tile-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

@media (max-width: 991.98px) {
  .pt-cats-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .pt-cat-tile-1,
  .pt-cat-tile-2,
  .pt-cat-tile-3,
  .pt-cat-tile-4 {
    grid-column: auto;
    grid-row: auto;
  }

  .pt-cat-tile-1 {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .pt-cat-tile {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .pt-cat-tile-1 {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
  .pt-cats-bento {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pt-cat-tile,
  .pt-cat-tile-1 {
    grid-column: auto;
    aspect-ratio: 5 / 3.2;
    min-height: 180px;
    border-radius: 18px;
  }

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

/* ===== CMS inner pages ===== */
.pt-cms-hero.has-image {
  background-image:
    linear-gradient(120deg, rgba(0, 55, 32, 0.92), rgba(0, 81, 46, 0.78)),
    var(--cms-hero-image);
  background-size: cover;
  background-position: center;
}

.pt-cms-content {
  padding: clamp(2rem, 4vw, 3.25rem) 0 4rem;
  background: linear-gradient(180deg, #f6f8f6 0%, #fff 28%);
  min-height: 40vh;
}

.pt-cms-article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 81, 46, 0.08);
  border-radius: 14px;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  box-shadow: 0 10px 30px rgba(16, 40, 28, 0.05);
}

.pt-cms-rich {
  color: #24332b;
  font-size: 1.02rem;
  line-height: 1.75;
}

.pt-cms-rich > *:first-child { margin-top: 0; }
.pt-cms-rich > *:last-child { margin-bottom: 0; }

.pt-cms-rich h2,
.pt-cms-rich h3,
.pt-cms-rich h4 {
  font-family: var(--display, "Libre Baskerville", Georgia, "Times New Roman", serif);
  color: #00512e;
  letter-spacing: -0.02em;
  margin: 1.6rem 0 0.65rem;
  line-height: 1.25;
}

.pt-cms-rich h2 { font-size: 1.45rem; }
.pt-cms-rich h3 { font-size: 1.2rem; }

.pt-cms-rich p { margin: 0 0 1rem; }

.pt-cms-rich ul,
.pt-cms-rich ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
}

.pt-cms-rich li { margin-bottom: 0.35rem; }

.pt-cms-rich a {
  color: #00512e;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pt-cms-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.75rem 0;
}

.pt-cms-rich blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid #00512e;
  background: #f4f8f5;
  color: #355043;
}

/* ===== Phase 5 — SEO footer directory (before site footer) ===== */
.pt-seo-footer {
  width: 100%;
  background: linear-gradient(180deg, #f4f7f5 0%, #eef3f0 100%);
  border-top: 1px solid rgba(0, 81, 46, 0.08);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  color: #24332b;
}

.pt-seo-footer-inner {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.pt-seo-footer-wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.pt-seo-block-prose {
  margin-bottom: 2rem;
  max-width: 92ch;
}

.pt-seo-block-prose h2 {
  font-family: var(--display, "Libre Baskerville", Georgia, "Times New Roman", serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #00512e;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.pt-seo-block-prose p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #3a4a42;
}

.pt-seo-block-prose p:last-child {
  margin-bottom: 0;
}

.pt-seo-group {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(0, 81, 46, 0.1);
}

.pt-seo-group h3 {
  font-family: var(--display, "Libre Baskerville", Georgia, "Times New Roman", serif);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f2a1c;
  margin: 0 0 0.85rem;
}

.pt-seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pt-seo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 81, 46, 0.18);
  background: #fff;
  color: #1a2e24;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 40, 28, 0.04);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pt-seo-chip:hover,
.pt-seo-chip:focus-visible {
  background: #00512e;
  border-color: #00512e;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.pt-seo-chip-search {
  border-style: dashed;
}

.pt-seo-empty {
  margin: 0;
  font-size: 0.85rem;
  color: #6a7a72;
}

@media (max-width: 575.98px) {
  .pt-seo-chip {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ===== All Categories page (circular grid — docs/category-page.png) ===== */
.pt-categories-page {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  background: #fff;
}

.pt-cat-circle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 2.5vw, 2.25rem);
  justify-items: center;
  align-items: start;
}

.pt-cat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 240px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.3s ease;
}

.pt-cat-circle:hover,
.pt-cat-circle:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.pt-cat-circle-media {
  width: min(100%, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #e6e6e6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pt-cat-circle:hover .pt-cat-circle-media,
.pt-cat-circle:focus-visible .pt-cat-circle-media {
  border-color: rgba(0, 81, 46, 0.35);
  box-shadow: 0 10px 28px rgba(16, 40, 28, 0.1);
}

.pt-cat-circle-media img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.pt-cat-circle:hover .pt-cat-circle-media img {
  transform: scale(1.06);
}

.pt-cat-circle.is-placeholder .pt-cat-circle-media {
  background: #f7f8f7;
}

.pt-cat-circle.is-placeholder .pt-cat-circle-media img {
  width: 48%;
  height: 48%;
  opacity: 0.7;
}

.pt-cat-circle-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.35rem;
}

.pt-cat-circle-label strong {
  font-family: var(--font, "Libre Baskerville", Georgia, "Times New Roman", serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 750;
  color: #1a1a1a;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pt-cat-circle-label small {
  font-size: 0.82rem;
  font-weight: 600;
  color: #777;
}

.pt-cat-circle-grid > .pt-loading,
.pt-cat-circle-grid > .pt-empty {
  grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
  .pt-cat-circle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pt-cat-circle {
    max-width: 200px;
  }

  .pt-cat-circle-media {
    width: min(100%, 180px);
  }
}

@media (max-width: 767.98px) {
  .pt-cat-circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }

  .pt-cat-circle {
    max-width: 180px;
  }

  .pt-cat-circle-media {
    width: min(100%, 160px);
  }

  .pt-cat-circle-label strong {
    font-size: 1rem;
  }
}

@media (max-width: 479.98px) {
  .pt-cat-circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-cat-circle-media {
    width: min(100%, 140px);
  }
}

/* Sales AI Agent chat */
.pt-chat-body {
  display: flex;
  flex-direction: column;
  max-height: min(52vh, 420px);
  overflow: hidden;
}

.pt-chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 0.15rem;
}

.pt-bubble.is-user {
  align-self: flex-end;
  background: #e8f5ee;
  border-radius: 14px 14px 4px 14px;
  color: #123;
}

.pt-bubble.has-product {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pt-chat-foot-inner {
  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
}

.pt-chat-suggest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 2;
}

.pt-chat-suggest-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 0.65rem 0.85rem;
  text-align: left;
  cursor: pointer;
}

.pt-chat-suggest-item:last-child {
  border-bottom: 0;
}

.pt-chat-suggest-item strong {
  font-size: 0.78rem;
  color: #00512e;
  letter-spacing: 0.02em;
}

.pt-chat-suggest-item span {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.35;
}

.pt-chat-suggest-item:hover {
  background: #f4fbf7;
}

.pt-chat-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.pt-chat-product-media img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
}

.pt-chat-product-ref {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00512e;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pt-chat-product-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0.15rem 0;
  text-decoration: none;
}

.pt-chat-product-name:hover {
  color: #00512e;
}

.pt-chat-product-brand {
  display: block;
  font-size: 0.72rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.pt-chat-product-desc {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  color: #666;
  line-height: 1.4;
}

.pt-chat-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.pt-chat-product-price {
  font-size: 0.88rem;
  color: #111;
}

.pt-chat-price-request {
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
}

.pt-chat-stock {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pt-chat-stock.is-instock {
  background: #dcfce7;
  color: #166534;
}

.pt-chat-stock.is-quote {
  background: #fef3c7;
  color: #92400e;
}

.pt-chat-stock.is-out {
  background: #fee2e2;
  color: #991b1b;
}

.pt-chat-stock.is-preorder,
.pt-chat-stock.is-unknown {
  background: #e5e7eb;
  color: #374151;
}

.pt-chat-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pt-chat-act {
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #222;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.pt-chat-act.primary {
  background: #00512e;
  border-color: #00512e;
  color: #fff;
}

.pt-chat-act.accent {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.pt-chat-act:hover {
  filter: brightness(0.97);
}

.pt-chat-typing {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  min-height: 1rem;
}

.pt-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: pt-chat-dot 1s infinite ease-in-out;
}

.pt-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.pt-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pt-chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

