/* PF001 storefront (copied from ozsmk) — light, high-contrast, promo badges */
body.template-pf001 {
  --oz-bg: #ffffff;
  --oz-text: #111827;
  --oz-muted: #6b7280;
  --oz-line: #e5e7eb;
  --oz-soft: #f9fafb;
  --oz-accent: #15803d;
  --oz-sale: #dc2626;
  --oz-announce: #ecfdf5;
  color: var(--oz-text);
  background: var(--oz-bg);
}

body.template-pf001 a {
  color: inherit;
}

body.template-pf001 .header-stack {
  background: #fff;
  border-bottom: 1px solid var(--oz-line);
  backdrop-filter: none;
}

body.template-pf001 .header-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: unset;
}

@media (min-width: 761px) {
  .ozsmk-mobile-cats {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .ozsmk-dropdown-desktop {
    display: none !important;
  }

  .ozsmk-mobile-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .ozsmk-mobile-cats a {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
  }

  body.template-pf001 .main-nav {
    top: 168px;
    max-height: calc(100vh - 168px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Top promo bar */
.ozsmk-announcement {
  background: var(--oz-announce);
  border-bottom: 1px solid #d1fae5;
  font-size: 13px;
  color: #065f46;
  text-align: center;
  padding: 8px 12px;
}

.ozsmk-announcement-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* Header layout */
body.template-pf001 .ozsmk-site-header .header-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: unset;
  padding-top: 12px;
  padding-bottom: 0;
}

.ozsmk-header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 20px;
  padding-bottom: 12px;
}

body.template-pf001 .ozsmk-search-form {
  display: flex;
  align-items: stretch;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--oz-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

body.template-pf001 .ozsmk-search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  min-width: 0;
}

body.template-pf001 .ozsmk-search-form input:focus {
  outline: none;
}

body.template-pf001 .ozsmk-search-submit {
  border-radius: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: var(--oz-text);
  color: #fff;
  cursor: pointer;
}

body.template-pf001 .ozsmk-search-submit:hover {
  opacity: 0.92;
}

body.template-pf001 .header-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
}

body.template-pf001 .header-right a,
body.template-pf001 .cart-link,
body.template-pf001 .account-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--oz-text);
}

body.template-pf001 .brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

/* Main nav row */
.ozsmk-nav-row {
  border-top: 1px solid var(--oz-line);
  padding: 0;
  background: var(--oz-soft);
  overflow: visible;
}

@media (min-width: 761px) {
  body.template-pf001 .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 10px 0;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
  }

  body.template-pf001 .main-nav > a {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--oz-text);
  }

  body.template-pf001 .main-nav > a:hover {
    background: #fff;
  }
}

/* Category dropdown */
.ozsmk-dropdown-wrap {
  position: relative;
}

.ozsmk-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  color: var(--oz-text);
}

.ozsmk-dropdown-trigger::after {
  content: "\25be";
  font-size: 10px;
  opacity: 0.7;
}

.ozsmk-dropdown-wrap:hover .ozsmk-dropdown-trigger,
.ozsmk-dropdown-wrap:focus-within .ozsmk-dropdown-trigger {
  background: #fff;
}

.ozsmk-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 80;
  min-width: 280px;
  max-width: min(560px, 92vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 12px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--oz-line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px;
}

.ozsmk-dropdown-wrap:hover .ozsmk-dropdown-panel,
.ozsmk-dropdown-wrap:focus-within .ozsmk-dropdown-panel {
  display: grid;
}

.ozsmk-dropdown-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--oz-text);
  text-decoration: none;
}

.ozsmk-dropdown-panel a:hover {
  background: var(--oz-soft);
  color: var(--oz-accent);
}

body.template-pf001 .main-nav-categories {
  width: 100%;
  border-top: 1px dashed var(--oz-line);
  margin-top: 8px;
  padding-top: 10px;
}

body.template-pf001 .main-nav-categories-label {
  display: none;
}

body.template-pf001 .main-nav-categories-inner {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

body.template-pf001 .main-nav-categories-inner .category-pill {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--oz-line);
  background: #fff;
}

/* Category strip under header */
body.template-pf001 .category-strip {
  border-top: none;
  background: #fff;
}

body.template-pf001 .category-strip-inner {
  padding-top: 8px;
  padding-bottom: 10px;
}

body.template-pf001 .category-pill {
  border: 1px solid var(--oz-line);
  background: #fff;
  color: var(--oz-text);
}

body.template-pf001 .category-pill:hover {
  border-color: #a7f3d0;
  color: var(--oz-accent);
}

body.template-pf001 .category-pill.is-active {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

/* Mobile menu */
@media (max-width: 760px) {
  body.template-pf001 .ozsmk-header-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  body.template-pf001 .ozsmk-search-form {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }

  body.template-pf001 .header-stack > .category-strip {
    display: none;
  }
}

/* Home sections */
.ozsmk-section {
  padding: 40px 0;
}

.ozsmk-section--soft {
  background: var(--oz-soft);
  border-top: 1px solid var(--oz-line);
  border-bottom: 1px solid var(--oz-line);
}

.ozsmk-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ozsmk-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ozsmk-section-head a {
  font-weight: 600;
  font-size: 14px;
  color: var(--oz-accent);
}

.ozsmk-brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ozsmk-brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--oz-line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--oz-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ozsmk-brand-chip:hover {
  border-color: #6ee7b7;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.12);
}

.ozsmk-categories-page-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ozsmk-brand-strip--page {
  justify-content: flex-start;
}

.ozsmk-brand-chip .ozsmk-brand-count {
  margin-left: 8px;
  font-weight: 600;
  font-size: 12px;
  color: var(--oz-muted, #64748b);
}

/* Product cards */
.ozsmk-product-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--oz-line);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ozsmk-product-card .thumb-wrap {
  aspect-ratio: 1 / 1.05;
}

.ozsmk-product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.ozsmk-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ozsmk-badge--sale {
  background: var(--oz-sale);
  color: #fff;
}

.ozsmk-product-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 12px 14px 4px;
  font-weight: 600;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.ozsmk-product-card h3 a {
  color: inherit;
  text-decoration: none;
}

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

.ozsmk-price-block {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  flex-shrink: 0;
}

.ozsmk-price-regular {
  color: var(--oz-muted);
}

.ozsmk-price-regular s {
  color: var(--oz-muted);
  text-decoration: line-through;
}

.ozsmk-price-sale strong {
  font-size: 1.15rem;
  color: var(--oz-sale);
}

.ozsmk-price-save {
  color: var(--oz-accent);
  font-weight: 600;
  font-size: 12px;
}

/* PF001 product grid: compact dual CTAs (home + product list) */
body.template-pf001 .pf001-card-cta-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: calc(100% - 28px);
  max-width: 100%;
  margin: auto 14px 14px;
  align-items: stretch;
}

body.template-pf001 .pf001-card-cta {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #047857;
  box-sizing: border-box;
}

body.template-pf001 .pf001-card-cta:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #065f46;
}

.ozsmk-add-btn {
  margin: auto 14px 14px;
  text-align: center;
  border-radius: 999px;
}

body.template-pf001 .product-grid {
  gap: 18px;
}

body.template-pf001 .product-card:not(.ozsmk-product-card) {
  border-radius: 14px;
  border: 1px solid var(--oz-line);
}

/* Product detail */
body.template-pf001 .product-detail .price-line {
  font-size: 1.75rem;
  font-weight: 800;
}

body.template-pf001 .price-line s.price-compare-at {
  color: var(--oz-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

body.template-pf001 .btn-primary {
  background: var(--oz-text);
  border-color: var(--oz-text);
  color: #fff;
}

body.template-pf001 .btn-dark {
  background: #fff;
  color: var(--oz-text);
  border: 2px solid var(--oz-text);
}

/* Footer */
.ozsmk-footer {
  background: #111827;
  color: #e5e7eb;
  border-top: none;
  margin-top: 32px;
}

.ozsmk-footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.ozsmk-footer a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}

.ozsmk-footer a:hover {
  color: #fff;
}

.ozsmk-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding: 48px 0 32px;
}

.ozsmk-footer-bottom {
  border-top: 1px solid #374151;
  padding: 16px 0 28px;
  font-size: 13px;
  color: #9ca3af;
}

body.template-pf001 .section-newsletter {
  background: var(--oz-soft);
  border-top: 1px solid var(--oz-line);
}

body.template-pf001 .newsletter-form .btn-primary {
  background: var(--oz-accent);
  border-color: var(--oz-accent);
}

/* —— PF001 home only: fixed contact rail (see body.pf001-home-rail-on) —— */
body.pf001-home-rail-on {
  --pf001-rail-inq1: #6366f1;
  --pf001-rail-inq2: #8b5cf6;
  --pf001-rail-chat1: #0ea5e9;
  --pf001-rail-chat2: #14b8a6;
}

body.template-pf001 .pf001-home-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  pointer-events: none;
}

body.template-pf001 .pf001-home-rail__inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.92) 55%, rgba(224, 242, 254, 0.88) 100%);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow:
    0 4px 6px rgba(79, 70, 229, 0.06),
    0 18px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
}

body.template-pf001 .pf001-home-rail__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

body.template-pf001 .pf001-home-rail__btn:hover,
body.template-pf001 .pf001-home-rail__btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  outline: none;
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.32);
}

body.template-pf001 .pf001-home-rail__btn--inquiry {
  background: linear-gradient(145deg, var(--pf001-rail-inq1), var(--pf001-rail-inq2));
}

body.template-pf001 .pf001-home-rail__btn--chat {
  background: linear-gradient(145deg, var(--pf001-rail-chat1), var(--pf001-rail-chat2));
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
}

body.template-pf001 .pf001-home-rail__btn--chat:hover,
body.template-pf001 .pf001-home-rail__btn--chat:focus-visible {
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.38);
}

body.template-pf001 .pf001-home-rail__btn--disabled {
  cursor: not-allowed;
  filter: grayscale(0.35) saturate(0.6);
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

body.template-pf001 .pf001-home-rail__btn--disabled:hover {
  transform: none;
  filter: grayscale(0.35) saturate(0.6);
}

body.template-pf001 .pf001-home-rail__svg {
  width: 26px;
  height: 26px;
}

@media (min-width: 900px) {
  body.pf001-home-rail-on {
    padding-right: 96px;
  }
}

@media (min-width: 641px) {
  body.template-pf001 .pf001-home-rail__btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #312e81;
    background: linear-gradient(120deg, #fff 0%, #eef2ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  }

  body.template-pf001 .pf001-home-rail__btn[data-tooltip]:hover::after,
  body.template-pf001 .pf001-home-rail__btn[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-2px);
  }
}

@media (max-width: 640px) {
  body.template-pf001 .pf001-home-rail {
    right: 12px;
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  body.template-pf001 .pf001-home-rail__inner {
    flex-direction: row;
    padding: 10px;
    gap: 10px;
  }

  body.template-pf001 .pf001-home-rail__btn {
    width: 48px;
    height: 48px;
  }

  body.pf001-home-rail-on {
    padding-right: 0;
    padding-bottom: 88px;
  }
}
