/*
Theme Name: Polytonx
Theme URI: https://polytonx.com
Description: Polytonx — rounded loft gear for city dogs and cats. Quiet WhatsApp shop.
Author: Polytonx
Version: 1.0.0
Text Domain: pawloft
*/

:root {
  --pl-clay: #C4785A;
  --pl-clay-deep: #9A5740;
  --pl-sage: #7A8F72;
  --pl-oat: #F3EBE1;
  --pl-oat-deep: #E6D9C8;
  --pl-ink: #3A322C;
  --pl-ink-soft: #6A5E54;
  --pl-card: #FFFBF7;
  --pl-line: #E4D5C6;
  --pl-muted: #A39282;
  --pl-wa: #25D366;
  --pl-wa-dark: #1EBE5A;
  --pl-radius: 28px;
  --pl-radius-sm: 18px;
  --pl-shadow: 0 18px 40px rgba(90, 60, 40, .08);
  --pl-font-head: 'Nunito', system-ui, sans-serif;
  --pl-font-body: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--pl-font-body);
  color: var(--pl-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #F7EFE4 0%, transparent 50%),
    radial-gradient(800px 500px at 100% 0%, #EFE6D8 0%, transparent 46%),
    var(--pl-oat);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pl-clay-deep); text-decoration: none; }
a:hover { color: var(--pl-clay); }
h1, h2, h3, h4 {
  font-family: var(--pl-font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.02em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* announcement */
.pl-announce {
  background: var(--pl-ink);
  color: #F6EDE4;
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: .02em;
}
.pl-announce b { color: #E8B79A; }

/* header — pill bar floating in oat */
.pl-header { position: sticky; top: 0; z-index: 50; padding: 12px 0 8px; }
.pl-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 251, 247, .92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--pl-line);
  border-radius: 999px;
  min-height: 64px;
  padding: 8px 10px 8px 22px;
  box-shadow: 0 8px 24px rgba(90, 60, 40, .06);
}
.pl-logo {
  font-family: var(--pl-font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--pl-ink);
  display: flex; align-items: center; gap: 8px;
}
.pl-logo .pl-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pl-clay);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.pl-logo small {
  display: block; font-family: var(--pl-font-body); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--pl-muted); font-weight: 600;
}
.pl-nav ul { display: flex; gap: 2px; list-style: none; }
.pl-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--pl-ink-soft); font-weight: 600; font-size: 14px;
}
.pl-nav a:hover { background: var(--pl-oat); color: var(--pl-ink); }
.pl-nav .current-menu-item > a { background: var(--pl-oat-deep); color: var(--pl-ink); }
.pl-actions { display: flex; align-items: center; gap: 8px; }
.pl-cart-link {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pl-oat); color: var(--pl-ink);
}
.pl-cart-link svg { width: 20px; height: 20px; }
.pl-cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--pl-clay); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.pl-header-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pl-wa); color: #fff !important; font-weight: 700; font-size: 13px;
  padding: 10px 16px; border-radius: 999px;
}
.pl-header-wa:hover { background: var(--pl-wa-dark); color: #fff !important; }
.pl-header-wa svg { width: 16px; height: 16px; fill: currentColor; }
.pl-nav-toggle { display: none; }

.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pl-clay); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 0;
}
.pl-btn:hover { background: var(--pl-clay-deep); color: #fff; }
.pl-btn--ghost { background: transparent; color: var(--pl-ink); border: 1.5px solid var(--pl-ink); }
.pl-btn--ghost:hover { background: var(--pl-ink); color: #fff; }

.pl-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pl-wa); color: #fff !important; font-weight: 700;
  padding: 13px 20px; border-radius: 999px;
}
.pl-wa-btn:hover { background: var(--pl-wa-dark); color: #fff !important; }
.pl-wa-btn svg { width: 18px; height: 18px; fill: currentColor; }
.pl-wa-btn--big { padding: 15px 26px; }
.pl-wa-btn--outline { background: #fff; color: #128C4A !important; border: 2px solid var(--pl-wa); }
.pl-wa-btn--outline:hover { background: var(--pl-wa); color: #fff !important; }

.pl-wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pl-wa); color: #fff !important; font-weight: 700;
  padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35);
}
.pl-wa-float svg { width: 22px; height: 22px; fill: currentColor; }

/* hero — oval media, copy on oat */
.pl-hero { padding: 28px 0 12px; }
.pl-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 20px 8px 20px 12px;
}
.pl-hero-kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--pl-clay-deep);
  background: #fff; border-radius: 999px; padding: 6px 12px; margin-bottom: 16px;
  border: 1px solid var(--pl-line);
}
.pl-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.pl-hero h1 em { font-style: normal; color: var(--pl-clay); }
.pl-hero p { font-size: 17px; color: var(--pl-ink-soft); max-width: 34em; }
.pl-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pl-hero-media {
  position: relative;
}
.pl-hero-media img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50% 50% 42% 58% / 46% 54% 46% 54%;
  box-shadow: var(--pl-shadow);
  background: var(--pl-oat-deep);
}
.pl-hero-chip { display: none; }
.pl-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--pl-muted); font-size: 13px; font-weight: 700;
}

.pl-section { padding: 48px 0; }
.pl-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.pl-section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.pl-section-head p { margin: 4px 0 0; color: var(--pl-muted); font-size: 14px; }
.pl-section-link { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* categories as large pills */
.pl-cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pl-cat {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--pl-card); border-radius: 32px; overflow: hidden;
  border: 1px solid var(--pl-line);
  color: var(--pl-ink);
}
.pl-cat:hover { color: var(--pl-ink); transform: translateY(-2px); box-shadow: var(--pl-shadow); }
.pl-cat-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--pl-oat-deep); }
.pl-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-cat h3 { font-size: 16px; margin: 0 16px; }
.pl-cat em { font-style: normal; font-size: 12px; color: var(--pl-muted); margin: 0 16px 16px; font-weight: 600; }

/* product cards — round media */
.pl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pl-card {
  background: transparent; display: flex; flex-direction: column; gap: 10px;
}
.pl-card-media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: 50%; background: var(--pl-oat-deep);
  border: 8px solid #fff;
  box-shadow: 0 10px 28px rgba(90, 60, 40, .08);
}
.pl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pl-card-badge {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: var(--pl-clay); color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap;
}
.pl-card-badge--sale { background: var(--pl-ink); }
.pl-card-body { text-align: center; padding: 0 6px 8px; }
.pl-card-title { font-size: 14.5px; font-family: var(--pl-font-head); font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.pl-card-title a { color: var(--pl-ink); }
.pl-card-price { font-weight: 800; font-size: 16px; color: var(--pl-clay-deep); }
.pl-card-price del { color: var(--pl-muted); font-size: 12px; font-weight: 600; margin-right: 4px; }
.pl-card-price ins { text-decoration: none; }
.pl-card-wa { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--pl-wa-dark); }

.pl-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pl-value {
  background: var(--pl-card); border-radius: 24px; padding: 20px;
  border: 1px solid var(--pl-line);
}
.pl-value-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pl-oat); color: var(--pl-clay-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.pl-value-icon svg { width: 22px; height: 22px; }
.pl-value h3 { font-size: 15px; margin: 0 0 4px; }
.pl-value p { margin: 0; font-size: 13px; color: var(--pl-muted); }

.pl-wa-band {
  background: var(--pl-ink); color: #F6EDE4;
  border-radius: 40px; padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.pl-wa-band h2 { color: #fff; margin: 0 0 6px; }
.pl-wa-band p { margin: 0; opacity: .88; max-width: 32em; }

.pl-footer { margin-top: 28px; padding: 12px 0 28px; }
.pl-footer-inner {
  background: var(--pl-ink); color: #CDBFB2;
  border-radius: 36px 36px 0 0; padding: 44px 40px 20px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 28px;
}
.pl-footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.pl-footer ul { list-style: none; }
.pl-footer li { margin-bottom: 8px; }
.pl-footer a { color: #CDBFB2; font-size: 14px; }
.pl-footer a:hover { color: #fff; }
.pl-footer-brand .pl-logo { color: #fff; }
.pl-footer-brand p { font-size: 14px; margin-top: 10px; }
.pl-footer-bottom { text-align: center; padding: 16px; font-size: 12px; color: var(--pl-muted); }
.pl-footer-wa { display: inline-flex; margin-top: 12px; }

.pl-page { padding: 40px 0 64px; max-width: 800px; margin: 0 auto; }
.pl-page h1 { font-size: 36px; }

/* shop */
.pl-shop { padding: 28px 0 64px; }
.pl-shop-head { text-align: center; margin-bottom: 32px; }
.pl-shop-head h1 { font-size: clamp(28px, 4vw, 42px); }
.pl-shop-head p { color: var(--pl-muted); }

/* PDP — stacked round gallery */
.pl-single { padding: 20px 0 64px; }
.pl-breadcrumb { font-size: 13px; color: var(--pl-muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.pl-breadcrumb a { color: var(--pl-muted); }
.pl-single-top { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.pl-single-top:has(.pl-gallery-main) { grid-template-columns: .95fr 1.05fr; gap: 48px; }
.pl-gallery-main {
  border-radius: 50%; overflow: hidden; background: #fff; border: 10px solid #fff;
  box-shadow: var(--pl-shadow);
}
.pl-gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pl-gallery-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.pl-thumb {
  width: 64px; height: 64px; padding: 0; border: 3px solid transparent;
  border-radius: 50%; overflow: hidden; cursor: pointer; background: #fff;
}
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb.is-active { border-color: var(--pl-clay); }
.pl-single-badge { display: inline-block; background: var(--pl-clay); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.pl-single-title { font-size: clamp(26px, 3vw, 38px); }
.pl-single-price { font-size: 28px; font-weight: 800; color: var(--pl-clay-deep); margin-bottom: 12px; }
.pl-single-price del { color: var(--pl-muted); font-size: 18px; margin-right: 8px; }
.pl-single-short { color: var(--pl-ink-soft); }
.pl-buy-area form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pl-buy-area .quantity { display: flex; align-items: center; }
.pl-buy-area .quantity label, .pl-buy-area .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-buy-area .qty { width: 72px; padding: 12px; border: 1px solid var(--pl-line); border-radius: 999px; text-align: center; font-weight: 700; }
.pl-buy-area .single_add_to_cart_button {
  flex: 1; min-width: 160px; background: var(--pl-ink); color: #fff; font-weight: 800;
  padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
}
.pl-buy-wa-wrap { margin-top: 10px; }
.pl-buy-wa-wrap .pl-wa-btn { width: 100%; }
.pl-single-meta { list-style: none; margin: 16px 0; }
.pl-single-meta li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--pl-line); font-size: 14px; }
.pl-single-trust { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--pl-ink-soft); }
.pl-care-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.pl-care {
  background: #fff; border-radius: 20px; padding: 12px; text-align: center; font-size: 12px; font-weight: 700;
  border: 1px solid var(--pl-line);
}
.pl-single-bottom { margin-top: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.pl-panel { background: #fff; border-radius: 28px; padding: 28px; border: 1px solid var(--pl-line); }
.pl-single-sub { font-size: 20px; margin-bottom: 12px; }
.pl-prose { color: var(--pl-ink-soft); font-size: 15px; }
.pl-prose h3 { font-size: 17px; color: var(--pl-ink); margin: 18px 0 8px; }
.pl-prose ul { list-style: none; }
.pl-prose ul li { padding: 6px 0 6px 22px; position: relative; }
.pl-prose ul li::before { content: "•"; position: absolute; left: 4px; color: var(--pl-clay); font-weight: 800; }
.pl-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pl-spec-table th { text-align: left; color: var(--pl-muted); font-weight: 600; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--pl-line); width: 42%; }
.pl-spec-table td { padding: 10px 0; border-bottom: 1px solid var(--pl-line); }
.pl-wa-cta { margin-top: 36px; }
.pl-wa-cta-inner {
  background: var(--pl-sage); color: #fff; border-radius: 32px; padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pl-wa-cta-text h3 { color: #fff; margin: 0 0 6px; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--pl-ink) !important; color: #fff !important; border-radius: 999px !important;
  padding: 12px 22px !important; font-weight: 700 !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--pl-clay) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1px solid var(--pl-line); border-radius: 16px; padding: 12px 14px;
}
.woocommerce table.shop_table { border-radius: 20px; overflow: hidden; background: #fff; }
.pl-wc-page { padding: 32px 0 64px; }

@media (max-width: 1000px) {
  .pl-hero-inner, .pl-single-top, .pl-single-bottom { grid-template-columns: 1fr; }
  .pl-hero-media { max-width: 420px; margin: 0 auto; }
  .pl-cat-row, .pl-grid, .pl-values { grid-template-columns: repeat(2, 1fr); }
  .pl-footer-inner { grid-template-columns: 1fr 1fr; padding: 32px 24px 16px; }
  .pl-care-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pl-container { padding: 0 16px; }
  .pl-header-inner { border-radius: 24px; padding: 8px 10px; }
  .pl-nav { display: none; position: absolute; top: 84px; left: 16px; right: 16px; background: #fff; border-radius: 20px; padding: 12px; border: 1px solid var(--pl-line); }
  .pl-nav ul { flex-direction: column; }
  .pl-nav-toggle { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pl-oat); align-items: center; justify-content: center; }
  .pl-nav-toggle svg { width: 20px; height: 20px; }
  .pl-header-wa span { display: none; }
  .pl-grid, .pl-cat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pl-values { grid-template-columns: 1fr; }
  .pl-hero-chip { display: none; }
  .pl-footer-inner { grid-template-columns: 1fr; }
  .pl-wa-band, .pl-wa-cta-inner { padding: 24px; }
}


/* ===== Polytonx mobile optimization ===== */
@media (max-width: 767px) {
  /* nav dropdown: sit above header/hero */
  .pl-header { padding: 8px 0 4px; }
  .pl-header-inner { min-height: 54px; padding: 6px 8px 6px 14px; border-radius: 20px; }
  .pl-nav { top: 64px; left: 10px; right: 10px; z-index: 70; box-shadow: 0 16px 34px rgba(90,60,40,.16); }
  .pl-nav a { padding: 14px 12px; font-size: 15px; }
  .pl-logo { font-size: 19px; gap: 6px; }
  .pl-logo small { display: none; }
  .pl-announce { font-size: 12px; line-height: 1.35; padding: 8px 12px; }

  /* hero */
  .pl-hero { padding-top: 8px; }
  .pl-hero h1 { font-size: 28px; line-height: 1.14; }
  .pl-hero p { font-size: 15px; }
  .pl-hero-cta { gap: 10px; margin-top: 18px; }
  .pl-hero-cta .pl-btn { flex: 1; min-width: 0; }
  .pl-hero-media img { border-radius: 26px; }

  /* sections */
  .pl-section { padding: 34px 0; }
  .pl-section-head h2 { font-size: 22px; }
  .pl-section-head p { font-size: 13px; }
  .pl-grid, .pl-cat-row { gap: 12px; }
  .pl-card-title { font-size: 13px; }
  .pl-value h3 { font-size: 15px; }
  .pl-wa-band h2, .pl-wa-cta-text h3 { font-size: 21px; }
  .pl-wa-band { gap: 14px; }
  .pl-wa-band .pl-btn { width: 100%; }

  /* footer */
  .pl-footer-inner { gap: 26px; }
  .pl-footer h4 { margin-top: 4px; }
  .pl-footer li { margin-bottom: 9px; font-size: 13px; word-break: break-word; }
  .pl-footer p { font-size: 13px; }

  /* pages */
  .pl-page { padding-top: 22px; }
  .pl-page h1 { font-size: 25px; }
  .pl-page h2 { font-size: 19px; }
  .pl-page h3 { font-size: 16px; }
  .pl-page li, .pl-page p { font-size: 15px; }

  /* single product */
  .pl-single-top:has(.pl-gallery-main) { grid-template-columns: 1fr; gap: 18px; }
  .pl-single-top { gap: 18px; }
  .pl-gallery-main { border-radius: 26px; border-width: 6px; }
  .pl-gallery-main img { border-radius: 20px; }
  .pl-single-title { font-size: 24px; }
  .pl-single-price { font-size: 26px; }
  .pl-buy-area .single_add_to_cart_button { min-height: 52px; }

  /* woocommerce */
  .pl-wc-page { padding: 20px 0 44px; }
  .woocommerce table.shop_table { display: block; overflow-x: auto; white-space: nowrap; }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100% !important; float: none !important; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100% !important; float: none !important; }
  .woocommerce-cart .cart-collaterals { width: 100% !important; }
  .pl-wa-float { right: 14px; bottom: 14px; padding: 12px 14px; }
}
@media (max-width: 400px) {
  .pl-hero h1 { font-size: 24px; }
  .pl-hero-cta { flex-direction: column; }
  .pl-hero-cta .pl-btn { width: 100%; }
  .pl-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pl-cat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pl-card-body { padding: 10px; }
  .pl-card-price { font-size: 15px; }
  .pl-wa-btn--big { width: 100%; text-align: center; }
}

