
/* =========================================
   RB TECH SOLUTION
   CCTV & SECURITY SYSTEMS WEBSITE
========================================= */

:root {
  --green: #08a045;
  --green-dark: #075b30;
  --green-light: #e9f8ef;
  --dark: #101a18;
  --dark-2: #17231f;
  --text: #26332e;
  --muted: #6c7772;
  --white: #ffffff;
  --light: #f5f8f6;
  --border: #e1e9e4;
  --shadow: 0 8px 28px rgba(0, 0, 0, .09);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

section {
  padding: 75px 6%;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  color: var(--dark);
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 65px;
  height: 4px;
  border-radius: 5px;
  background: var(--green);
  margin: 18px auto 0;
}

/* =========================================
   TOP HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.top-strip {
  min-height: 35px;
  padding: 6px 6%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12px;
}

.top-strip a:hover {
  color: #7be5a7;
}

.header-inner {
  min-height: 82px;
  padding: 10px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand h1,
.brand strong {
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1.2;
}

.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* =========================================
   MAIN NAVIGATION
========================================= */

#mainNav {
  display: flex;
  align-items: center;
  gap: 2px;
}

#mainNav > a,
#mainNav > .nav-dropdown > a {
  display: flex;
  align-items: center;
  padding: 13px 11px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: .2s;
}

#mainNav > a:hover,
#mainNav > .nav-dropdown > a:hover {
  color: var(--green);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  padding: 12px;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
  display: none;
  z-index: 1100;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  border-radius: 6px;
}

.dropdown-menu a:hover {
  color: var(--green-dark);
  background: var(--green-light);
}

/* Mega menu */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  padding: 28px;
  background: var(--white);
  border-top: 3px solid var(--green);
  box-shadow: var(--shadow);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  z-index: 1100;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  display: grid;
}

.mega-menu h3 {
  color: var(--green-dark);
  font-size: 15px;
  margin-bottom: 10px;
}

.mega-menu a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text);
}

.mega-menu a:hover {
  color: var(--green);
  padding-left: 4px;
}

#menuToggle {
  display: none;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 24px;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-section {
  min-height: 480px;
  padding: 65px 6%;
  background:
    radial-gradient(circle at 85% 40%, #d8f4e3 0, transparent 35%),
    linear-gradient(110deg, #f5faf7, #e8f5ed);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 45px;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
}

.hero-text .hero-tag,
.hero-tag {
  display: inline-block;
  color: var(--green-dark);
  background: #d9f4e3;
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(34px, 4.2vw, 57px);
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-text p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 27px;
}

.hero-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.hero-buttons a,
.hero-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 12px 23px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid var(--green);
}

.hero-buttons a:first-child,
.hero-buttons button:first-child {
  color: white;
  background: var(--green);
}

.hero-buttons a:last-child,
.hero-buttons button:last-child {
  color: var(--green-dark);
  background: white;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-box {
  position: relative;
  width: 100%;
  max-width: 490px;
  height: 310px;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 55px rgba(0, 80, 35, .14);
}

.hero-image-box > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-image-box > img.active {
  opacity: 1;
}

.hero-image-box .hero-image-label {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  z-index: 5;
  padding: 9px 13px;
  color: white;
  background: rgba(9, 42, 25, .82);
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
}

/* =========================================
   TRUST STRIP
========================================= */

.trust-strip {
  padding: 25px 6%;
  background: var(--dark);
  color: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-grid > div {
  padding: 10px;
}

.trust-grid h3 {
  color: #72e6a0;
  font-size: 20px;
  margin-bottom: 4px;
}

.trust-grid p {
  font-size: 13px;
  color: #d5e0da;
}

/* =========================================
   WE OFFER
========================================= */

#about {
  background: white;
}

.offer-content {
  max-width: 1200px;
  margin: auto;
}

.offer-content > p {
  max-width: 850px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--muted);
}

.offer-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.offer-category-card {
  padding: 0 0 18px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  transition: .25s;
}

.offer-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.offer-category-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 15px;
  background: var(--light);
}

.offer-category-card h3 {
  padding: 13px 17px 3px;
  color: var(--dark);
  font-size: 17px;
}

.offer-category-card span {
  display: block;
  padding: 0 17px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.offer-show-all {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 13px 28px;
  color: white;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

/* =========================================
   TRENDING PRODUCTS
========================================= */

#trending {
  background: var(--light);
}

.trending-carousel-wrapper {
  position: relative;
}

#trendingGrid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 8px 3px 20px;
  scroll-snap-type: x mandatory;
}

#trendingGrid .product-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
}

.trending-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.trending-carousel-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 18px;
}

.trending-carousel-controls button:hover {
  background: var(--green-dark);
}

/* =========================================
   PRODUCT CATEGORIES
========================================= */

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

.category-card {
  min-height: 125px;
  padding: 20px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: .25s;
  cursor: pointer;
}

.category-card:hover {
  background: var(--green-light);
  border-color: var(--green);
  transform: translateY(-4px);
}

.category-card img {
  width: 55px;
  height: 55px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.category-card h3 {
  font-size: 14px;
  color: var(--dark);
}

/* =========================================
   OUR PRODUCTS
========================================= */

#products {
  background: var(--light);
}

.product-toolbar {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 30px;
  max-width: 750px;
}

#searchInput,
#categoryFilter {
  min-height: 47px;
  padding: 10px 14px;
  border: 1px solid #d7e1da;
  border-radius: 7px;
  background: white;
  outline: none;
}

#searchInput {
  flex: 1;
  min-width: 150px;
}

#categoryFilter {
  min-width: 190px;
}

#searchInput:focus,
#categoryFilter:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 160, 69, .1);
}

#productGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .035);
  transition: .25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #b9e7c9;
}

.product-image {
  height: 205px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfdfb;
}

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

.product-info {
  padding: 17px;
}

.product-category {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 7px 0;
  color: var(--dark);
  font-size: 17px;
  line-height: 1.35;
}

.product-model {
  color: var(--muted);
  font-size: 12px;
  min-height: 20px;
}

.product-price {
  margin-top: 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.product-actions button {
  flex: 1;
  padding: 10px 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--green);
}

.view-details-btn {
  color: var(--green-dark);
  background: white;
}

.enquire-btn {
  color: white;
  background: var(--green);
}

.view-details-btn:hover {
  background: var(--green-light);
}

.enquire-btn:hover {
  background: var(--green-dark);
}

.no-products {
  grid-column: 1 / -1;
  padding: 35px;
  text-align: center;
  color: var(--muted);
}

/* =========================================
   SOLUTIONS
========================================= */

#solutions {
  background: white;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
}

.solution-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  transition: .25s;
}

.solution-card:hover {
  background: var(--green-light);
  border-color: var(--green);
  transform: translateY(-4px);
}

.solution-card h3 {
  font-size: 15px;
  color: var(--dark);
}

/* =========================================
   MARKETING / PRINT & PRESS
========================================= */

#marketing {
  background: var(--light);
}

.marketing-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.marketing-card,
.news-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: .25s;
}

.marketing-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.marketing-card img,
.news-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.marketing-card h3,
.news-card h3 {
  padding: 17px;
  font-size: 17px;
  color: var(--dark);
}

/* =========================================
   SUPPORT
========================================= */

#support {
  background: white;
}

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

.support-card {
  padding: 27px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: .25s;
}

.support-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.support-card h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 18px;
}

.support-card p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   TRAINING / PARTNER / CAREERS
========================================= */

#training,
#partner,
#careers {
  background: var(--light);
  text-align: center;
}

#training p,
#partner p,
#careers p {
  max-width: 750px;
  margin: 0 auto 20px;
  color: var(--muted);
}

#training a,
#partner a,
#careers a {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  color: white;
  background: var(--green);
  border-radius: 6px;
  font-weight: 700;
}

/* =========================================
   CONTACT
========================================= */

#contact {
  background: white;
}

.contact-container {
  max-width: 850px;
  margin: auto;
  padding: 35px;
  background: var(--light);
  border-radius: 14px;
}

#contact input,
#contact select,
#contact textarea {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 14px;
  border: 1px solid #d8e2db;
  border-radius: 7px;
  background: white;
  outline: none;
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus {
  border-color: var(--green);
}

#contact textarea {
  min-height: 130px;
  resize: vertical;
}

#enquiryWhatsApp {
  padding: 14px 25px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--green);
  font-weight: 700;
}

#enquiryWhatsApp:hover {
  background: var(--green-dark);
}

/* =========================================
   NEWSLETTER
========================================= */

.newsletter-section {
  padding: 45px 6%;
  background: var(--green-dark);
  color: white;
  text-align: center;
}

.newsletter-section h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.newsletter-section p {
  margin-bottom: 18px;
  color: #d6eee0;
}

.newsletter-section a {
  display: inline-block;
  padding: 12px 25px;
  background: white;
  color: var(--green-dark);
  border-radius: 6px;
  font-weight: 700;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding: 55px 6% 20px;
  background: var(--dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 35px;
  margin-bottom: 35px;
}

.site-footer h3 {
  color: #78e5a1;
  font-size: 17px;
  margin-bottom: 15px;
}

.site-footer p {
  color: #c4d0c9;
  font-size: 13px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d5ded8;
  font-size: 13px;
}

.site-footer a:hover {
  color: #7be5a7;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #34423b;
  text-align: center;
  color: #c4d0c9;
  font-size: 12px;
}

/* =========================================
   PRODUCT DETAILS MODAL
========================================= */

#productModal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
}

#productModal.active {
  display: flex;
}

#modalContent {
  position: relative;
  width: min(850px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 14px;
  background: white;
}

#modalClose {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-size: 22px;
  z-index: 2;
}

.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.modal-product-image {
  min-height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--light);
  border-radius: 10px;
}

.modal-product-image img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 15px;
}

.modal-product-info > span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.modal-product-info h2 {
  margin: 10px 0 15px;
  color: var(--dark);
}

.modal-product-info p {
  margin: 10px 0;
  color: var(--muted);
}

#modalEnquireBtn {
  margin-top: 15px;
  padding: 13px 22px;
  color: white;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
========================================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: #20c767;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
  font-size: 27px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* =========================================
   BUTTONS AND LINKS
========================================= */

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(8, 160, 69, .35);
  outline-offset: 2px;
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1100px) {
  .header-inner {
    padding-left: 4%;
    padding-right: 4%;
  }

  #mainNav > a,
  #mainNav > .nav-dropdown > a {
    padding: 12px 7px;
    font-size: 12px;
  }

  #productGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid,
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 768px) {
  section {
    padding: 55px 5%;
  }

  .top-strip {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 11px;
  }

  .header-inner {
    min-height: 70px;
    padding: 8px 5%;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand h1,
  .brand strong {
    font-size: 18px;
  }

  #menuToggle {
    display: block;
    flex-shrink: 0;
  }

  #mainNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 12px 5% 20px;
    background: white;
    box-shadow: var(--shadow);
    display: none;
    align-items: stretch;
    flex-direction: column;
  }

  #mainNav.active {
    display: flex;
  }

  #mainNav > a,
  #mainNav > .nav-dropdown > a {
    width: 100%;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu,
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border-top: 0;
    border-left: 3px solid var(--green);
    border-radius: 0;
    padding: 8px 12px;
    display: none;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:hover .mega-menu {
    display: none;
  }

  .nav-dropdown:focus-within .dropdown-menu,
  .nav-dropdown:focus-within .mega-menu {
    display: block;
  }

  .mega-menu {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-section {
    min-height: auto;
    padding: 48px 5%;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-box {
    height: 245px;
    max-width: 430px;
  }

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

  .section-heading h2 {
    font-size: 27px;
  }

  .offer-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .offer-category-card img {
    height: 130px;
  }

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

  #productGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 155px;
    padding: 10px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 14px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-toolbar {
    flex-direction: column;
  }

  #searchInput,
  #categoryFilter {
    width: 100%;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .modal-product-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #modalContent {
    padding: 22px 17px;
  }

  .modal-product-image {
    min-height: 190px;
  }

  .modal-product-image img {
    height: 190px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {
  .brand h1,
  .brand strong {
    font-size: 16px;
  }

  .brand span {
    font-size: 9px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-image-box {
    height: 205px;
  }

  .offer-category-grid {
    grid-template-columns: 1fr 1fr;
  }

  #productGrid {
    grid-template-columns: 1fr 1fr;
  }

  .product-image {
    height: 125px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-actions button {
    font-size: 11px;
    padding: 9px 5px;
  }

  .marketing-grid,
  .news-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-container {
    padding: 20px 14px;
  }
}

/* NEW badge on Trending Product Images */

#trendingGrid .product-image {
  position: relative;
}

.new-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 5px 13px;
  background: #e52323;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
}
/* =========================================
   COMPLETE PRODUCT DETAILS PAGE
========================================= */

#productModal {
  padding: 12px;
  align-items: center;
}

#modalContent {
  width: min(1100px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: 30px;
  scroll-behavior: smooth;
  background: #ffffff;
}

.product-detail-page {
  width: 100%;
  color: #26332e;
}

/* Navigation links */

.product-detail-navigation {
  position: sticky;
  top: -30px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 10px;
  margin: -30px -30px 25px;
  background: #ffffff;
  border-bottom: 1px solid #e1e9e4;
}

.product-detail-navigation a {
  display: inline-block;
  padding: 10px 17px;
  color: #075b30;
  background: #e9f8ef;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-navigation a:hover {
  color: #ffffff;
  background: #08a045;
}

/* Product details */

.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 35px;
}

.modal-product-image {
  min-height: 300px;
  background: #f5f8f6;
  border-radius: 10px;
}

.modal-product-image img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  padding: 20px;
}

.modal-product-info h2 {
  margin: 10px 0 15px;
  font-size: 26px;
  color: #101a18;
}

.modal-product-info p {
  margin: 10px 0;
  line-height: 1.7;
}

.product-features {
  margin-top: 20px;
}

.product-features h3 {
  margin-bottom: 10px;
  color: #075b30;
}

.product-features ul {
  padding-left: 22px;
}

.product-features li {
  margin-bottom: 7px;
}

/* Specification */

#modalContent .product-specifications {
  display: block;
  width: 100%;
  padding: 30px 0;
  margin: 25px 0;
  background: #ffffff;
  border-top: 2px solid #e1e9e4;
  scroll-margin-top: 65px;
}

.product-specifications h2 {
  margin-bottom: 20px;
  color: #101a18;
  font-size: 26px;
}

.specification-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.specification-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specification-table th,
.specification-table td {
  padding: 13px 15px;
  border: 1px solid #e1e9e4;
  text-align: left;
  vertical-align: top;
}

.specification-table th {
  width: 32%;
  color: #075b30;
  background: #f0f8f3;
  font-weight: 700;
}

.specification-table td {
  color: #26332e;
  background: #ffffff;
  line-height: 1.6;
}

.specification-table tr:nth-child(even) td {
  background: #f9fbf9;
}

.specification-empty {
  padding: 18px;
  background: #fff8e6;
  border: 1px solid #f0dfae;
  border-radius: 6px;
  color: #795b12;
}

/* Request for Information */

#modalContent .rfi-section {
  display: block;
  width: 100%;
  padding: 30px 0;
  margin-top: 25px;
  border-top: 2px solid #e1e9e4;
  background: #ffffff;
  scroll-margin-top: 65px;
}

.rfi-section h2 {
  margin-bottom: 10px;
  color: #101a18;
  font-size: 26px;
}

.rfi-required-note {
  margin-bottom: 22px;
  color: #6c7772;
  font-size: 13px;
}

#rfiForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#rfiForm .rfi-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

#rfiForm .rfi-form-group label {
  color: #26332e;
  font-size: 14px;
  font-weight: 700;
}

#rfiForm input:not([type="checkbox"]),
#rfiForm select,
#rfiForm textarea {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #d5dfd8;
  border-radius: 6px;
  background: #ffffff;
  color: #26332e;
  outline: none;
}

#rfiForm textarea {
  min-height: 120px;
  resize: vertical;
}

#rfiForm input:focus,
#rfiForm select:focus,
#rfiForm textarea:focus {
  border-color: #08a045;
  box-shadow: 0 0 0 3px rgba(8, 160, 69, .10);
}

/* Message full width */

#rfiForm .rfi-form-group:has(#rfiMessage),
#rfiForm .rfi-captcha-group,
#rfiForm .rfi-consent,
#rfiForm #rfiSubmitBtn,
#rfiForm .rfi-status {
  grid-column: 1 / -1;
}

/* Captcha */

.rfi-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.rfi-captcha-question {
  min-width: 110px;
  padding: 11px 18px;
  color: #075b30;
  background: #e9f8ef;
  border: 1px dashed #08a045;
  border-radius: 6px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
}

.rfi-captcha-refresh {
  padding: 10px 14px;
  border: 1px solid #08a045;
  border-radius: 6px;
  color: #075b30;
  background: #ffffff;
  font-weight: 700;
}

/* Privacy Policy */

#rfiForm .rfi-consent {
  padding: 15px;
  background: #f5f8f6;
  border: 1px solid #e1e9e4;
  border-radius: 7px;
}

#rfiForm .rfi-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

#rfiForm .rfi-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
}

#rfiForm .rfi-consent a {
  color: #087f3c;
  text-decoration: underline;
  font-weight: 700;
}

/* Submit */

#rfiForm #rfiSubmitBtn {
  min-height: 48px;
  padding: 12px 25px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #08a045;
  font-weight: 700;
  cursor: pointer;
}

#rfiForm #rfiSubmitBtn:hover {
  background: #075b30;
}

#rfiForm #rfiSubmitBtn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

#rfiForm .rfi-status {
  min-height: 20px;
  font-size: 14px;
}

/* Additional note */

.product-additional-note {
  padding: 18px;
  margin: 20px 0;
  background: #f5f8f6;
  border-radius: 7px;
}

.product-additional-note h3 {
  margin-bottom: 8px;
  color: #075b30;
}

/* Mobile */

@media (max-width: 650px) {
  #productModal {
    padding: 5px;
  }

  #modalContent {
    max-height: 96vh;
    padding: 18px 14px;
  }

  .product-detail-navigation {
    top: -18px;
    margin: -18px -14px 20px;
    padding: 12px;
    gap: 7px;
  }

  .product-detail-navigation a {
    padding: 9px 11px;
    font-size: 12px;
  }

  .modal-product-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .modal-product-image,
  .modal-product-image img {
    min-height: 190px;
    height: 190px;
  }

  #rfiForm {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #rfiForm .rfi-form-group:has(#rfiMessage),
  #rfiForm .rfi-captcha-group,
  #rfiForm .rfi-consent,
  #rfiForm #rfiSubmitBtn,
  #rfiForm .rfi-status {
    grid-column: 1;
  }

  .product-specifications h2,
  .rfi-section h2 {
    font-size: 22px;
  }

  .specification-table th,
  .specification-table td {
    padding: 10px;
    font-size: 12px;
  }

  .specification-table th {
    width: 38%;
  }
}
/* =========================================
   PRODUCT DETAILS - HORIZONTAL TABS
========================================= */

.product-detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0;
  margin: 30px 0 0;
  border-bottom: 2px solid #087f3c;
  background: #f4f7f5;
}

.product-detail-tab {
  border: none;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #333;
  padding: 17px 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
}

.product-detail-tab:hover {
  color: #087f3c;
  background: #eaf5ee;
}

.product-detail-tab.active {
  color: #087f3c;
  border-bottom-color: #087f3c;
  background: #ffffff;
}

.detail-tab-panel {
  width: 100%;
  padding-top: 20px;
}

.detail-tab-panel[hidden] {
  display: none !important;
}

/* Specification table */

.specification-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.specification-table {
  width: 100%;
  border-collapse: collapse;
}

.specification-table th,
.specification-table td {
  padding: 13px 15px;
  border: 1px solid #dddddd;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.specification-table th {
  width: 30%;
  background: #f3f6f4;
  color: #222;
  font-weight: 700;
}

.specification-table td {
  color: #333;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Mobile responsive */

@media (max-width: 600px) {

  .product-detail-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail-tab {
    padding: 13px 6px;
    font-size: 13px;
  }

  .specification-table th,
  .specification-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .specification-table th {
    width: 38%;
  }

}

.marketing-grid,
.news-grid {
  display: block !important;
  width: 100%;
}

.marketing-slider {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 48px;
}

.marketing-slider-viewport {
  width: 100%;
  overflow: hidden;
}

.marketing-slider-track {
  display: flex;
  width: max-content;
  align-items: stretch;
  gap: 0;
  will-change: transform;
}

.marketing-slider-group {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  gap: 20px;
  padding-right: 20px;
  align-items: stretch;
}

.marketing-slider-group .marketing-item {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  box-sizing: border-box;
}

.marketing-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #08a045;
  color: white;
  font-size: 19px;
  cursor: pointer;
}

.marketing-left {
  left: 3px;
}

.marketing-right {
  right: 3px;
}

@media (max-width: 600px) {
  .marketing-slider {
    padding: 10px 38px;
  }

  .marketing-slider-group .marketing-item {
    flex: 0 0 245px;
    width: 245px;
    min-width: 245px;
    max-width: 245px;
  }
}
/* PRODUCTS DROPDOWN TEXT - BLACK */
.dropdown-menu h3,
.dropdown-menu h4,
.dropdown-menu a,
.dropdown-menu a strong,
.dropdown-menu a b,
.mega-menu h3,
.mega-menu h4,
.mega-menu a,
.mega-menu a strong,
.mega-menu a b {
  color: #000000 !important;
}

/* DROPDOWN HOVER */
.dropdown-menu a:hover,
.mega-menu a:hover {
  color: #08a045 !important;
}
.marketing-gallery-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.marketing-gallery-viewport {
  width: 100%;
  overflow: hidden;
}

.marketing-gallery-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marketingGalleryMove
    var(--gallery-duration, 20s) linear infinite;
  will-change: transform;
}

.marketing-gallery-group {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding-right: 20px;
}

.marketing-gallery-group .marketing-item {
  flex-shrink: 0;
  min-width: 0;
}

@keyframes marketingGalleryMove {
  from {
    transform: translateX(-50%);
  }
  
  to {
    transform: translateX(0);
  }
}
