/* Importing Google Font - Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Color variables for light theme */
:root {
  --white-color: #fff;
  --black-color: #000;
  --light-white-color: #f0f0f0;
  --light-gray-color: #e5e5e5;
  --border-color: #ccc;
  --primary-color: #3b82f6;
  --secondary-color: #404040;
  --overlay-dark-color: rgba(0, 0, 0, 0.6);
}

/* Color variables for dark theme */
.dark-mode {
  --white-color: #171717;
  --black-color: #d4d4d4;
  --light-white-color: #333;
  --light-gray-color: #404040;
  --border-color: #808080;
  --secondary-color: #d4d4d4;
}

body {
  background-color: #ffffff;
}










/* Hide the back button initially */
#search-back-button {
  display: none;
}

/* Hide the search form initially on mobile */
.search-form {
  display: none;
}

/* When the search form is active, display it */
.search-form.active {
  display: flex;
}

/* General Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
}

.nav-section {
  display: flex;
  align-items: center;
}

/* Increased Search Bar Styling */
.search-form {
  display: flex;
  align-items: center;
  width: 100%; /* Full width on larger screens */
  max-width: 500px; /* Max width for desktop */
}

.search-input {
  background-color: #f3f3f3;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 5px 0 0 5px;
  width: 100%;
  font-size: 1rem;
  outline: none;
}

.search-button {
  background-color: #1742FF;
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.search-button i {
  color: #ffffff;
}

/* Profile Picture and Seller Button */
.profile-pic {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-seller {
  background-color: #1742FF;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  margin-left: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-seller:hover {
  background-color: #0d31cc;
}

/* Responsive Styling */
@media screen and (max-width: 768px) {
  .nav-section.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .profile-pic, .btn-seller {
    display: none; /* Hide these on smaller screens */
  }

  .search-form {
    max-width: 100%; /* Make the search bar full width on small screens */
    flex-grow: 1;
  }
  
  /* Adjust the button size on small screens */
  .search-button {
    padding: 8px 10px;
  }

  /* Show search button on small screens */
  #search-button {
    display: block;
  }

  /* Adjust search input for small screens */
  .search-input {
    font-size: 0.85rem;
  }
}










.container {
  display: flex;
  overflow: hidden;
  max-height: 100vh;
  flex-direction: column;
}

header,
.sidebar .nav-left,
.category-list {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white-color);
}

.navbar {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 8px 16px;
  justify-content: space-between;
}

:where(.navbar, .sidebar) .nav-section {
  gap: 16px;
}

:where(.navbar, .sidebar) :where(.nav-section, .nav-logo, .search-form) {
  display: flex;
  align-items: center;
}

:where(.navbar, .sidebar) :where(.logo-image, .user-image) {
  width: 150px;
  cursor: pointer;
}

:where(.navbar, .sidebar) .nav-section .nav-button {
  border: none;
  height: 40px;
  width: 40px;
  cursor: pointer;
  background: none;
  border-radius: 50%;
}

:where(.navbar, .sidebar) .nav-section .nav-button:hover {
  background: var(--light-gray-color) !important;
}

:where(.navbar, .sidebar) .nav-button i {
  font-size: 1.5rem;
  display: flex;
  color: var(--black-color);
  align-items: center;
  justify-content: center;
}

:where(.navbar, .sidebar) .nav-logo {
  display: flex;
  gap: 8px;
  text-decoration: none;
}

:where(.navbar, .sidebar) .nav-logo .logo-text {
  color: var(--black-color);
  font-size: 1.25rem;
}

.navbar .search-back-button {
  display: none;
}

.navbar .nav-center {
  gap: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navbar .search-form {
  flex: 1;
  height: 40px;
  max-width: 550px;
}

.navbar .search-form .search-input {
  width: 100%;
  height: 100%;
  font-size: 1rem;
  padding: 0 16px;
  outline: none;
  color: var(--black-color);
  background: var(--white-color);
  border-radius: 49px 0 0 49px;
  border: 1px solid var(--border-color);
}

.navbar .search-form .search-input:focus {
  border-color: var(--primary-color);
}

.navbar .search-form .search-button {
  height: 40px;
  width: auto;
  padding: 0 20px;
  border-radius: 0 49px 49px 0;
  border: 1px solid var(--border-color);
  border-left: 0;
}

.navbar .nav-center .mic-button {
  background: var(--light-white-color);
}

.navbar .nav-right .search-button {
  display: none;
}

.main-layout {
  display: flex;
  overflow-y: auto;
  scrollbar-color: #a6a6a6 transparent;
}

.main-layout .sidebar {
  width: 280px;
  overflow: hidden;
  padding: 0 11px 0;
  background: var(--white-color);
}

.main-layout .sidebar .nav-left {
  display: none;
  padding: 8px 5px;
}

body.sidebar-hidden .main-layout .sidebar {
  width: 0;
  padding: 0;
}

.sidebar .links-container {
  padding: 16px 0 32px;
  overflow-y: auto;
  height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar .links-container:hover {
  scrollbar-color: #a6a6a6 transparent;
}

.sidebar .link-section {
  list-style: none;
}

.sidebar .link-section .link-item {
  display: flex;
  cursor: pointer;
  color: var(--black-color);
  white-space: nowrap;
  align-items: center;
  font-size: 0.938rem;
  padding: 5px 12px;
  margin-bottom: 4px;
  border-radius: 8px;
  text-decoration: none;
}

.sidebar .link-section .link-item:hover {
  background: var(--light-gray-color);
}

.sidebar .link-section .link-item i {
  font-size: 1.4rem;
  margin-right: 10px;
}

.sidebar .link-section .section-title {
  color: var(--black-color);
  font-weight: 600;
  font-size: 0.938rem;
  margin: 16px 0 8px 8px;
}

.sidebar .section-separator {
  height: 1px;
  margin: 10px 0;
  background: var(--light-gray-color);
}

.main-layout .content-wrapper {
  padding: 0 ;
  overflow-x: hidden;
  width: 100%;
}

.content-wrapper .category-list {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 12px 0 11px;
  scrollbar-width: none;
}

.category-list .category-button {
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--black-color);
  padding: 6px 12px;
  background: var(--light-gray-color);
}

.category-list .category-button.active {
  color: var(--white-color);
  background: var(--black-color);
  pointer-events: none;
}

.dark-mode .category-list .category-button.active {
  filter: brightness(120%);
}

.category-list .category-button:not(.active):hover {
  background: var(--border-color);
}

.content-wrapper .video-list {
  display: grid;
  gap: 16px;
  padding: 20px 0 64px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.content-wrapper .video-list .video-card {
  text-decoration: none;
}

.content-wrapper .video-list .video-card .thumbnail-container {
  position: relative;
}

.content-wrapper .video-list .video-card .thumbnail {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: var(--light-white-color);
}

.content-wrapper .video-list .video-card .duration {
  position: absolute;
  right: 10px;
  bottom: 12px;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--overlay-dark-color);
}

.content-wrapper .video-list .video-card .video-info {
  display: flex;
  gap: 11px;
  padding: 11px 8px;
}

.content-wrapper .video-list .video-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.content-wrapper .video-list .video-card .title {
  font-size: 1rem;
  color: var(--black-color);
  font-weight: 600;
  line-height: 1.375;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-wrapper .video-list .video-card:hover .title {
  color: var(--primary-color);
}

.content-wrapper .video-list .video-card p {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.content-wrapper .video-list .video-card .channel-name {
  margin: 4px 0 2px;
}

/* Responsive media code for small devices */
@media (max-width: 768px) {

  .navbar {
    gap: 1rem;
  }

  .navbar .nav-center,
  body.show-mobile-search .navbar .nav-left,
  body.show-mobile-search .navbar .nav-right {
    display: none;
  }

  .navbar .nav-right .search-button,
  body.show-mobile-search .navbar .search-back-button,
  body.show-mobile-search .navbar .nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-layout .screen-overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 15;
    width: 100%;
    height: 100vh;
    background: var(--overlay-dark-color);
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .screen-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .main-layout .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    height: 100vh;
    transition: 0.2s ease;
  }

  body.sidebar-hidden .main-layout .sidebar {
    left: -280px;
  }

  .main-layout .sidebar .nav-left {
    display: flex;
  }
}







.logo-image{
  border-radius: 0;
  width: 150px;
}

#top-nav{
  background-color:  #f2f2f2;
  height: 70px;
  border: 1px solid #e0e0e0;
}

#side-bar{
  background-color:  #f9f9f9;
  border: 1px solid #e0e0e0;
  border-left: 0px;
  border-top: 0px;
  border-bottom: 0px;
  backdrop-filter: blur(10px);
}

#icon{
  color: rgb(62, 62, 62);
  font-weight: 503;
}
#icon:hover{
  background-color: #1742FF;
  color: #ffffff;
  font-weight: 501;
  width: 200px;
}

#side-bar-text{
  color: #696969;
}

#side-logo{
  background-color: #f9f9f9;
}

#side-container{
  background-color: #f9f9f9;
}

#side-seperater{
  background-color:#d2d2d2;
}



/* Banner Carousel Styling */
.banner-carousel {
  position: relative;
  width: 100%; /* Full width of the parent container */
  height: 300px; /* Fixed height for consistency */
  overflow: hidden;
  border-radius: 5px;
}

.carousel-slide {
  display: none; /* Hide all slides initially */
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio and cover the container */
}

/* Show the first slide by default */
.carousel-slide:first-child {
  display: block;
}

/* Navigation Button Styling */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%; /* Rounded buttons */
  z-index: 1; /* Ensure buttons stay above the images */
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .banner-carousel {
    height: 250px; /* Adjusted height for tablets */
  }
}

@media (max-width: 480px) {
  .banner-carousel {
    height: 200px; /* Adjusted height for mobile devices */
  }

  .prev-btn, .next-btn {
    padding: 8px;
  }
}





/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Grid Layout for 4 Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 20px;
}

/* Product Card */
.product-card {
  background-color: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  padding-bottom: 2px;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product Image (Fixed Size) */
.product-image {
  width: 100%;
  height: 220px; /* Fixed height for larger screens */
  object-fit: cover;
  border-bottom: 1px solid #f2f2f2;
  display: block;
}

/* Product Details */
.product-details {
  padding: 10px;
}

.product-title {
  font-size: 0.96rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  margin-left: 10px;
}

.product-price {
  font-size: 23px;
  color: #1742FF;
  font-weight: bold;
  margin-left: 10px;
}

#rs{
  font-size: 19px;
}

.original-price {
  font-size: 1rem;
  color: #b7b7b7;
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.original-price::before {
  content: '';
  position: absolute;
  left: 0;
  top: 65%;
  width: 55px;
  height: 1px; /* Adjust the thickness of the line */
  background-color: #1742FF;
  transform: rotate(-8deg); /* Adjust the angle of the slant */
  transform-origin: left;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between elements */
  margin-top: 0;
  padding-top: 0;
}

#rating .rating-circle {
  background-color: #65a0ff; /* Gold-like background for rating */
  color: white;
  padding: 4px 11px;
  border-radius: 15px; /* Rounded corners to make it oval-shaped */
  font-weight: bold;
  display: inline-block;
  margin-left: 10px;
}

#sold {
  color: #424f61;
  font-weight: normal;
}

.meta-verified-badge {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: #1742FF; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
}

.meta-verified-badge i {
  font-size: 22px;
  color: white;
}

#P-l{
  text-decoration: none;
}
/* Responsive Design */

/* For tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 products per row for tablets */
  }
}

/* For smaller tablets and large phones (max-width: 768px) */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 products per row for mobile */
  }

  .product-price {
    color: #1742FF;
  }

  .meta-verified-badge {
    background-color: #1742FF;
  }

}

/* For very small screens (max-width: 420px) */
@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 product per row for very small screens */
  }
}

/* For screens smaller than 500px */
@media (max-width: 500px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 products per row */
    gap: 8px; /* Increase gap between cards */
  }
  
  /* Adjust product card contents for smaller screens */
  .product-card {
    margin-bottom: 5px; /* Space between the cards */
    background-color: #fff;
    border: none;
    border-radius: 8px; /* Slightly larger corner radius */
  }

  .product-image {
    height: 150px; /* Reduce height for product images */
    object-fit: cover; /* Ensure image fits well */
  }

  .product-title {
    font-size: 11px; /* Adjust title size */
    margin-top: 5px;
    margin-left: -2px;
    margin-top: 0px;
    padding-bottom: -10px;
    margin-bottom: -0px;
  }

  .product-price {
    font-size: 15px; /* Adjust price size */
    font-weight: bold;
    color: #1742FF;
    margin-top: 5px;
    margin-left: -2px;
    padding-top: -10px;
    margin-top: -7px;
  }

  #rs{
    font-size: 12px;
  }

  .original-price {
    font-size: 11px;
    color: #b7b7b7;
    margin-top: -3px;
  }

  .product-rating {
    display: flex;
    font-size: 10px;
    margin-bottom: -7px;
    padding-bottom: -7px;
  }

  #rating .rating-circle {
    background-color: #65a0ff;
    color: white;
    padding: 3px 9px; /* Smaller padding for rating badge */
    border-radius: 12px;
    font-size: 8px;
    margin-left: -2px;
  }

  .meta-verified-badge {
    width: 23px; /* Smaller verified badge */
    height: 23px;
    background-color: #1742FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    margin-left: -1px;
  }

  .meta-verified-badge i {
    font-size: 14px;
    color: white;
  }

  .original-price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 65%;
    width: 40px;
    height: 1px; /* Adjust the thickness of the line */
    background-color: #1742FF;
    transform: rotate(-8deg); /* Adjust the angle of the slant */
    transform-origin: left;
  }

  .main-layout .content-wrapper {
    padding: 0 8px;
    overflow-x: hidden;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .product-title {
    font-size: 11px; /* Adjust the font size for small screens */
  }
}

.product-title {
  white-space: normal; /* Ensure it wraps text correctly */
  overflow: visible;   /* Disable overflow constraints */
}





/* Mobile Navbar */
.mobile-navbar {
  display: none; /* Hide navbar by default for larger screens */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  padding: 5px 0;
  box-shadow: 2px 2px 2px 2px #ebebeb;
  z-index: 9999;
}

/* Navbar links style */
.mobile-navbar a {
  color: #888888; /* Gray for non-active links */
  text-align: center;
  flex: 1;
  text-decoration: none;
  padding: 10px 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Icon styles */
.mobile-navbar a i {
  font-size: 22px;
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

/* Label styles */
.mobile-navbar a .nav-label {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

/* Active link styles */
.mobile-navbar a.active i {
  color: #1742FF; /* Change icon to active color */
}

.mobile-navbar a.active .nav-label {
  color: #1742FF; /* Label changes color when active */
}

/* Non-active link styles */
.mobile-navbar a i, .mobile-navbar a .nav-label {
  color: #888888; /* Gray color for non-active icons and labels */
}

/* Hover and focus styles */
.mobile-navbar a:hover, .mobile-navbar a:focus {
  background-color: #f5f5f5; /* Light background on hover/focus */
}

/* Media query for smaller screens (800px or less) */
@media (max-width: 800px) {
  .mobile-navbar {
    display: flex; /* Show navbar only for small screens */
  }
}





.dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 10px;
}

.dropdown-menu.show {
  display: block;
}

#drop-link{
  color: #333;
}
#drop-link:hover{
  background-color: #1742FF;
  color: white;
}





/* Hero Section */
.hero {
  background-color: #edf4ff;
  color: rgb(0, 0, 0);
  height: 500px; /* Fixed height for full screen */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 0 20px; /* Add padding for better spacing */
}

#hero-txt{
  color: #1742FF;
  font-size: 2.9rem;
  font-weight: bold;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  padding-right: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  margin-top: 10px;
}

.cta-btn {
  background-color: #1742FF;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 10px;
}

.cta-btn:hover {
  background-color: #0056b3;
}

/* Illustration */
.hero-illustration {
  flex: 1;
  max-width: 450px;
  text-align: center;
  animation: float 5s ease-in-out infinite; /* Floating animation */
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
}

/* Keyframe Animation for Floating Effect */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Move image up */
  }
  100% {
    transform: translateY(0); /* Back to the original position */
  }
}

/* Responsive Adjustments */

/* For large screens */
@media (min-width: 1024px) {
  .hero {
    height: 500px; /* Fixed height for larger screens */
    padding: 100px 40px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-content {
    flex-direction: row;
  }
}

/* For smaller screens (tablets and phones) */
@media (max-width: 1024px) {
  .hero {
    height: auto; /* Auto height for small screens */
    padding: 60px 20px; /* Adjust padding */
    flex-direction: column; /* Stack elements vertically */
    text-align: center; /* Center text on smaller screens */
  }

  .hero h1 {
    font-size: 2rem; /* Adjust font size for smaller screens */
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem; /* Adjust paragraph size */
    margin-bottom: 15px;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
  }

  .hero-illustration {
    margin-top: 20px;
    max-width: 350px; /* Reduce illustration size */
  }
}

/* For extra small screens (phones) */
@media (max-width: 480px) {
  .hero {
    height: auto; /* Auto height for very small screens */
    padding: 40px 10px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .hero-illustration {
    max-width: 300px;
  }
}




