/* =========================================
   MALLAK – Pigment Products | style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;1,400;1,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  overflow-x: hidden;
  /* background is driven by JS via CSS variable */
  background-color: var(--page-bg, #f5f5f5);
  transition: background-color 0.7s ease;
}

/* =============================================
   HEADER — unified new style
   ============================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 90px;
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: visible;
}
.header-container {
  width: 100%; max-width: 1600px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.header-left-group { display: flex; align-items: center; gap: 20px; }
.language-wrapper { position: relative; z-index: 1001; }
.lang-btn {
  border: 1px solid #ccc; background: white; color: #333;
  padding: 8px 12px; font-size: 13px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center;
  gap: 15px; min-width: 130px; justify-content: space-between;
  transition: all 0.2s; border-radius: 2px;
}
.lang-btn:hover { border-color: #999; }
.lang-btn::after { display: none !important; }
.lang-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff; z-index: 9999; width: 100%;
  border: 1px solid #ccc; border-top: none;
  flex-direction: column;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.language-wrapper:hover .lang-dropdown-menu,
.language-wrapper.open .lang-dropdown-menu { display: flex; }
.lang-option {
  padding: 8px 12px; font-size: 13px; color: #333;
  cursor: pointer; transition: background 0.2s;
  border-bottom: 1px solid #eee;
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: #f5f5f5; color: #0b4ea2; }
.logo img { height: 48px; width: auto; margin-left: 15px; }
nav { display: flex; align-items: center; gap: 30px; margin-left: 20px; }
nav a.nav-item-link {
  text-decoration: none; color: #333; font-size: 18px; font-weight: 600;
  position: relative; transition: color 0.3s ease; padding: 30px 0;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
}
nav a.nav-item-link i { font-size: 10px; color: #888; transition: color 0.3s; }
nav a.nav-item-link:hover { color: #0b4ea2; }
nav a.nav-item-link:hover i { color: #0b4ea2; }
nav a.nav-item-link::after {
  content: ""; position: absolute; left: 0; bottom: 20px;
  width: 0; height: 3px; background-color: #0b4ea2;
  transition: width 0.3s ease;
}
nav a.nav-item-link:hover::after { width: 100%; }
.mega-dropdown-parent { position: static; }
.mega-menu {
  position: fixed; top: 90px; left: 0; width: 100%;
  background: white; border-top: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 30px 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.15s ease; z-index: 1500;
}
.mega-dropdown-parent:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 0 40px;
}
.mega-item {
  padding: 20px 25px; border-radius: 8px; cursor: pointer;
  transition: all 0.2s; background-color: #fff;
  border: 1px solid #e5e7eb;
  display: flex; flex-direction: column; justify-content: center;
}
.mega-item h3 { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 5px; transition: color 0.2s; }
.mega-item p  { font-size: 14px; font-weight: 500; color: #444; line-height: 1.5; margin: 0; transition: color 0.2s; }
.mega-item:hover { background-color: #1d2939; border-color: #1d2939; transform: translateY(-2px); }
.mega-item:hover h3, .mega-item:hover p { color: #fff !important; }
.biz-grid { grid-template-columns: repeat(2, 1fr) !important; }
.biz-grid .mega-item { padding: 25px 30px; }
.header-right-group { display: flex; align-items: center; gap: 15px; }
.log-in-btn {
  background-color: #1d2939; color: white;
  padding: 10px 32px; border-radius: 50px; text-decoration: none;
  font-weight: 700; font-size: 14px; transition: all 0.3s ease;
}
.log-in-btn:hover { background-color: #0b4ea2; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11,78,162,0.3); }
.search-circle-btn {
  width: 40px; height: 40px; background-color: #1d2939;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 14px;
  cursor: pointer; transition: all 0.3s ease;
  text-decoration: none;   /* removes underline */

}
.search-circle-btn:hover { background-color: #0b4ea2; transform: scale(1.1); }

/* =============================================
   HERO
   ============================================= */
.hero-container { margin-top: 90px; }
.hero { position: relative; height: 320px; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; overflow: hidden; background: url('/static/img/orange.png') no-repeat center center; background-size: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; flex-direction: column; justify-content: center; padding-left: 60px; }
.hero-overlay h1 { color: #fff; font-size: 45px; font-weight: 700; margin-bottom: 15px; }
.hero-overlay p  { color: #fff; font-size: 18px; max-width: 500px; line-height: 1.4; }

/* =============================================
   TAB NAV
   ============================================= */
.tab-nav-outer {
  background: var(--nav-bg, rgba(255,255,255,0.93));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 60px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  position: relative;           /* anchors the dropdown */
  z-index: 900;                 /* below header (1000) but above page content */
  transition: background 0.7s ease, background-color 0.7s ease;
  /* CRITICAL: overflow must be visible so dropdown isn't clipped */
  overflow: visible;
}

.tab-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;          /* never clip the dropdown */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: #1d2939;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tab-btn:hover { background: #2d3f55; transform: translateY(-1px); }
.tab-btn.active { background: #1d2939; box-shadow: 0 0 0 3px rgba(29,41,57,0.28); }
.has-chevron { display: inline-flex; align-items: center; gap: 6px; }
.tab-arrow { font-size: 11px; }

/* Product Details dropdown */
.tab-sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  min-width: 185px;
  /* very high z-index — above everything including table and poem */
  z-index: 999999;
  overflow: visible;
  /* ensure clicks always land on this element */
  pointer-events: auto;
}
.tab-sub-menu.open { display: block; }
.tab-sub-item {
  display: block;
  padding: 14px 22px;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  /* ensure each item captures clicks */
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
.tab-sub-item:last-child { border-bottom: none; }
.tab-sub-item:hover { background: #f0f4ff; color: #1d2939; font-weight: 600; }
.tab-sub-item:active { background: #e0eaff; }
.tab-sub-item.active-filter { background: #eef2ff; color: #1d2939; font-weight: 700; }

/* =============================================
   MAIN CONTENT — full width matching tab nav
   ============================================= */
/* =============================================
   MAIN CONTENT — STRETCHED TO NAV BOUNDS
   ============================================= */
.main-content {
  padding: 36px 60px 60px; /* Matches the nav bar's 60px horizontal padding */
  position: relative;
  width: 100%;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Every tab section: Stretched width */
.tab-content > h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px; /* Removed 'auto' to allow full width */
  color: #1d2939;
  text-align: center; /* Aligns with the first nav button */
  max-width: 100%;  /* Stretches across the container */
}

.tab-content > p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin: 0 0 14px; /* Removed 'auto' */
  text-align: justify; /* Optional: This creates a clean "block" look on both sides */
  max-width: 100%;     /* Stretches across the container */
}

/* Optional: Allow forms and lists to stretch as well */
.tab-content > .downloads-list {
  max-width: 100%; 
  margin: 0;
}

.tab-content > .inquiry-form {
  max-width: 100%;
  margin: 0;
}

/* =============================================
   COLOUR PILL BUTTONS
   ============================================= */
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-pill {
  border: none;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.filter-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.13); }
.filter-pill.plain        { background: #dfe2e6; color: #444; }
.filter-pill.plain:hover  { background: #c8cdd3; }
.filter-pill.plain.active { background: #1d2939; color: #fff; }

.filter-pill.c-blue          { background: #cce0f5; color: #0d3c6e; }
.filter-pill.c-blue.active   { background: #1a6ebf; color: #fff; box-shadow: 0 0 0 4px rgba(26,110,191,0.28); }
.filter-pill.c-green         { background: #c8ecd1; color: #0d5c25; }
.filter-pill.c-green.active  { background: #1e9147; color: #fff; box-shadow: 0 0 0 4px rgba(30,145,71,0.28); }
.filter-pill.c-orange        { background: #fdddb7; color: #7a3200; }
.filter-pill.c-orange.active { background: #e07018; color: #fff; box-shadow: 0 0 0 4px rgba(224,112,24,0.28); }
.filter-pill.c-red           { background: #fac9c5; color: #7a1a14; }
.filter-pill.c-red.active    { background: #c0392b; color: #fff; box-shadow: 0 0 0 4px rgba(192,57,43,0.28); }
.filter-pill.c-violet        { background: #ddd0ee; color: #4a1a70; }
.filter-pill.c-violet.active { background: #7b2fa0; color: #fff; box-shadow: 0 0 0 4px rgba(123,47,160,0.28); }
.filter-pill.c-yellow        { background: #fdf0a0; color: #6b5000; }
.filter-pill.c-yellow.active { background: #c8a400; color: #fff; box-shadow: 0 0 0 4px rgba(200,164,0,0.28); }

/* =============================================
   PRODUCT DETAILS — SIDE-BY-SIDE LAYOUT
   ============================================= */
.pd-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* Table takes up 60% by default, expands to 100% when no poem visible */
.table-col {
  flex: 0 0 60%;
  min-width: 0;
  transition: flex-basis 0.4s ease;
}
.pd-layout.no-poem .table-col { flex-basis: 100%; }

/* Poem column: hidden by default, shown when colour selected */
.poem-col {
  flex: 0 0 38%;
  min-width: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.poem-col.visible { display: flex; }

/* =============================================
   TABLE — always white
   ============================================= */
.table-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 26px 20px;
  box-shadow: 0 3px 20px rgba(0,0,0,0.09);
}

.search-bar-wrap { margin-bottom: 14px; }
.search-input { width: 100%; padding: 10px 18px; border: 1.5px solid #ddd; border-radius: 999px; font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; background: #fff; }
.search-input:focus { border-color: #1d2939; }

.perpage-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: #555; }
.perpage-select { padding: 6px 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; cursor: pointer; outline: none; background: #fff; }
.perpage-select:focus { border-color: #1d2939; }

.product-table-wrap { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.product-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.product-table th { background: #f3f4f6; padding: 12px 14px; text-align: left; font-weight: 600; color: #333; border-bottom: 1px solid #e5e7eb; }
.product-table td { padding: 11px 14px; color: #555; border-bottom: 1px solid #f0f0f0; background: #fff; }
.product-table tr:last-child td { border-bottom: none; }
.product-table tr:hover td { background: #fafafa; }
.no-products td { text-align: center; color: #999; padding: 28px; background: #fff; }
.action-view { color: #1d2939; font-weight: 600; text-decoration: none; font-size: 13px; }
.action-view:hover { text-decoration: underline; }

.pagination-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 4px 0; }
.pg-btn { background: #fff; border: 1.5px solid #ddd; color: #333; padding: 6px 13px; border-radius: 8px; font-size: 13px; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.pg-btn:hover { background: #f0f0f0; }
.pg-btn.pg-active { background: #1d2939; color: #fff; border-color: #1d2939; font-weight: 600; }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =============================================
   POEM COLUMN CONTENTS
   ============================================= */

/* Music player bar */
.music-bar-wrap {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50px;
  padding: 10px 18px;
  backdrop-filter: blur(6px);
}
.music-inner { display: flex; align-items: center; gap: 12px; }
.music-label { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13px; color: var(--poem-dark, #4a3000); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-play-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--poem-dark, #4a3000);
  background: rgba(255,255,255,0.5);
  color: var(--poem-dark, #4a3000);
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.music-play-btn:hover { background: rgba(255,255,255,0.85); transform: scale(1.1); }
.music-track { flex: 2; height: 4px; background: rgba(0,0,0,0.12); border-radius: 2px; overflow: hidden; }
.music-fill { height: 100%; width: 0%; background: var(--poem-dark, #4a3000); border-radius: 2px; transition: width 0.6s linear; }

/* Poem card — parchment style, no wooden rods */
.poem-card {
  background: linear-gradient(160deg, #fdf8ef 0%, #f8f0d8 50%, #f2e9c0 100%);
  border-radius: 14px;
  border: 1.5px solid rgba(180,140,60,0.25);
  padding: 36px 40px 40px;
  position: relative;
  overflow: hidden;
  /* entrance animation */
  animation: poemUnroll 0.55s cubic-bezier(0.22,1,0.36,1) both;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 0 60px rgba(180,140,60,0.07);
  /* lined paper feel */
  background-image:
    repeating-linear-gradient(transparent, transparent 31px, rgba(160,120,40,0.1) 32px),
    linear-gradient(160deg, #fdf8ef 0%, #f8f0d8 50%, #f2e9c0 100%);
}

@keyframes poemUnroll {
  from { clip-path: inset(0 0 100% 0); opacity: 0.4; }
  to   { clip-path: inset(0 0 0% 0);   opacity: 1; }
}

/* S-curve wavy decorative SVG lines flanking the poem */
.poem-s-wave {
  position: absolute;
  top: 0; left: 8px;
  width: 36px; height: 100%;
  color: var(--poem-dark, #8b6820);
  pointer-events: none;
}
.poem-s-wave.right { left: auto; right: 8px; }

/* Poem title */
.poem-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--poem-dark, #5c3d10);
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
  padding: 0 30px;
}

/* Poem body */
.poem-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 2;
  text-align: center;
  color: var(--poem-text, #3d2800);
  padding: 0 20px;
}
.poem-para { margin-bottom: 20px; white-space: pre-line; }

/* word-by-word fade animation on load */
.poem-word {
  display: inline;
  opacity: 0;
  animation: wordFadeIn 0.25s ease forwards;
}
@keyframes wordFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   OTHER TAB SECTIONS
   ============================================= */
.downloads-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; max-width: 700px; margin-left: auto; margin-right: auto; }
.download-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid #e8e8e8; border-radius: 12px; background: rgba(255,255,255,0.85); }
.dl-icon { font-size: 22px; }
.download-item span:nth-child(2) { flex: 1; font-size: 14px; color: #333; }
.btn-download { background: #1d2939; color: #fff; border: none; padding: 8px 20px; border-radius: 999px; font-size: 13px; font-family: inherit; cursor: pointer; }
.btn-download:hover { background: #2d3f55; }

.inquiry-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin-left: auto; margin-right: auto; }
.form-row { display: flex; gap: 16px; }
.form-group { display: flex; flex-direction: column; flex: 1; gap: 6px; }
.form-group.full-width { width: 100%; }
.form-group label { font-size: 13px; font-weight: 600; color: #444; }
.form-group input, .form-group textarea { padding: 11px 16px; border: 1.5px solid #ddd; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; resize: vertical; background: #fff; }
.form-group input:focus, .form-group textarea:focus { border-color: #1d2939; }
.btn-submit { align-self: flex-start; background: #1d2939; color: #fff; border: none; padding: 12px 36px; border-radius: 999px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; }
.btn-submit:hover { background: #2d3f55; }

/* =============================================
   FOOTER — redesigned
   ============================================= */
footer {
  background: linear-gradient(180deg, #0b021a 0%, #000000 100%);
  color: #ffffff;
  padding: 70px 250px 30px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
  align-items: flex-start;
}

/* Col 1 — Brand */
.footer-brand { flex: 1.8; min-width: 260px; }
.footer-logo  { height: 55px; margin-bottom: 20px; }
.brand-desc   { font-size: 15px; color: #cccccc; line-height: 1.8; max-width: 320px; margin-bottom: 22px; }

/* Address */
.footer-address { display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.footer-address-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.7; }
.footer-address-item i { color: #00a8ff; font-size: 15px; margin-top: 3px; flex-shrink: 0; }
.footer-address-item span { color: #cccccc; }

/* Social icons */
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 16px; text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.06);
}
.social-icons a:hover { transform: translateY(-4px); border-color: transparent; }
.social-icons a:nth-child(1):hover { background: #1877F2; }
.social-icons a:nth-child(2):hover { background: #0A66C2; }
.social-icons a:nth-child(3):hover { background: #E4405F; }
.social-icons a:nth-child(4):hover { background: #FF0000; }

/* Cols 2, 3, 4 — Links */
.footer-links { flex: 1; min-width: 130px; }
.footer-links h4 {
  color: #00a8ff; font-size: 15px; font-weight: 700;
  margin-bottom: 20px; text-transform: uppercase;
  letter-spacing: 0.06em; position: relative; padding-bottom: 12px;
}
.footer-links h4::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: #00a8ff; border-radius: 2px;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 11px; }
.footer-links ul li a {
  color: #cccccc; text-decoration: none; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s ease;
}
.footer-links ul li a i { font-size: 9px; color: #00a8ff; transition: transform 0.25s ease; }
.footer-links ul li a:hover { color: #ffffff; padding-left: 4px; }
.footer-links ul li a:hover i { transform: translateX(3px); }

/* Col 5 — Enquire */
.footer-enquire-col { flex: 1.4; min-width: 200px; }
.footer-enquire-col h4 {
  color: #00a8ff; font-size: 15px; font-weight: 700;
  margin-bottom: 20px; text-transform: uppercase;
  letter-spacing: 0.06em; position: relative; padding-bottom: 12px;
}
.footer-enquire-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: #00a8ff; border-radius: 2px;
}
.footer-enquire-desc {
  font-size: 14px; color: #aaaaaa; line-height: 1.7; margin-bottom: 20px;
}
.enquire-bar {
  display: flex; align-items: center; gap: 10px;
  background: #1a1f2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  padding: 10px 16px;
  margin-bottom: 12px;
  width: 100%;
}
.enquire-bar i { color: #00a8ff; font-size: 15px; flex-shrink: 0; }
.enquire-bar input {
  border: none; outline: none;
  background: transparent; color: #ffffff;
  font-size: 14px; width: 100%;
}
.enquire-bar input::placeholder { color: #555; }
.enquire-btn {
  border: none; background: #ffffff; color: #000000;
  padding: 12px 24px; border-radius: 40px; cursor: pointer;
  font-size: 14px; font-weight: 700; width: 100%;
  transition: all 0.3s ease;
}
.enquire-btn:hover { background: #00a8ff; color: #fff; transform: scale(1.03); }

/* Divider */
.footer-divider {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

/* Bottom bar */
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.copyright { font-size: 14px; color: #777777; }
.footer-bottom-links { display: flex; align-items: center; gap: 10px; }
.footer-bottom-links a { font-size: 13px; color: #666; text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links span { color: #444; }

/* Floating buttons */
.floating-buttons { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; }
.whatsapp-float { width: 55px; height: 55px; border-radius: 50%; overflow: hidden; display: block; transition: transform 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.whatsapp-float img { width: 55px; height: 55px; object-fit: contain; }
.whatsapp-float:hover { transform: scale(1.1); }
.top-btn {
  width: 55px; height: 55px; border-radius: 50%; border: none;
  background: #1d2939; color: white; font-size: 18px;
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.top-btn:hover { background: #0b4ea2; transform: translateY(-3px); }

/* Responsive */
@media (max-width: 1400px) { footer { padding: 60px 80px 30px; } }
@media (max-width: 900px) {
  footer { padding: 50px 24px 24px; border-radius: 24px 24px 0 0; }
  .footer-top { gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-enquire-col { min-width: 100%; }
}

/* Hide Google Translate toolbar */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}


/* =============================================================
   SECTION IMAGE SLIDER
   ============================================================= */
.section-slider-wrap {
    margin-top: 40px;
}

.sec-slider-outer {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.sec-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25,1,0.5,1);
}

.sec-slide {
    min-width: 100%;
    cursor: pointer;
}

.sec-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.sec-slide-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 24px 32px;
}

.sec-slide-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 8px;
}

.sec-slide-card p {
    font-size: 14px;
    color: #667085;
    line-height: 1.6;
    margin: 0;
}

.sec-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.sec-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #1d2939;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-slider-btn:hover { background: #0b4ea2; transform: scale(1.1); }

.sec-slider-dots { display: flex; gap: 8px; }

.sec-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.sec-slider-dot.active {
    background: #1d2939;
    transform: scale(1.3);
}

/* Lightbox */
.sec-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.sec-lightbox.open { display: flex; }

.sec-lightbox-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sec-lightbox-box {
    position: relative;
    z-index: 2;
    max-width: 85vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sec-lightbox-box img {
    max-width: 85vw;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}

.sec-lightbox-caption {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.sec-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 38px;
    cursor: pointer;
    line-height: 1;
}

.sec-slider-empty {
    color: #aaa;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

/* =============================================================
   PRODUCT VIEWER MODAL  (#surfProductModal  /  .pv-*)
   Shared in style.css — available to all apps.

   ARCHITECTURE:
   • No <iframe> — uses PDF.js canvas rendering.
     This completely bypasses X-Frame-Options / CSP frame issues.
   • Auth is checked at DOWNLOAD time (TDS/MSDS buttons), not at
     modal-open time. The View button is open to everyone.
   ============================================================= */

/* ── Body lock: prevent background scroll when modal is open ── */
body.pv-modal-open {
  overflow: hidden;
}

/* ── Blur the page behind the modal for depth ─────────────────
   Only .main-content, .tab-nav-outer, .hero-container are blurred —
   the fixed header and footer sit at higher z-index anyway.
   pointer-events:none prevents accidental clicks on blurred content.
───────────────────────────────────────────────────────────────── */
body.pv-modal-open .main-content,
body.pv-modal-open .tab-nav-outer,
body.pv-modal-open .hero-container {
  filter: blur(3px);
  transition: filter 0.22s ease;
  pointer-events: none;
  user-select: none;
}

/* ── Modal overlay ────────────────────────────────────────────
   Full-screen fixed layer. Hidden until .open is added by JS.
   Uses ::before pseudo-element for the blurred backdrop so the
   box never competes with it in the stacking order.
───────────────────────────────────────────────────────────────── */
.pv-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9800;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Backdrop lives here as a pseudo — keeps box always on top */
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pv-modal.open {
  display: flex;
}

/* ── Backdrop div (kept in HTML for click-to-close, but visually
   transparent — the overlay colour is on .pv-modal itself above) ── */
.pv-backdrop {
  position: absolute;
  inset: 0;
  /* No background/blur here — .pv-modal handles that */
  cursor: pointer;
  z-index: 0;
}

/* ── Modal box ────────────────────────────────────────────────
   z-index: 1 lifts it above .pv-backdrop (z-index:0).
   Both share the same stacking context (.pv-modal) so this works
   reliably regardless of DOM order.
───────────────────────────────────────────────────────────────── */
.pv-box {
  position: relative;
  z-index: 1;                /* above .pv-backdrop (z-index:0) — box is always visible */
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  width: 100%;
  height: 88vh;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pvSlideIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pvSlideIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Header ───────────────────────────────────────────────────
   Product name left, × button right.
───────────────────────────────────────────────────────────────── */
.pv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.pv-title {
  font-size: 19px;
  font-weight: 700;
  color: #1d2939;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  padding-right: 14px;
}
.pv-close {
  width: 34px;
  height: 34px;
  border: none;
  background: #f4f4f4;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.pv-close:hover { background: #1d2939; color: #fff; }

/* ── Document bar ─────────────────────────────────────────────
   TDS and MSDS download buttons.
   Guests clicking them → login modal (no download).
   No file uploaded → visually disabled, flashes error on click.
───────────────────────────────────────────────────────────────── */
.pv-doc-bar {
  display: flex;
  gap: 10px;
  padding: 14px 26px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.pv-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #1d2939;
  background: #1d2939;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s, transform 0.14s, box-shadow 0.14s;
  white-space: nowrap;
  line-height: 1;
}
.pv-doc-btn i { font-size: 15px; flex-shrink: 0; }
.pv-doc-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 1px;
}
.pv-doc-btn:hover:not(.pv-doc-disabled):not(.pv-doc-error) {
  background: #0b4ea2;
  border-color: #0b4ea2;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 78, 162, 0.28);
}

/* Currently downloading / previewing */
.pv-doc-btn.pv-doc-active {
  background: #0b4ea2;
  border-color: #0b4ea2;
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.2);
}

/* No file uploaded for this doc type */
.pv-doc-btn.pv-doc-disabled {
  background: #f0f0f0;
  border-color: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pv-doc-btn.pv-doc-disabled i      { color: #ccc; }
.pv-doc-btn.pv-doc-disabled .pv-doc-label { color: #bbb; }

/* Error flash (2 s) when no file and user clicks */
.pv-doc-btn.pv-doc-error {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
  cursor: default;
  transform: none;
}

/* ── Meta chips ────────────────────────────────────────────── */
.pv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 26px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f6f8;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}
.pv-chip-label { color: #888; font-weight: 500; }
.pv-chip-value { color: #1d2939; font-weight: 700; }

/* ── Viewer wrap ──────────────────────────────────────────────
   flex:1 so it takes all remaining vertical space.
   overflow-y:auto so a tall PDF page scrolls inside the modal.
───────────────────────────────────────────────────────────────── */
.pv-viewer-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Loading spinner shown while PDF.js is fetching */
.pv-pdf-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f8f8f8;
  color: #888;
  font-size: 14px;
  z-index: 5;
}
.pv-pdf-loading i { font-size: 28px; color: #1d2939; }

/* Scrollable canvas wrapper */
.pv-pdf-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
}
.pv-pdf-wrap canvas {
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border-radius: 4px;
  background: #fff;
  max-width: 100%;
}

/* "No document" placeholder — no pdf_url on this product */
.pv-no-doc {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 32px;
  text-align: center;
  color: #aaa;
}
.pv-no-doc i    { font-size: 52px; color: #ddd; }
.pv-no-doc p    { font-size: 16px; color: #999; font-weight: 600; margin: 0; }
.pv-no-doc span { font-size: 13px; color: #bbb; max-width: 340px; line-height: 1.55; }

/* ── PDF page navigation bar ──────────────────────────────── */
.pv-pdf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 26px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  flex-shrink: 0;
}
.pv-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pv-nav-btn:hover:not(:disabled) { background: #f0f0f0; border-color: #bbb; }
.pv-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pv-page-info { font-size: 13px; color: #666; min-width: 100px; text-align: center; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 680px) {
  .pv-modal { padding: 0; align-items: flex-end; }
  .pv-box {
    max-height: 95vh;
    border-radius: 18px 18px 0 0;
    align-self: flex-end;
  }
  .pv-header  { padding: 16px 18px 12px; }
  .pv-doc-bar { padding: 10px 18px; gap: 8px; }
  .pv-meta    { padding: 10px 18px; }
  .pv-doc-label { display: none; }       /* save space on small screens */
  .pv-pdf-wrap  { padding: 8px; }
  .pv-pdf-nav   { padding: 8px 18px; gap: 10px; }
}