/* ==========================================================
   EGZO Website Stylesheet
   Version: v4 readable code

   Structure:
   01. Design Tokens
   02. Base Styles
   03. Layout Helpers
   04. Navigation
   05. Buttons
   06. Hero Sections
   07. Section Headers
   08. Cards & Grids
   09. Product Blocks
   10. Forms
   11. Footer
   12. Responsive Rules
   13. Page-Specific Rules
   ========================================================== */

/* 01. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --ink: #111111;
  --muted: #666666;
  --line: #e8e8e4;
  --soft: #f6f6f2;
  --white: #ffffff;
  --radius: 28px;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
}

/* 02. BASE STYLES
   ---------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.45;
}

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

img {
  max-width: 100%;
  display: block;
}

/* 03. LAYOUT HELPERS
   ---------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

/* 04. NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 27px;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: #333333;
  align-items: center;
}

/* 05. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 750;
  font-size: 14px;
  border: 1px solid var(--ink);
  transition: 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn.dark {
  background: var(--ink);
  color: var(--white);
}

.btn.light {
  background: var(--white);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

/* 06. HERO SECTIONS
   ---------------------------------------------------------- */
.hero {
  padding: 88px 0 54px;
  background: linear-gradient(180deg, #ffffff 0%, #fafaf7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 52px;
  align-items: center;
}

.page-hero {
  padding: 78px 0;
  background: var(--soft);
}

.page-hero h1 {
  font-size: 64px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: #777777;
  margin-bottom: 16px;
}

h1 {
  font-size: 76px;
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin: 0 0 24px;
}

.hero h1 span {
  display: block;
}

h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0;
}

.lead {
  font-size: 20px;
  color: #444444;
  max-width: 620px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* 07. SECTION HEADERS
   ---------------------------------------------------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 440px;
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

/* 08. CARDS & GRIDS
   ---------------------------------------------------------- */
.trust-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
  max-width: 540px;
}

.trust-inline div {
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
}

.product-wall {
  min-height: 570px;
  border-radius: 42px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #f2f2ec 62%, #e9e9e2 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 32px;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
  height: 100%;
}

.wall-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
}

.wall-card img {
  height: 132px;
  object-fit: contain;
  margin: auto;
}

.wall-card.tall img {
  height: 184px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  min-height: 150px;
}

.stat strong {
  display: block;
  font-size: 42px;
  letter-spacing: -0.055em;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-weight: 650;
}

.categories,
.value-grid,
.portfolio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.categories {
  gap: 18px;
}

.cat,
.value,
.product,
.panel,
.map-box {
  background: var(--white);
  border: 1px solid var(--line);
}

.cat {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
}

.cat-img {
  height: 210px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.cat-img img {
  height: 160px;
  object-fit: contain;
}

.cat-body {
  padding: 24px;
}

.cat h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.cat p {
  color: var(--muted);
  margin: 0 0 18px;
}

.text-link {
  font-weight: 800;
  font-size: 14px;
}

.value {
  border-radius: 28px;
  padding: 26px;
}

.value h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.value p {
  margin: 0;
  color: var(--muted);
}

.panel {
  border-radius: 38px;
  padding: 42px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.panel.dark {
  background: var(--ink);
  color: var(--white);
}

.panel.dark p,
.panel.dark li {
  color: rgba(255, 255, 255, 0.72);
}

.panel h2 {
  font-size: 44px;
}

.bullets {
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bullets li {
  color: #4b4b4b;
  font-weight: 650;
}

.bullets li::before {
  content: "✓";
  font-weight: 900;
  margin-right: 10px;
}

.map-box {
  border-radius: 38px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.country {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  font-weight: 750;
  background: #fafafa;
}

/* 09. PRODUCT BLOCKS
   ---------------------------------------------------------- */
.product {
  border-radius: 28px;
  padding: 18px;
  min-height: 278px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product img {
  height: 160px;
  object-fit: contain;
  margin: auto;
}

.product h3 {
  font-size: 18px;
  margin: 16px 0 2px;
  letter-spacing: -0.03em;
}

.product p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* 10. FORMS
   ---------------------------------------------------------- */
.form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 120px;
}

/* 11. FOOTER
   ---------------------------------------------------------- */
.footer {
  padding: 44px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

/* 12. RESPONSIVE RULES
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split,
  .map-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 38px;
  }

  .stats,
  .categories,
  .value-grid,
  .portfolio {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-wall {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .stats,
  .categories,
  .value-grid,
  .portfolio,
  .trust-inline,
  .country-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }

  .hero {
    padding: 56px 0 34px;
  }

  .section {
    padding: 58px 0;
  }

  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wall-card img {
    height: 112px;
  }
}

/* 13. PAGE-SPECIFIC RULES
   ---------------------------------------------------------- */
/* Products page: keep all product category cards in one centered row on desktop. */
.products-single-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: nowrap;
}

.products-single-row .product {
  flex: 0 0 210px;
}

@media (max-width: 1180px) {
  .products-single-row {
    flex-wrap: wrap;
  }
}


/* 14. CATEGORY CATALOG PAGES
   ---------------------------------------------------------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.catalog-card-image {
  height: 210px;
  background: #f4f4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.catalog-card-image img {
  max-height: 170px;
  object-fit: contain;
}

.catalog-card-body {
  padding: 22px;
}

.product-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.catalog-card p {
  color: var(--muted);
  margin: 0;
}

.product {
  color: inherit;
  text-decoration: none;
}

.product:hover,
.catalog-card:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

@media (max-width: 1000px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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


/* =========================================================
   Product Card Component
   Used on category pages for individual product cards.
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 18px;
  justify-content: center;
  align-items: stretch;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .04);
}

.product-card-image {
  min-height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-card-image img {
  max-height: 180px;
  width: 100%;
  object-fit: contain;
}

.product-card-body {
  border-top: 1px solid var(--line);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 6px;
}

.product-card-meta {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 8px;
}

.product-card-type {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.product-card-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.01em;
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Product Detail Page Template
   Used for individual product pages generated from products.json.
   ========================================================= */

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.product-detail-image {
  background: #f4f4ef;
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 42px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .04);
}

.product-detail-image img {
  max-height: 460px;
  width: 100%;
  object-fit: contain;
}

.product-detail-info {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 42px;
}

.product-detail-info h1 {
  font-size: 56px;
  line-height: .95;
  letter-spacing: -.06em;
  margin-bottom: 18px;
}

.product-detail-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
  margin-bottom: 14px;
}

.product-specs {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.product-specs li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 650;
  color: #444;
  background: #fafafa;
}

.product-back-link {
  display: inline-flex;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 850;
  color: var(--muted);
}

.product-downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.template-note {
  display: none !important;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    min-height: 360px;
  }

  .product-detail-info h1 {
    font-size: 44px;
  }
}


/* Official EGZO header logo */
.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: 76px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 560px) {
  .logo img {
    height: 64px;
  }
}


/* Product category card image white background override */
.product-card-image {
  background: #ffffff;
}


/* Choose Your Experience card white background override */
.cat-img {
  background: #ffffff;
}


/* =========================================================
   Helvetica Neue typography adaptation
   Helvetica Neue is used first; Inter remains fallback.
   ========================================================= */

body {
  font-family: "Helvetica Neue", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

h1 {
  font-size: 72px;
  letter-spacing: -0.065em;
}

h2 {
  font-size: 46px;
  letter-spacing: -0.05em;
}

.nav-links {
  letter-spacing: 0.01em;
}

.btn {
  letter-spacing: 0.005em;
}

.product-card-title,
.cat h3,
.value h3,
.product h3 {
  letter-spacing: -0.035em;
}

@media (max-width: 900px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 37px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }
}


/* Lubricants final uploaded packshot sizing */
.product-card-image {
  background: #ffffff;
}

.product-card-image img {
  max-height: 255px;
}

.product-detail-image {
  background: #ffffff;
}

.product-detail-image img {
  max-height: 620px;
}


/* Aroma gels final packshot sizing */
.product-card-image {
  background: #ffffff;
}

.product-detail-image {
  background: #ffffff;
}

.product-card-image img {
  max-height: 255px;
}

.product-detail-image img {
  max-height: 620px;
}


/* Condoms final packshot sizing */
.product-card-image {
  background: #ffffff;
}

.product-detail-image {
  background: #ffffff;
}

.product-card-image img {
  max-height: 255px;
}

.product-detail-image img {
  max-height: 620px;
}


/* Oral condoms final packshot sizing */
.product-card-image {
  background: #ffffff;
}

.product-detail-image {
  background: #ffffff;
}

.product-card-image img {
  max-height: 255px;
}

.product-detail-image img {
  max-height: 620px;
}


/* Oral Condoms larger packshots v23 */
.oral-condoms-page .product-card-image img {
  max-height: 295px;
}

.oral-condoms-page .product-detail-image img {
  max-height: 710px;
}


/* Oral Condoms visual enlargement fix */
.oral-condoms-page .product-card-image{
  padding:8px;
}
.oral-condoms-page .product-card-image img{
  max-height:none !important;
  width:115% !important;
  transform:scale(1.15);
  transform-origin:center;
}
.oral-condoms-page .product-detail-image img{
  max-height:none !important;
  width:115% !important;
  transform:scale(1.15);
  transform-origin:center;
}


/* Condoms larger packshots v24 */
.condoms-page .product-card-image img{
  transform:scale(1.15);
  transform-origin:center center;
}
.condoms-page .product-detail-image img{
  transform:scale(1.15);
  transform-origin:center center;
}


/* Oral Condoms detail block matched to Condoms v25 */
.oral-condoms-page .product-detail-image {
  min-height: 520px;
  padding: 42px;
  background: #ffffff;
}

.oral-condoms-page .product-detail-image img {
  max-height: 620px;
  transform: scale(1.15);
  transform-origin: center center;
  width: 100%;
  object-fit: contain;
}


/* =========================================================
   v26: Exact same View Product media block for Condoms and Oral Condoms
   ========================================================= */

.condoms-page .product-detail,
.oral-condoms-page .product-detail {
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.85fr);
}

.condoms-page .product-detail-image,
.oral-condoms-page .product-detail-image {
  width: 100%;
  height: 520px;
  min-height: 520px;
  padding: 42px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.condoms-page .product-detail-image img,
.oral-condoms-page .product-detail-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(1.15);
  transform-origin: center center;
}

@media (max-width: 900px) {
  .condoms-page .product-detail-image,
  .oral-condoms-page .product-detail-image {
    height: 360px;
    min-height: 360px;
  }
}


/* v27 Match Condoms/Oral Condoms to Lubricants & Aroma Gels */
.condoms-page .product-detail-image,
.oral-condoms-page .product-detail-image{
  height:560px !important;
  min-height:560px !important;
  padding:24px !important;
}
.condoms-page .product-detail-image img,
.oral-condoms-page .product-detail-image img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:540px !important;
  transform:none !important;
  object-fit:contain !important;
}


/* Pleasure Enhancers final packshot sizing v28 */
.pleasure-enhancers-page .product-card-image {
  background: #ffffff;
}

.pleasure-enhancers-page .product-detail-image {
  background: #ffffff;
}

.pleasure-enhancers-page .product-card-image img {
  max-height: 255px;
  object-fit: contain;
}

.pleasure-enhancers-page .product-detail-image img {
  max-height: 540px;
  object-fit: contain;
}


/* v29 oral hero */
.oral-condoms-page .product-card-image img{max-height:255px;object-fit:contain;transform:scale(1.12);}
.oral-condoms-page .product-detail-image img{max-height:540px;object-fit:contain;transform:scale(1.12);}
