@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

header.sticky { position: fixed; top: 0; width: 100%; z-index: 999; background: #fff; }

.back-to-top { position: fixed; bottom: 20px; right: 20px; display: none; padding: 10px; font-size: 18px; cursor: pointer; }

body.dark-mode { background: #111; color: #fff; }
body.dark-mode header { background: #222; }
body.dark-mode .product-card { background: #222; color: #fff; }
body.dark-mode .text h1,
body.dark-mode .text p,
body.dark-mode .text button { color: #f0f0f0; }
body.dark-mode section .overlay h2,
body.dark-mode section .overlay p { color: #f0f0f0; }

.product-card { transition: transform 0.3s ease; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

/* Navbar */
.navbar ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
  color: #0077ff;
  transform: translateY(-2px);
}

.icons {
  display: flex;
  gap: 20px;
}

.icons i {
  font-size: 20px;
  color: #444;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icons i:hover {
  transform: scale(1.3);
  color: #0077ff;
}

/* Responsive for Header */
@media (max-width: 650px) {
  .navbar {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  header {
    justify-content: space-between;
  }
}
.sidebar {
    position: fixed;
    top: 0;
    right: -320px; 
    width: 300px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 14px rgba(0, 0, 0, 0.15);
    z-index: 2000; 
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease, background-color 0.3s ease; 
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background-color: inherit; 
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}
.sidebar-nav {
    flex-grow: 1;
    background-color: inherit;
}
.sidebar-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}
.sidebar-nav li {
    margin-bottom: 14px;
}
.sidebar-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: block;
}
.sidebar-icons {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: inherit;
}
.sidebar-icons i {
    color: #333; 
}

@media (min-width: 768px) {
    .sidebar {
        display: none;
    }
    .navbar, .icons {
        display: flex !important;
    }
    .menu-btn {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .navbar, .icons {
        display: none !important;
    }
    .menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

body.dark-mode .sidebar {
    background: #333;
    color: #f0f0f0;
}
body.dark-mode .sidebar-header {
    border-bottom-color: #444;
}
body.dark-mode .close-sidebar {
    color: #f0f0f0;
}
body.dark-mode .sidebar-nav a {
    color: #f0f0f0;
}
body.dark-mode .sidebar-icons {
    border-top-color: #444;
}
body.dark-mode .sidebar-icons i {
    color: #f0f0f0 !important; 
} 

section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
section .card {
  width: 450px;
  height: 305px;
  border: 2px solid #ccc;
  margin: 20px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
  position: relative;
}

section .overlay {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #111;
}
.card img {
  width: 100%;
  height: auto;
}
section .card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}
section .card:nth-child(1) {
  padding: 50px;
  background-image: url('banner-01.jpg.webp');
  background-size: cover;
  background-position-x: 60%;
}
section .card:nth-child(2) {
  padding: 50px;
  background-image: url('banner-02 (1).jpg');
  background-size: cover;
  background-position-x: 60%;
}
section .card:nth-child(3) {
  background-position-x: 60%;
  padding: 50px;
  background-image: url('banner-03.jpg.webp');
  background-size: cover;
}
section .card:nth-child(1):hover {
  background-image: linear-gradient(rgba(8, 181, 250, 0.466), rgba(8, 181, 250, 0.466)), url('banner-01.jpg.webp');
}
section .card:nth-child(2):hover {
  background-image: linear-gradient(rgba(8, 181, 250, 0.466), rgba(8, 181, 250, 0.466)), url('banner-02 (1).jpg');
}
section .card:nth-child(3):hover {
  background-image: linear-gradient(rgba(8, 181, 250, 0.466), rgba(8, 181, 250, 0.466)), url('banner-03.jpg.webp');
}


@media (max-width: 767px) {
.navbar-product ul {
    width: 600px;
  }
}

@media (max-width: 650px) {
 section .card {
    height: 280px;
  }
}

.product-h1{
    font-size:3rem; 
    font-family:'Poppins', sans-serif; 
    font-weight:600;
    padding:20px 30px;
    text-align:center;
    color:#222;
    position:relative;
}
.product-h1::after{
    content:"";
    display:block;
    width:60px;
    height:4px;
    background:lightskyblue;
    margin:10px auto 0;
    border-radius:2px;
}

/* Navbar Product */
.navbar-product ul{
    display:flex;
    justify-content:center;
    gap:40px;
    list-style:none;
    padding:15px 0;
}
.navbar-product li{
    font-size:18px;
    font-family:'Poppins', sans-serif;
    color:#666;
    font-weight:500;
    position:relative;
    transition:color 0.3s ease;
}
.navbar-product a{
    text-decoration:none;
}
.navbar-product ul li:hover{
    color:lightskyblue;
    cursor:pointer;
}
.navbar-product ul li::after{
    content:"";
    position:absolute;
    bottom:-5px;
    left:0;
    width:0%;
    height:2px;
    background:lightskyblue;
    transition:width 0.3s ease;
}
.navbar-product ul li:hover::after{
    width:100%;
}

/* Main Product Grid */
main{
    margin:40px 0px;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
}

/* Product Card */
.product-card{
    margin:10px;
    width:22%;
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    overflow:hidden;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 8px 20px rgba(0,0,0,0.2);
}
.product-card img{
    width:100%;
    transition:transform 0.4s ease;
    cursor:pointer;
}
.product-card img:hover{
    transform:scale(1.05);
}
.product-card h3{
    padding:10px;
    font-size:18px;
    font-family:'Poppins', sans-serif;
    color:#444;
    font-weight:500;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.product-card i{
    color:#999;
    font-size:18px;
    transition:color 0.3s ease, transform 0.3s ease;
    cursor:pointer;
}
.product-card i:hover{
    color:#e63946;
    transform:scale(1.2);
}
.product-card p{
    padding:0px 10px 15px;
    font-size:16px;
    font-family:'Poppins', sans-serif;
    font-weight:600;
    color:#222;
}

/* Load More Button */
.button{
    display:flex;
    justify-content:center;
    margin:50px 0px;
}
.button button{
    background:lightskyblue;
    border:none;
    border-radius:50px;
    width:180px;
    height:45px;
    text-align:center;
    font-family:'Poppins', sans-serif;
    font-weight:600;
    color:#fff;
    cursor:pointer;
    transition:background 0.3s ease, transform 0.3s ease;
}
.button button:hover{
    background:#111;
    color:#fff;
    transform:scale(1.05);
}

/* Responsive Media Queries */
@media(max-width:1120px){
    .product-card{
        width:26%;
    }
}
@media(max-width:870px){
    .product-card{
        width:42%;
    }
    .product-card h3{
        font-size:16px;
    }
}
@media(max-width:550px){
    .product-card{
        width:80%;
    }        
}

/* footer */
footer{
    background-color:#111;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-around;
    color:#bbb;
    font-family:'Poppins', sans-serif;
    padding:40px 20px;
}
footer h1{
    font-size:1.6rem;
    font-weight:600;
    color:#fff;
    margin-bottom:20px;
    position:relative;
}
footer h1::after{
    content:"";
    display:block;
    width:40px;
    height:3px;
    background:lightskyblue;
    margin-top:8px;
    border-radius:2px;
}
footer ul{
    list-style:none;
    padding:0;
}
footer li a{
    color:#bbb;
    line-height:32px;
    font-size:16px;
    text-decoration:none;
    transition:color 0.3s ease;
}
footer li a:hover{
    color:lightskyblue;
}
.footer-child{
    flex:1 1 220px;
    margin:20px;
}
.footer-child p{
    font-size:14px;
    line-height:22px;
    color:#ccc;
}
.social-icons a{
    margin:0 8px;
    font-size:22px;
    color:#fff;
    transition:transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover{
    color:lightskyblue;
    transform:scale(1.2);
}
.footer-child input{
    width:80%;
    padding:10px;
    border-bottom:2px solid #444;
    border-radius:100px;
    margin-bottom:15px;
    background:#222;
    color:#fff;
    text-align:center;
    transition:border 0.3s ease;
}
.footer-child input:focus{
    border:2px solid lightskyblue;
    outline:none;
}
.footer-child button{
    background:lightskyblue;
    border:none;
    border-radius:50px;
    width:150px;
    height:40px;
    text-align:center;
    color:#111;
    font-weight:600;
    cursor:pointer;
    transition:background 0.3s ease, transform 0.3s ease;
}
.footer-child button:hover{
    background:#fff;
    transform:scale(1.05);
}
.last{
    padding:10px;
    text-align:center;
    color:#111;
    background-color:#ccc;
    font-family:'Poppins', sans-serif;
    font-size:14px;
}  