/*
Theme Name: Jamran
Description: Port of the JAMRAN Next.js site. Markup and styles mirror the original 1:1.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: jamran
*/


:root {
  --bg-primary: #050505;
  --bg-secondary: #0f0f11;
  --bg-card: rgba(20, 20, 24, 0.7);
  --bg-card-solid: #16161a;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a8; /* Better contrast */
  --accent: #d4af37;
  --accent-hover: #e5c158;
  --accent-glow: rgba(212, 175, 55, 0.15);
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.2);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Reduced from 18px to standard */
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #b8901b 100%);
  color: #000;
  padding: 0.6rem 1.25rem;
  border-radius: 8px; /* Structured button */
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Layout Utilities */
.section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #a3a3a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 700px;
  margin-bottom: 4rem;
  line-height: 1.7;
}

/* UI Kit Card Base */
.ui-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.ui-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

@media (max-width: 768px) {
  html { font-size: 14px; } /* Slightly smaller for mobile readability */
  .section { padding: 4.5rem 0; }
  .section-title { font-size: 2rem; }
  .container { padding: 0 1.25rem; }
}

/* ── Navbar.css ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

.navbar--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.navbar__logo img {
  border-radius: 4px;
  object-fit: cover;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--text-primary);
}

.navbar__cta {
  padding: 0.45rem 1.15rem;
  font-size: 0.8125rem;
}

.navbar__burger {
  display: none;
  width: 24px;
  height: 20px;
  position: relative;
}

.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.navbar__burger span:nth-child(1) { top: 0; }
.navbar__burger span:nth-child(2) { top: 9px; }
.navbar__burger span:nth-child(3) { top: 18px; }

.navbar__burger--open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.navbar__burger--open span:nth-child(2) {
  opacity: 0;
}

.navbar__burger--open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.navbar__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  height: calc(100vh - 100%);
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.navbar__mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.navbar__mobile a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.navbar__mobile a.active {
  color: var(--text-primary);
}

.navbar__mobile .btn-primary {
  margin-top: 1rem;
  color: var(--bg-primary);
}

@media (max-width: 768px) {
  .navbar__links, .navbar__cta {
    display: none;
  }
  .navbar__burger {
    display: block;
  }
}

/* ── Footer.css ── */
.footer {
  background: var(--bg-secondary);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__brand h3 {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer__brand p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer__col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col li, .footer__col a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Home.css ── */
.label-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #ffe38f 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Halos */
.section-halo {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle at 30% 40%, black 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, black 10%, transparent 60%);
}

.section-halo--right {
  mask-image: radial-gradient(circle at 80% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 80% 50%, black 10%, transparent 70%);
}

.section-halo--left {
  mask-image: radial-gradient(circle at 20% 60%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 20% 60%, black 10%, transparent 70%);
}

.section-halo--center {
  mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 70%);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  z-index: 2;
}

.hero__gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero__tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__title {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero__subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero__actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 600px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* About Intro */
.about-intro__inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-intro__text {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.link-arrow {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.link-arrow:hover {
  transform: translateX(8px);
  filter: brightness(1.2);
}

/* Products */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: all 0.4s ease;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.1);
}

.product-card__image {
  position: relative;
  min-height: 400px;
}

.product-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid var(--border);
}

.product-card__content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card__content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card__content p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.product-card__features {
  list-style: none;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: #ccc;
}

.product-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

.product-card__action {
  align-self: flex-start;
  font-size: 1rem;
}

/* Benefits */
.benefits-section {
  position: relative;
}

.benefits-section__glow {
  position: absolute;
  top: 30%;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-item {
  padding: 3rem 2.5rem;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,0.3);
}

.benefit-icon {
  font-size: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.benefit-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Process Overview */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
}

.process-step {
  position: relative;
}

.process-step__num {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: -2.5rem;
  left: -0.5rem;
  z-index: -1;
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Numbers */
.numbers__inner {
  padding: 4rem;
  border-top: 4px solid var(--accent);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.number-item__value {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.number-item__label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Packaging */
.packaging__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.packaging-card {
  padding: 3rem;
  transition: transform 0.3s ease;
}

.packaging-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,0.3);
}

.packaging-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.packaging-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* CTA */
.cta-section__inner {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(20,20,24,0.3) 100%);
  border: 1px solid var(--border);
  padding: 6rem 4rem;
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-section__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.cta-section__inner h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.cta-section__inner p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

@media (max-width: 1024px) {
  .hero__title { font-size: 4rem; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { text-align: center; justify-content: center; }
  .hero__content { margin: 0 auto; text-align: center; }
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { font-size: 1.05rem; margin-left: auto; margin-right: auto; }
  .hero__actions { flex-direction: column; width: 100%; gap: 1rem; }
  .hero__actions .btn-primary,
  .hero__actions .btn-secondary { width: 100%; text-align: center; }
  .hero__stats { flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; gap: 1.5rem; }
  .hero__stat { align-items: center; text-align: center; }
  .hero__stat-divider { display: none; }

  .about-intro__inner { text-align: center; }
  .about-intro__text { font-size: 1.15rem; }

  .product-card { grid-template-columns: 1fr; }
  .product-card__image { min-height: 250px; }
  .product-card__image img { border-right: none; border-bottom: 1px solid var(--border); }
  .product-card__content { padding: 2.5rem; }

  .benefits__grid, .process__grid, .numbers__grid, .packaging__grid { grid-template-columns: 1fr; }

  .cta-section__inner { padding: 3.5rem 1.5rem; }
  .cta-section__inner h2 { font-size: 2rem; }
}

/* ── About.css ── */
.about-page {
  padding-top: 10rem;
  position: relative;
  z-index: 2;
}

.about-lead {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 6rem;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-process {
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.process-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.process-content img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.process-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-lead {
    font-size: 1.25rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .process-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Contact.css ── */
.contact-page {
  padding-top: 10rem;
  position: relative;
  z-index: 2;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 1rem;
}

.contact-link {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-form-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-error {
  color: #ff4d4f;
  font-size: 0.8125rem;
}

.form-error-banner {
  background: rgba(255, 77, 79, 0.1);
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.form-success svg {
  color: #52c41a;
  margin-bottom: 1.5rem;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Product.css ── */
.product-page {
  padding-top: 10rem;
  position: relative;
  z-index: 2;
  padding-bottom: 8rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.product-layout__media-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.product-layout__media {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  position: relative;
}

.product-main-btn {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  cursor: zoom-in;
  border: none;
  background: none;
  padding: 0;
}

.product-main-btn:hover .product-main-overlay {
  opacity: 1;
}

.product-main-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.product-thumbnails {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.product-thumbnails::-webkit-scrollbar {
  display: none;
}

.product-thumb-btn {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-btn:hover {
  opacity: 1;
}

.product-thumb-btn.active {
  border-color: var(--accent);
  opacity: 1;
}

.product-layout__info {
  min-width: 0;
  word-break: break-word;
}

.product-layout__info h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.product-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.product-specs, .product-packaging {
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.product-specs h3, .product-packaging h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.product-specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.product-specs dt {
  color: var(--text-secondary);
}

.product-specs dd {
  font-weight: 500;
  text-align: right;
}

.product-packaging ul {
  list-style-position: inside;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-actions {
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

/* ── WordPress port additions ── */
.bg-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 46px; } }

/* Scroll reveal (replaces framer-motion ScrollReveal; JS adds .is-visible). Scoped to .js so content shows without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--y, 20px));
  transition: opacity var(--dur, 0.6s) cubic-bezier(0.21, 0.47, 0.32, 0.98) var(--d, 0s),
              transform var(--dur, 0.6s) cubic-bezier(0.21, 0.47, 0.32, 0.98) var(--d, 0s);
}
.js .reveal--hero { --y: 30px; --dur: 0.7s; }
.js .reveal--scale { transform: scale(0.8); --dur: 0.5s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Mobile menu enter/exit */
.navbar__mobile {
  opacity: 0;
  transform: translateY(-20px);
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
}
.navbar__mobile.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

/* Multiple products stack on the homepage */
.products__list { display: grid; gap: 2rem; }

/* Product gallery + lightbox (<dialog>) */
.product-main-img { transition: opacity 0.25s; }
.product-desc p + p { margin-top: 1rem; }
dialog.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  color: inherit;
  animation: jamran-fade 0.2s;
}
dialog.lightbox:not([open]) { display: none; }
dialog.lightbox::backdrop { background: transparent; }
dialog.lightbox img { animation: jamran-zoom 0.25s; }
@keyframes jamran-fade { from { opacity: 0; } }
@keyframes jamran-zoom { from { opacity: 0; transform: scale(0.9); } }

/* Contact Form 7 → original form styles */
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7-form-control-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.wpcf7-submit { font-family: inherit; cursor: pointer; line-height: normal; }
.wpcf7-not-valid-tip { color: #ff4d4f; font-size: 0.8125rem; }
.contact-form .wpcf7-submit { order: 1; }
.contact-form.submitting .wpcf7-submit { opacity: 0.7; pointer-events: none; }
.wpcf7-response-output {
  background: rgba(255, 77, 79, 0.1);
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}
.wpcf7-spinner,
.wpcf7-response-output:empty,
.contact-form.invalid .wpcf7-response-output,
.contact-form.sent .wpcf7-response-output,
.form-success[hidden],
.contact-form-wrapper.is-sent .wpcf7 { display: none; }
.screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
