/* =====================================
   RESPONSIVE.CSS
   Volta Lithium Hub
===================================== */

/* =====================================
   LARGE LAPTOPS
===================================== */

@media (max-width: 1200px) {
  .container {
    width: min(100%, calc(100% - 40px));
  }

  .navbar {
    padding: 0 20px;
  }

  .hero {
    gap: 40px;
  }

  .about-wrapper {
    gap: 45px;
  }

  .products-hero-wrapper {
    gap: 45px;
  }
}

/* =====================================
   TABLETS
===================================== */

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
  }

  .hero-left p {
    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-right {
    order: -1;
  }

  .hero-image {
    width: 350px;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 500px;
    margin: auto;
  }

  .feature {
    justify-content: center;
    text-align: left;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .products-hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .products-content p {
    margin: auto;
    margin-bottom: 40px;
  }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  /* .navbar{
        height:75px;
    } */

  /* .logo img{
        height:48px;
    } */

  /* Navigation */

  /* .nav-links{
        display:none;
    } */

  /* .hamburger{
        display:flex;
        flex-direction:column;
        gap:5px;
        cursor:pointer;
    } */

  /* .hamburger span{
        width:26px;
        height:2px;
        background:#fff;
        border-radius:5px;
    } */

  /* ==========================
   MOBILE NAVIGATION
========================== */

  .navbar {
    height: 75px;
  }

  .logo img {
    height: 48px;
  }

  .hamburger {
    display: flex;

    flex-direction: column;

    justify-content: center;

    cursor: pointer;

    z-index: 1001;
  }

  .hamburger span {
    width: 28px;

    height: 3px;

    margin: 4px 0;

    background: #fff;

    border-radius: 50px;

    transition: 0.35s;
  }

  .nav-links {
    position: fixed;

    top: 75px;

    right: -100%;

    width: 300px;

    height: calc(100vh - 75px);

    background: rgba(5, 25, 55, 0.98);

    backdrop-filter: blur(20px);

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

    padding: 30px;

    transition: 0.35s ease;

    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links > li {
    width: 100%;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links > li > a {
    display: block;

    width: 100%;

    padding: 18px 0;
  }

  .dropdown-menu {
    position: static;

    opacity: 1;

    visibility: visible;

    transform: none;

    display: none;

    width: 100%;

    background: none;

    border: none;

    box-shadow: none;

    padding: 0 0 10px 15px;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 12px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-left h1 {
    font-size: 42px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 260px;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat:not(:last-child)::after {
    display: none;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 30px;
  }

  .products-content h1 {
    font-size: 42px;
  }

  .products-image img {
    width: 320px;
  }

  .category-card {
    padding: 30px;
  }

  .category-card img {
    width: 180px;
  }

  .category-card h3 {
    font-size: 24px;
  }
}

/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 576px) {
  .container {
    width: calc(100% - 24px);
  }

  .subtitle {
    font-size: 11px;
    letter-spacing: 1px;
    padding: 8px 14px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .hero-image {
    width: 260px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat {
    text-align: center;
  }

  .about-content h2 {
    font-size: 32px;
  }

  .feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature .icon {
    margin-bottom: 8px;
  }

  .products-content h1 {
    font-size: 34px;
  }

  .products-content p {
    font-size: 15px;
  }

  .products-image img {
    width: 250px;
  }

  .category-card {
    padding: 25px;
  }

  .chips {
    gap: 10px;
  }

  .chips span {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* =====================================
   EXTRA SMALL DEVICES
===================================== */

@media (max-width: 400px) {
  .hero-left h1 {
    font-size: 30px;
  }

  .products-content h1 {
    font-size: 30px;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    width: 100%;
  }

  .category-card h3 {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .popular-card {
    min-width: calc((100% - 30px) / 2);
  }
}

/* =====================================
   SMALL TABLETS
===================================== */

@media (max-width: 768px) {
  .popular-card {
    min-width: 100%;
  }

  .slider-btn {
    display: none;
  }
}
