* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: normal;
    background: #fff;
    color: #000;
    padding-top: 80px;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: 250px;
}

.sidebar h3 {
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 20px;
}

.sidebar ul li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
}

.sidebar ul li:hover {
    color: #f15a24;
}

.main-content {
    flex: 1;
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-toggle button {
    border: none;
    background: #f2f2f2;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
}

.view-toggle button.active {
    background: #000;
    color: #fff;
}

#productContainer {
    display: grid;
    gap: 20px;
}

.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.list-view {
    grid-template-columns: 1fr;
}


.product-card {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 18px rgba(241, 90, 36, 0.18);
    transform: translateY(-6px) scale(1.03);
    border-color: #f15a24;
}

.sidebar a {
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: auto;
}

.grid-view .product-desc {
    display: none;
}

.list-view .product-desc {
    display: block;
}

.list-view .product-card img {
    width: 140px;

}

.product-card h4 {
    margin-top: 8px;
    font-size: 13px;
}

.product-card p {
    font-size: 14px;
    margin-top: 4px;
}







/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    padding: 05px 30px;
    flex-wrap: wrap;
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* Logo */
.logo {
    margin-right: 60px;
    margin-left: 10px;
    margin-top: 15px;
}
img {
    height: 70px;
}

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    font-size: 22px
}
.nav-links li a {
    color: black;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.5s ease;
}
.nav-links li a:hover {
    color: rgb(253, 87, 27);
}
.nav-links li .button {
    background-color: #ff6600;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    transition: color 0.5s ease;
}
.nav-links li .button:hover {
    background-color: #000;
    color: white;
}

/* Hamburger menu (hidden on desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}
.menu-toggle span {
    background: black;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
}

.nox {
    color: #aaa;
}
.nox:hover {
    color: #21D625;
}

/* Base dropdown */
.nav-links .dropdown {
  position: relative;
}
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 999;
}
/* Show on hover (desktop) */
.nav-links .dropdown:hover > .dropdown-menu {
  display: block;
}
.nav-links .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links .dropdown-menu li a:hover {
  background: #f5f5f5;
}
.nav-links .dropdown-menu .dropdown {
  position: relative;
}
.nav-links .dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 1px;
  display: none;
}
.nav-links .dropdown-menu .dropdown:hover > .dropdown-menu {
  display: block;
}
.nav-links .dropdown > a:after {
  content: "";
}

/* --- MOBILE ONLY --- */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: #fff;
    width: 100%;
    border-top: 1px solid #ddd;
  }
  .nav-links a {
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    transition: background 0.3s ease;
  }
  .nav-links a:hover { background: #f5f5f5; }

  .nav-links .dropdown { position: static; }
  .nav-links .dropdown-menu {
    display: block;
    position: static;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 100%;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
    background: #fafafa;
    border-left: 3px solid #ff6600;
  }

  /* Open dropdown when parent is focused */
  .nav-links .dropdown:focus-within > .dropdown-menu,
  .nav-links .dropdown-menu .dropdown:focus-within > .dropdown-menu {
    max-height: 600px;
    opacity: 1;
  }

  /* --- FIRST TAP = open, SECOND TAP = follow link --- */
  .nav-links .dropdown > a {
    position: relative;
    z-index: 1;
  }
  .nav-links .dropdown > a::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
  }
  .nav-links .dropdown:focus-within > a::after {
    display: none; /* allows second tap to follow link */
  }

  /* Arrow indicator */
  .nav-links .dropdown > a::before {
    content: "▸";
    float: right;
    transition: transform .3s ease;
    margin-right: 8px;
  }
  .nav-links .dropdown:focus-within > a::before {
    transform: rotate(90deg);
  }

  /* Nested indentation */
  .nav-links .dropdown-menu .dropdown-menu {
    margin-left: 15px;
    border-left: 2px solid #ddd;
  }
}
/* First-level submenu */
.nav-links .dropdown-menu li a {
  font-size: 16px;   /* smaller than main menu (22px) */
}

/* Nested submenu (third level and deeper) */
.nav-links .dropdown-menu .dropdown-menu li a {
  font-size: 14px;   /* even smaller for deeper items */
}
/* Very small phones (≤ 480px) */
@media (max-width: 480px) {
  .nav-links a {
    font-size: 14px;
    padding: 10px 12px;
  }
  .nav-links .dropdown-menu li a {
    font-size: 13px;
  }
  nav .logo{
    width: 100px;
  }
}






.hero-section {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/SAM_all-product_header_2_1500x.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-a {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/fracture.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-b {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/Respiratory_Management_1024x1024.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-c {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/XT_Main_Banner_2_1500x.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-d {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/pelvic.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-e {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/products.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-f {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/softshell.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-g {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/splint.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-h {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/xt.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-i {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/fracture.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-j {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/fracture.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section-k {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/fracture.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-section-l {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/medresq.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-section-m {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/MEDKIT.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-section-n {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/packs.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-section-o {
    position: relative;
    width: 100%;
    height: 450px;
    background: url('./assets/supp.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.overlay {
    background: rgba(0, 0, 0, 0.3);
    /* transparent dark overlay */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 50px;
}

#hero-section-h1 {
    color: white;

    font-size: 42px;
    font-weight: bold;
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 40px;
}





/* FOOTER */
footer {
    background: linear-gradient(135deg, #000, #111);
    color: #fff;
    padding: 60px 40px 30px;
    font-family: 'Poppins', sans-serif;
}

.footer-top {
    display: grid;
    grid-template-columns: 180px 150px 250px 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 150px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-heading {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #ff7f00;
    margin-top: 8px;
    border-radius: 1px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #ccc;
    transition: color 0.3s, transform 0.3s;
}

.footer-list a:hover {
    color: #ff7f00;
    transform: translateX(5px);
}

.contact strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact p {
    margin: 5px 0;
    color: #bbb;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #ff7f00;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 15px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    transition: 0.7s ease color;
}

.footer-bottom a.nox {
    color: #aaa;
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a.nox:hover {
    color: #1eff00;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-heading {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .footer-list a {
        font-size: 15px;
    }

    .contact p {
        font-size: 14px;
    }

    .social-links a {
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 10px;
    }
    
}

@media (max-width: 500px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-logo img {
        width: 100px;
        margin-bottom: 20px;
    }

    .footer-heading {
        font-size: 16px;
    }

    .footer-list a {
        font-size: 14px;
    }

    .social-links a {
        font-size: 14px;
    }
}
/* Mobile layout: sidebar on top & product grid */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        margin-bottom: 20px;
    }

    .main-content {
        width: 100%;
    }

    /* Product grid: 2 per row */
    #productContainer.grid-view {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /* Override min-width for grid items */
    #productContainer.grid-view .product-card {
        min-width: 0 !important;
    }

    .product-card img {
        height: auto;
    }

    .product-card h4 {
        font-size: 14px;
    }

    .product-card p {
        font-size: 13px;
    }
}
footer {
  background: linear-gradient(135deg, #000, #111);
  color: #fff;
  padding: 60px 40px 30px;
  font-family: 'Poppins', sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: 180px 150px 250px 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 250px;
  transition: transform 0.3s ease;
  margin-right: 50px;
}
.footer-logo img:hover {
  transform: scale(1.1);
}

.footer-heading {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
}
.footer-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #ff7f00;
  margin-top: 8px;
  border-radius: 1px;
}
.footer-links{
    margin-left: 100px;
}
.footer-list {
  list-style: none;
  padding: 0;
}
.footer-list li {
  margin-bottom: 12px;
}
.footer-list a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #ccc;
  transition: color 0.3s, transform 0.3s;
}
.footer-list a:hover {
  color: #ff7f00;
  transform: translateX(5px);
}
.contact{
    margin-left: 50px;
}

.contact strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}
.contact p {
  margin: 5px 0;
  color: #bbb;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
}
.social-links a:hover {
  color: #ff7f00;
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 15px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  transition: 0.7s ease color;
}

.footer-bottom a.nox {
  color: #aaa;
  font-weight: 600;
  text-decoration: none;
}
.footer-bottom a.nox:hover {
  color: #1eff00;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-logo img { width: 220px; }
  .footer-heading { font-size: 18px; margin-bottom: 12px; }
  .footer-list a { font-size: 15px; }
  .contact p { font-size: 14px; }
  .social-links a { font-size: 16px; }
  .footer-bottom { font-size: 10px; }
  .contact{
    margin-left: 0px;
  }
  .footer-links{
    margin-left: 0px;
  }
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-logo img { width: 200px; margin-bottom: 20px; }
  .footer-heading { font-size: 16px; }
  .footer-list a { font-size: 14px; }
  .social-links a { font-size: 14px; }
  .contact{
    margin-left: 0px;
  }
  .footer-links{
    margin-left: 0px;
  }
}
/* Hidden state */
.footer-top > div,
.footer-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* Visible state */
.footer-top > div.footer-visible,
.footer-bottom.footer-visible {
  opacity: 1;
  transform: translateY(0);
}


