/* PSA New Website design — ported into Pashuseva storefront */

:root {
  --em-color-primary: #214332;
  --em-color-secondary: #f5f5ec;
  --em-text-color: #172e22;
  --em-bg-color: #f5f5ec;
  --em-white: #ffffff;
  --em-font-family: "Albert Sans", "Outfit", system-ui, sans-serif;
  --border-radius: 10px;
  --btn-border-radius: 30px;
}

body.psa-theme {
  background-color: var(--em-bg-color);
  color: var(--em-text-color);
  font-family: var(--em-font-family);
  padding-bottom: 0;
}

/* Space for fixed bottom nav on mobile only (not below footer on desktop) */
@media (max-width: 991.98px) {
  body.psa-theme:not(.no-bottom-nav) {
    padding-bottom: calc(var(--bottom-nav-h, 72px) + env(safe-area-inset-bottom, 0px));
  }
}

body.psa-theme.no-bottom-nav {
  padding-bottom: 0;
}

.em-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 15px;
}

/* Campaign bar */
.campaign-bar {
  background-color: var(--em-color-primary);
  color: var(--em-white);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}
.campaign-bar__items {
  display: flex;
  width: max-content;
  animation: psa-marquee 28s linear infinite;
}
.campaign-bar__item {
  padding: 0 50px;
  display: inline-block;
}
@keyframes psa-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* PSA header — sticky on all viewports */
body.psa-theme .site-header {
  display: block !important;
  background: var(--em-white);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
body.psa-theme .site-header-inner,
body.psa-theme .header-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
body.psa-theme .site-logo-img {
  max-width: 200px;
  height: auto;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}
body.psa-theme .site-nav,
body.psa-theme .main-navigation {
  display: flex;
  gap: 30px;
  align-items: center;
}
body.psa-theme .site-nav a,
body.psa-theme .main-navigation a {
  font-weight: 500;
  font-size: 16px;
  color: var(--em-text-color);
  text-decoration: none;
}
body.psa-theme .site-nav a:hover,
body.psa-theme .site-nav a.active,
body.psa-theme .main-navigation a:hover,
body.psa-theme .main-navigation a.active {
  color: var(--em-color-primary);
}
body.psa-theme .site-header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
body.psa-theme .site-header-actions .icon-btn {
  font-size: 1.15rem;
  color: var(--em-text-color);
  position: relative;
}
body.psa-theme .header-cart-badge,
body.psa-theme .header-counter {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--em-color-primary);
  color: #fff;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-style: normal;
}
body.psa-theme .header-signin {
  display: none;
}
body.psa-theme .header-user {
  font-size: .85rem;
  font-weight: 600;
  color: var(--em-color-primary);
}
body.psa-theme .mobile-only.topbar {
  display: none !important;
}
body.psa-theme .mobile-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--em-text-color);
}

/* Buttons */
.psa-btn,
.btn.btn-primary,
.btn.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--btn-border-radius);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .3s;
  text-decoration: none;
  font-size: .95rem;
}
.btn.btn-primary {
  background: var(--em-color-primary);
  color: #fff !important;
  border: 2px solid var(--em-color-primary);
}
.btn.btn-primary:hover {
  background: transparent;
  color: var(--em-color-primary) !important;
}
.btn.btn-outline {
  background: transparent;
  color: var(--em-color-primary) !important;
  border: 2px solid var(--em-color-primary);
}
.btn.btn-outline:hover {
  background: var(--em-color-primary);
  color: #fff !important;
}

/* Sections */
.psa-section,
.section {
  padding: 80px 0;
}
.psa-section-title,
.section-title {
  text-align: center;
  font-size: 36px;
  margin: 0 0 40px;
  font-weight: 700;
  color: var(--em-text-color);
  font-family: var(--em-font-family);
}

/* Hero */
.psa-hero {
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Trust icons */
.image-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}
.image-grid-4 img {
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
  display: block;
  height: auto;
  object-fit: contain;
}

/* Welcome / two-col */
.welcome-section {
  padding: 60px 0;
  background: var(--em-bg-color);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.welcome-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  display: block;
}
.welcome-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--em-text-color);
  font-family: var(--em-font-family);
}
.welcome-desc {
  font-size: 16px;
  margin: 0 0 30px;
  color: #444;
  line-height: 1.65;
}
.why-choose-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.why-choose-list li {
  margin-bottom: 15px;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
}
.why-choose-list i {
  color: var(--em-color-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Featured products — keep store product cards */
.psa-featured {
  background: var(--em-white);
  padding: 80px 0;
}
.psa-featured .product-grid {
  padding: 0;
}
.psa-featured-cta {
  text-align: center;
  margin-top: 36px;
}

/* Challenges */
.challenges-section {
  background: var(--em-white);
}
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.challenge-card {
  padding: 20px;
}
.challenge-card img {
  height: 60px;
  width: auto;
  margin: 0 auto 25px;
  object-fit: contain;
  display: block;
}
.challenge-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--em-color-primary);
  margin: 0 0 15px;
}
.challenge-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Testimonials */
.testimonial-section {
  background: var(--em-bg-color);
  padding: 80px 0;
}
.testimonial-box {
  background: var(--em-color-primary);
  color: #fff;
  border-radius: var(--border-radius);
  display: grid;
  grid-template-columns: 2fr 1fr;
  overflow: hidden;
  min-height: 320px;
}
.testimonial-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-content .stars {
  color: #ffb400;
  margin-bottom: 20px;
  display: flex;
  gap: 4px;
}
.testimonial-content h3 {
  font-size: 24px;
  margin: 0 0 15px;
  color: #fff;
  font-weight: 600;
  line-height: 1.35;
}
.testimonial-content p {
  font-size: 16px;
  margin: 0 0 20px;
  font-style: italic;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
}
.testimonial-content .author {
  font-weight: 700;
  color: #fff;
}
.testimonial-image {
  min-height: 240px;
}
.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 100%;
}

/* Page hero (about) — scoped so it does not override shop .page-header */
.psa-page-hero {
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.psa-page-hero h1 {
  color: #fff;
  font-size: 56px;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 4px 15px rgba(0,0,0,.4);
  line-height: 1.2;
  margin: 0;
  padding: 0 20px;
  font-family: var(--em-font-family);
}

/* Contact page */
.contact-page {
  background: #f3f4ea;
  min-height: 60vh;
  padding-bottom: 80px;
}
.contact-header {
  text-align: center;
  padding: 60px 0 40px;
}
.contact-header h1 {
  color: var(--em-color-primary);
  font-size: 40px;
  font-weight: 500;
  margin: 0;
  font-family: var(--em-font-family);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.contact-info-section h2 {
  color: var(--em-color-primary);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 30px;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 16px;
}
.contact-info-list i {
  color: #333;
  font-size: 20px;
  margin-top: 4px;
  width: 24px;
  text-align: center;
}
.contact-info-list span,
.contact-info-list a {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}
.contact-map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
}
.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-form-group { margin-bottom: 20px; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.contact-form-input {
  width: 100%;
  padding: 15px 20px;
  background: #fff;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: #333;
}
.contact-form-input:focus {
  outline: 1px solid var(--em-color-primary);
}
textarea.contact-form-input {
  height: 150px;
  resize: vertical;
}
.contact-form-heading {
  color: var(--em-color-primary);
  font-size: 24px;
  font-weight: 500;
  margin: 30px 0 10px;
}
.contact-form-subheading {
  color: #666;
  font-size: 14px;
  margin: 0 0 20px;
}
.btn-send-message {
  background: var(--em-color-primary);
  color: #fff;
  border: none;
  padding: 15px 35px;
  border-radius: var(--btn-border-radius);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.btn-send-message:hover { background: #172e22; }

/* PSA Footer */
body.psa-theme .site-footer {
  display: block !important;
  background: var(--em-color-primary);
  color: #fff;
  margin-top: 0;
  padding: 60px 0 0;
}
body.psa-theme .site-footer-inner,
body.psa-theme .footer-grid {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 15px 40px;
  display: grid;
  grid-template-columns: 3fr 1.5fr 3fr;
  gap: 0;
}
body.psa-theme .sf-col,
body.psa-theme .footer-col {
  padding: 0 40px;
}
body.psa-theme .sf-brand,
body.psa-theme .footer-col:first-child {
  padding-left: 0;
  border-right: 1px solid rgba(255,255,255,.1);
}
body.psa-theme .sf-col:nth-child(2),
body.psa-theme .footer-col:nth-child(2) {
  border-right: 1px solid rgba(255,255,255,.1);
}
body.psa-theme .sf-col:last-child,
body.psa-theme .footer-col:last-child {
  padding-right: 0;
}
body.psa-theme .footer-logo img,
body.psa-theme .footer-logo .site-logo-img {
  max-width: 200px;
  margin-bottom: 20px;
}
body.psa-theme .sf-brand p,
body.psa-theme .footer-desc {
  margin: 15px 0 0;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  max-width: none;
  font-size: .95rem;
}
body.psa-theme .sf-col h4,
body.psa-theme .footer-col h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 20px;
  font-weight: 600;
}
body.psa-theme .sf-col a,
body.psa-theme .sf-col span,
body.psa-theme .footer-col ul li a,
body.psa-theme .footer-address p,
body.psa-theme .footer-contact-info p {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1.55;
}
body.psa-theme .sf-col a:hover,
body.psa-theme .footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}
body.psa-theme .footer-socials,
body.psa-theme .sf-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
body.psa-theme .footer-socials a,
body.psa-theme .sf-social a {
  color: #fff !important;
  font-size: 18px;
  width: auto;
  height: auto;
  background: transparent;
  margin: 0 !important;
  display: inline-flex !important;
}
body.psa-theme .site-footer-bottom,
body.psa-theme .footer-bottom-wrapper {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  margin-bottom: 0;
}
body.psa-theme .footer-bottom,
body.psa-theme .site-footer-bottom-inner {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  text-align: left;
}

@media (max-width: 992px) {
  .image-grid-4 { grid-template-columns: 1fr 1fr; }
  .welcome-grid { gap: 30px; }
  body.psa-theme .site-footer-inner,
  body.psa-theme .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  body.psa-theme .sf-brand,
  body.psa-theme .footer-col:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    padding-bottom: 24px;
  }
}

@media (max-width: 768px) {
  body.psa-theme .site-nav,
  body.psa-theme .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
  }
  body.psa-theme .site-nav.is-open,
  body.psa-theme .main-navigation.active {
    display: flex;
  }
  body.psa-theme .mobile-menu-toggle {
    display: inline-block !important;
  }
  .psa-hero,
  .psa-page-hero { height: 320px !important; }
  .psa-page-hero h1 { font-size: 28px !important; }
  .section-title,
  .psa-section-title { font-size: 28px; text-align: left; }
  .welcome-grid,
  .testimonial-box,
  .challenges-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-row { grid-template-columns: 1fr; }
  body.psa-theme .site-footer-inner,
  body.psa-theme .footer-grid {
    grid-template-columns: 1fr;
  }
  body.psa-theme .sf-col,
  body.psa-theme .footer-col {
    padding: 0 0 28px;
    border-right: 0 !important;
  }
  .testimonial-content { padding: 30px; }
  .psa-section,
  .section { padding: 40px 0 !important; }
  body.psa-theme .footer-bottom,
  body.psa-theme .site-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .welcome-text { text-align: left; }
}

/* Shop by category (homepage) */
.shop-categories-lead {
  text-align: center;
  color: #555;
  margin: -24px auto 28px;
  max-width: 520px;
  font-size: 15px;
}
.shop-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.shop-categories-more {
  margin-top: 16px;
  display: none !important;
}
.shop-categories-more.is-open {
  display: grid !important;
  align-items: stretch;
}
.shop-categories-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.shop-cat-more-btn {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.shop-category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 18px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(33, 67, 50, 0.08);
  box-shadow: 0 8px 20px rgba(23, 46, 34, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  min-height: 148px;
  box-sizing: border-box;
}
.shop-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(23, 46, 34, 0.1);
  color: inherit;
}
.shop-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef6f1, #f5f5ec);
  color: var(--em-color-primary);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1;
}
.shop-category-icon i {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}
.shop-category-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.shop-category-count {
  font-size: .82rem;
  color: #6b7280;
  margin-top: auto;
}

/* Mobile category carousel */
.shop-cat-carousel-wrap {
  margin: 0;
  width: 100%;
  overflow: hidden;
}
.shop-cat-swiper {
  overflow: hidden;
  padding: 4px 4px 8px;
}
.shop-cat-swiper .swiper-wrapper {
  align-items: stretch;
}
.shop-cat-swiper .swiper-slide {
  width: 158px;
  height: auto;
  display: flex;
}
.shop-category-card--slide {
  width: 100%;
  min-height: 148px;
  height: auto;
  padding: 16px 14px;
  user-select: none;
  -webkit-user-select: none;
}
.shop-category-card--slide .shop-category-name {
  font-size: .92rem;
  min-height: 2.4em;
}

@media (max-width: 991.98px) {
  .shop-categories-section .section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .shop-categories-lead {
    text-align: left;
    margin: 0 0 16px;
    font-size: 14px;
  }
}

@media (min-width: 992px) {
  .shop-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========== Mobile / tablet layout fixes ========== */
@media (max-width: 991.98px) {
  /* Do NOT set overflow-x on html/body — it breaks position:sticky on the header */
  body.psa-theme {
    max-width: 100%;
  }

  .em-container,
  body.psa-theme .site-header-inner,
  body.psa-theme .header-container,
  body.psa-theme .footer-bottom,
  body.psa-theme .site-footer-bottom-inner,
  body.psa-theme .site-footer-inner {
    max-width: 100%;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  body.psa-theme .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #fff;
  }
  body.psa-theme .header-main,
  body.psa-theme .site-header-inner {
    position: relative;
  }
  body.psa-theme .site-logo-img {
    max-width: 140px;
    max-height: 44px;
  }
  body.psa-theme .site-header-actions {
    gap: 12px;
  }

  /* Hamburger from tablet down (match .mobile-only / .desktop-only cutoff) */
  body.psa-theme .site-nav,
  body.psa-theme .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    z-index: 1001;
  }
  body.psa-theme .site-nav a,
  body.psa-theme .main-navigation a {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid #f0f2f4;
  }
  body.psa-theme .site-nav.is-open,
  body.psa-theme .main-navigation.active {
    display: flex;
  }
  body.psa-theme .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .psa-hero,
  .psa-page-hero {
    height: min(42vh, 280px) !important;
    min-height: 200px;
    background-position: center;
  }

  .section,
  .psa-section,
  .psa-featured {
    padding: 36px 0 !important;
  }

  .image-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .image-grid-4 img {
    width: 100%;
    height: auto;
  }

  .welcome-grid,
  .challenges-grid,
  .contact-grid,
  .testimonial-box {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Category carousel: no page-wide horizontal scroll */
  .shop-cat-carousel-wrap {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .shop-cat-swiper {
    overflow: hidden;
    padding: 4px 2px 10px;
    margin: 0;
  }
  .shop-cat-swiper .swiper-slide {
    width: 148px;
    box-sizing: border-box;
  }
  .shop-category-card,
  .shop-category-card--slide {
    min-height: 136px;
    padding: 14px 12px;
  }
  .shop-category-name {
    min-height: 2.4em;
    font-size: .9rem;
  }

  .psa-featured .product-grid,
  .home-products {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  body.psa-theme .site-footer-inner,
  body.psa-theme .footer-grid {
    grid-template-columns: 1fr !important;
  }
  body.psa-theme .sf-brand,
  body.psa-theme .footer-col {
    grid-column: auto !important;
    border-right: 0 !important;
    padding: 0 0 22px !important;
  }
  body.psa-theme .footer-bottom,
  body.psa-theme .site-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .site-wrap {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Do not clip .app-shell — it blocks horizontal filter chip scrolling */
  .app-shell,
  main {
    max-width: 100%;
  }
  body.psa-theme .filter-chips {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .psa-hero,
  .psa-page-hero {
    height: 210px !important;
    min-height: 180px;
  }
  .shop-cat-swiper .swiper-slide {
    width: 136px;
  }
  body.psa-theme .site-logo-img {
    max-width: 120px;
    max-height: 40px;
  }
}
