/* PolyPack — products.html mockup */
@import url("fonts.css");

:root {
  --bg: #0f1419;
  --bg-elev: #171e26;
  --surface: #1c2530;
  --text: #e8eef4;
  --muted: #9aa8b5;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #3d9b8f;
  --accent-2: #c4a35a;
  --radius: 14px;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --font: "Vazirmatn", "Tahoma", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

body,
button,
input,
select,
textarea,
.woocommerce,
.woocommerce-page {
  font-family: var(--font);
}

.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(61, 155, 143, 0.18), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(196, 163, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #121820, var(--bg));
}

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

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip:focus {
  inset-inline-start: 1rem;
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

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

.header-inner,
.polypack-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand,
.polypack-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-end: auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #2a6f68);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-en {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav,
.polypack-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav a[aria-current="page"],
.nav a:hover,
.polypack-nav a[aria-current="page"],
.polypack-nav a:hover {
  color: var(--accent);
}

.header-cta,
.polypack-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2f7f75);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.page-hero {
  padding: 3rem 0 1.25rem;
}

.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--accent-2);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 1.75rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  transition: 0.15s ease;
}

.chip:hover {
  border-color: rgba(61, 155, 143, 0.45);
}

.chip.is-active {
  background: rgba(61, 155, 143, 0.2);
  border-color: rgba(61, 155, 143, 0.55);
  color: #dff7f3;
}

/* Catalog grid — products.html */
.catalog-loop {
  padding-bottom: 2rem;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin: 0 0 3rem;
}

.catalog-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.catalog-item:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 155, 143, 0.35);
}

.catalog-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-inline-end: 1px solid var(--line);
  color: rgba(61, 155, 143, 0.85);
}

.catalog-media svg {
  width: 52px;
  height: 52px;
}

.catalog-body {
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.catalog-body .tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(61, 155, 143, 0.14);
  color: #b8ebe4;
  border: 1px solid rgba(61, 155, 143, 0.25);
}

.catalog-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.catalog-body h3 a:hover {
  color: var(--accent);
}

.catalog-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.catalog-body .meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.catalog-body .meta strong {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.catalog-body .meta a {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-body .meta a:hover {
  color: #dff7f3;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 2.5rem 0 1.5rem;
  color: var(--muted);
}

.footer-grid,
.polypack-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h4,
.polypack-footer-grid h4 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-col a,
.polypack-footer-grid a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.footer-col a:hover,
.polypack-footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom,
.polypack-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* Pages / single product */
.page-content h1,
.woocommerce div.product .product_title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.entry-content,
.page .entry-content,
.woocommerce div.product {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: flex;
  }

  .header-cta,
  .polypack-cta {
    display: none;
  }

  .nav,
  .polypack-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 72px;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 20, 25, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }

  .nav.is-open,
  .polypack-nav.is-open {
    display: flex;
  }

  .nav a,
  .polypack-nav a {
    padding: 0.75rem 1.25rem;
  }

  .site-header {
    position: sticky;
  }

  .header-inner,
  .polypack-header {
    position: relative;
    flex-wrap: wrap;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .polypack-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .catalog-item {
    grid-template-columns: 72px 1fr;
  }

  .catalog-media svg {
    width: 42px;
    height: 42px;
  }
}
