/* ==========================================================================
   PAYRE TRADERS — MINIMAL CORPORATE WEBSITE
   Visual Direction: Minimalist Swiss-Style Editorial Corporate
   Clean, Authoritative, Restrained Palette, Refined Typography
   ========================================================================== */

/* 1. Bengali Font Registration (Ador Noirrit Regular & Bold from /fonts/) */
@font-face {
  font-family: 'Ador Noirrit';
  src: url('/fonts/Li Ador Noirrit Regular.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ador Noirrit';
  src: url('/fonts/Li Ador Noirrit Bold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Li Ador Noirrit';
  src: url('/fonts/Li Ador Noirrit Regular.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Li Ador Noirrit';
  src: url('/fonts/Li Ador Noirrit Bold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Design Tokens — Restrained Swiss Corporate Palette */
:root {
  --bg-page: #fbfbf9;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f3f0;
  --bg-accent-light: #eef2f6;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;

  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-strong: #111827;

  /* Understated Corporate Blue Accents */
  --blue-primary: #1d4ed8;
  --blue-hover: #2563eb;
  --blue-light: #eff6ff;
  --blue-glow: rgba(37, 99, 235, 0.18);

  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bn: 'Ador Noirrit', 'Li Ador Noirrit', sans-serif;
  --font-active: var(--font-en);

  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-height: 4.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Bengali Font Switching */
html[lang="bn"],
html[data-lang="bn"] {
  --font-active: var(--font-bn);
}

html[lang="bn"] body,
html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="bn"] p,
html[lang="bn"] a:not(.sexy-blue-brand),
html[lang="bn"] button,
html[lang="bn"] span:not(.brand-text),
html[lang="bn"] dt,
html[lang="bn"] dd,
html[lang="bn"] table,
.font-bn {
  font-family: 'Ador Noirrit', 'Li Ador Noirrit', sans-serif !important;
  letter-spacing: normal !important;
}

html[lang="bn"] body {
  line-height: 1.75;
}

/* Headers Bengali Font: Li Ador Noirrit Bold */
html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="bn"] h4,
html[lang="bn"] .editorial-headline,
html[lang="bn"] .section-title,
html[lang="bn"] .product-name,
html[lang="bn"] .popup-product-title,
html[lang="bn"] .modal-product-title,
html[lang="bn"] .section-eyebrow {
  font-family: 'Ador Noirrit', 'Li Ador Noirrit', sans-serif !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Thin Side Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* ==========================================================================
   Smooth Loading Animation (No AI slop, pure opacity without breaking fixed positioning)
   ========================================================================== */
.page-load-fade {
  animation: pageEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Base Reset & Standards */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-active);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scroll Configuration */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-active);
  font-size: 1rem;
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--text-primary);
  color: var(--bg-surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.5rem, 7.5vw, 6.5rem);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

/* Eyebrows & Section Headings */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: 0.75rem;
}

/* ==========================================================================
   A. Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

/* --------------------------------------------------------------------------
   Logo: Sexy Blue Font (Tagline Removed, Solid Blue - No Gradient)
   -------------------------------------------------------------------------- */
.sexy-blue-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
}

.sexy-blue-brand .brand-text {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1d4ed8; /* Pure solid blue - NO GRADIENT */
  transition: color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.sexy-blue-brand:hover .brand-text {
  color: #2563eb;
  transform: translateY(-0.5px);
}

/* Primary Navigation Links */
.primary-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Header Right: Language Switcher Dropdown */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn[aria-expanded="true"] {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.lang-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-icon {
  color: var(--blue-primary);
}

.flag-icon {
  border-radius: 1px;
}

.chevron-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.lang-dropdown-btn[aria-expanded="true"] .chevron-arrow {
  transform: rotate(180deg);
  color: var(--blue-primary);
}

/* Animated Menu */
.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
}

.lang-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.lang-menu-item:hover {
  background: var(--bg-subtle);
}

.lang-menu-item.is-selected {
  background: var(--blue-light);
  color: var(--blue-primary);
  font-weight: 600;
}

.lang-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-item-name {
  flex: 1;
}

.lang-item-check {
  font-size: 0.75rem;
  color: var(--blue-primary);
  opacity: 0;
}

.lang-menu-item.is-selected .lang-item-check {
  opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   B. What We Do (Section 01: Image & Text Aligned, Blue Eyebrow Above)
   ========================================================================== */
.what-we-do-eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.section-what-we-do .editorial-grid {
  grid-template-columns: clamp(280px, 35%, 440px) 1fr;
  align-items: stretch;
}

.section-what-we-do .editorial-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Left Image: Sharp Corners (No Rounding), Aligned with Text, Full Height */
.sidebar-image-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 0 !important; /* No rounded corners */
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  position: relative;
}

.sidebar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important; /* No rounded corners */
  display: block;
  transition: transform 0.4s ease;
}

.sidebar-image-wrap:hover .sidebar-preview-img {
  transform: scale(1.02);
}

.editorial-headline {
  margin-top: 0;
  padding-top: 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.editorial-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 860px;
}

/* ==========================================================================
   C. Our Products (Side-Faded Carousel)
   ========================================================================== */
.products-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.products-header-left {
  max-width: 780px;
}

/* Subtle, Natural Typographic Note for Catalogue (No AI-slop, No Box, No Blue Line) */
.catalogue-showcase-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 0.85rem;
  max-width: 680px;
}

.carousel-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-nav-arrows {
  display: flex;
  gap: 0.4rem;
}

.carousel-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.carousel-arrow-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: var(--blue-light);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--text-primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-view-all:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

/* Side-Faded Carousel Track */
.carousel-viewport-wrapper {
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow: hidden;
}

.carousel-fade-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 6vw, 4.5rem);
  z-index: 10;
  pointer-events: none;
}

.carousel-fade-edge.fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-page) 15%, transparent 100%);
}

.carousel-fade-edge.fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-page) 15%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 0.5rem 1.25rem;
  padding-inline: 0.25rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 clamp(290px, 28vw, 360px);
  scroll-snap-align: start;
}

.mobile-view-all-wrap {
  display: none;
  margin-top: 1.5rem;
  text-align: center;
}

/* Category Filter Bar (Used on /products page) */
.category-filter-bar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-pill.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-surface);
}

/* Product Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.card-main-img {
  position: relative;
  z-index: 1;
}

.card-secondary-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .card-secondary-img {
  opacity: 1;
}

.multi-img-badge {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.product-summary {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}

.view-details-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.product-card:hover .view-details-link {
  gap: 0.5rem;
}

/* ==========================================================================
   /products Page Specific Styles
   ========================================================================== */
.section-products-page {
  padding-top: 2.5rem;
}

.page-top-nav {
  margin-bottom: 2rem;
}

.back-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--blue-primary);
}

/* Clean Bottom Showcase Notice on /products Page */
.showcase-bottom-clean {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.bottom-clean-note {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 700px;
}

.btn-clean-contact {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.35rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #ffffff;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-clean-contact:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

/* ==========================================================================
   D. Contact Section (Direct, Clean & Professional)
   ========================================================================== */
.contact-details-list {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
}

.contact-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
}

.contact-entry:first-child {
  border-top: 1px solid var(--border-light);
}

.contact-entry dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.contact-entry dd {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact-action-link {
  font-weight: 600;
  color: var(--blue-primary);
}

.contact-action-link:hover {
  text-decoration: underline;
}

/* WhatsApp CTA Button: Rounded Pill, No Shadow, Gray Outline, Sexy Modern Minimal */
.contact-cta-wrapper {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.45rem;
  background-color: #ffffff;
  color: #111827 !important;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-whatsapp-cta:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
  transform: translateY(-1px);
  color: #111827 !important;
  box-shadow: none !important;
  text-decoration: none;
}

.whatsapp-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: #25D366; /* Authentic WhatsApp green on sleek gray outline */
}

/* ==========================================================================
   E. Minimal Corporate Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  padding-block: 3.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand .brand-text {
  font-size: 1.15rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.copyright-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Dedicated Product Detail View: Centered Pop Up Modal with Blurred Background
   ========================================================================== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.product-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.product-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-modal-popup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: auto; /* Absolutely guarantees true vertical and horizontal centering */
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal.is-open .product-modal-popup {
  transform: scale(1);
}

.modal-popup-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.modal-popup-close-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Modal Media Frame & Carousel */
.popup-media-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.popup-media-frame {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: 48vh;
  margin-inline: auto;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.popup-gallery-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
}

.popup-gallery-nav.is-visible {
  display: flex;
}

.popup-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.popup-arrow-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.popup-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.05em;
}

/* Modal Minimal Body */
.popup-body {
  display: flex;
  flex-direction: column;
}

.popup-product-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 0.65rem;
}

.popup-product-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.popup-action-row {
  margin-top: auto;
}

.btn-popup-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  background: #111827;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-popup-order:hover {
  background: var(--blue-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .editorial-grid,
  .section-what-we-do .editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .sidebar-image-wrap {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-entry {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-medium);
    padding: 1.75rem var(--gutter);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .carousel-actions-row .btn-view-all {
    display: none;
  }

  .mobile-view-all-wrap {
    display: block;
  }

  .mobile-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .contact-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
  .product-modal-drawer {
    max-width: 100%;
  }
}
