/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;;
}


/* ===== Colours ===== */
:root{
    --body-color: #E4E9F7;
    --nav-color: #E4E9F7;
    --side-nav: #E4E9F7;
    --text-color: #121212;
    --search-bar: #F2F2F2;
    --search-text: #ffffff;
}

body{
    height: 100vh;
    background-color: var(--body-color);
    padding-top: 70px;
}

body.dark{
    --body-color: #18191A;
    --nav-color: #18191A;
    --side-nav: #18191A;
    --text-color: #d3d3d3;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: var(--nav-color);
    z-index: 100;
}

body.dark nav{
    border: 1px solid #231f20;

}
body.dark h1 {
  color: #E4E9F7;
}

.h2Sec{
  margin-top: 5px;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.dark .h2Sec{
  color: #d3d3d3;
}

nav .nav-bar{
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    background-color: var(--nav-color);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .nav-bar .sidebarOpen{
    color: var(--text-color);
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a{
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

/* Adjust logo size inside the navbar */
.nav-bar img, 
.menu .logo img {
  max-height: 75px; /* Adjust this value to control the height */
  width: auto;
}

/* Make sure the logo is vertically centered in the navbar */
.nav-bar {
  display: flex;
  align-items: center;
}

.menu .logo {
  display: flex;
  align-items: center;
}


.menu .logo-toggle{
    display: none;
}

.nav-bar .nav-links{
    display: flex;
    align-items: center;
}

.nav-bar .nav-links li{
    margin: 0 5px;
    list-style: none;
}

.nav-links li a{
    position: relative;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
}

.nav-links li a::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links li:hover a::before{
    opacity: 1;
}

.nav-bar .darkLight-searchBox{
    display: flex;
    align-items: center;
}

.darkLight-searchBox .dark-light,
.darkLight-searchBox .searchToggle{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.dark-light i,
.searchToggle i{
    position: absolute;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i.sun{
    opacity: 0;
    pointer-events: none;
}

.dark-light.active i.sun{
    opacity: 1;
    pointer-events: auto;
}

.dark-light.active i.moon{
    opacity: 0;
    pointer-events: none;
}

/* Back arrow styling */
.back-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  color: #3498db; /* Arrow and text color */
  text-decoration: none;
  margin: 20px; /* Add some space around the arrow */
  transition: color 0.3s ease;
}

.back-arrow i {
  margin-right: 8px; /* Space between arrow icon and text */
  font-size: 1.5rem; /* Size of the icon */
}

.back-arrow:hover {
  color: #0056b3; /* Change color on hover */
}


/* Footer styling */
.site-footer {
  background-color: #333; /* Dark background */
  color: #fff; /* White text */
  text-align: center; /* Center the text */
  padding: 20px 0; /* Padding for space around the text */
  position: relative;
  bottom: 0;
  width: 100%;
}

.site-footer p {
  margin: 0;
  font-size: 1rem;
}

.site-footer a {
  color: #3498db; /* Link color */
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #0056b3; /* Hover color */
}



@media (max-width: 790px) {
    nav .nav-bar .sidebarOpen{
        display: block;
    }

    .menu{
        position: fixed;
        height: 100%;
        width: 320px;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--side-nav);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav.active .menu{
        left: -0%;
    }

    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-toggle .siderbarClose{
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }

    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 30px;
    }

    .nav-links li a{
        display: block;
        margin-top: 20px;
    }
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

/* Color Palette */
:root {
  --background-color: #f7f7f7;
}

/* Container for sorting and search options */
.controls-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 0 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark .controls-container{
  background-color: #d3d3d3;
}

.controls-container > div {
  margin: 10px;
  flex: 1;
}

.total-products {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Sorting and search input styles */
.sorting-container,
.search-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

label {
  margin-right: 10px;
  font-size: 1.1rem;
  color: #333;
}

/* Add this to your CSS file (style2.css) */
.view-details-button {
  background-color: #007bff; /* Blue background */
  color: white; /* White text */
  border: none; /* Remove border */
  padding: 10px 20px; /* Add padding */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  font-size: 14px; /* Font size */
  margin-top: 10px; /* Add some space above the button */
}

.view-details-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

#sort-options,
#search-input,
#availability-options {
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 200px;
  margin: 5px 0;
}

#search-input {
  max-width: 250px;
}
/* Container for the items */
.items-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 items per row */
  gap: 20px;
  padding: 0 15px;
  padding-left: 15%;
  padding-right: 15%;
  margin-bottom: 10px;
}

/* Style for each individual item card */
.item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.dark .item{
  background-color: #d3d3d3;
}

.item:hover {
  transform: scale(1.05);
}

/* Item image */
.item img {
  width: 100%;
  height: 400px; /* Adjust to maintain aspect ratio */
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

/* Item details */
.item-details {
  padding: 15px;
}

.item-details h2 {
  font-size: 1.2rem;
  color: #333;
  margin: 10px 0;
}

.item-details .price {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: #666;
  margin-top: 5px; /* Position price below the title */
}

.item-details .availability {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 5px;
  text-align: center;
}

/* Link to view details */
.item-details a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #3498db;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.item-details a:hover {
  background-color: #0056b3;
}

/* Item details for index.html */

.items-container-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 20px;
  padding: 0 15px;
  padding-left: 15%;
  padding-right: 15%;
}
.item-details-index {
  padding: 15px;
}

.item-details-index h2 {
  font-size: 1.2rem;
  color: #333;
  margin: 15px 0;
}

.item-details-index .price {
  font-size: 1rem;
  font-weight: bold;
  color: #666;
  margin-top: 5px; /* Position price below the title */
}

/* Link to view details */
.item-details-index a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #3498db;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.item-details-index a:hover {
  background-color: #0056b3;
}

/* Social Media Section */
.social-media {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* about us */

.accordion {
      background-color: #f1f1f1;
      cursor: pointer;
      padding: 18px;
      width: 100%;
      border: none;
      text-align: left;
      outline: none;
      font-size: 18px;
      transition: 0.4s;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: inherit; /* Inherit the color from the parent element */
      text-decoration: none; /* Remove any underline */
    }

    .accordion i {
      transition: transform 0.4s ease;
    }

    .accordion.active i {
      transform: rotate(180deg);
    }

    .panel {
      padding: 0 18px;
      display: none;
      background-color: white;
      overflow: hidden;
      font-size: 16px;
    }

    .dark .accordion{
      background-color: #adadad;
    }

    .dark .panel{
      background-color: #d3d3d3;
    }

    .panel.show {
      display: block;
    }

    /* Spacing between accordions */
    .accordion + .panel {
      margin-bottom: 20px;
    }

/* Social Media Item */
.social-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark .social-item{
  background-color: #d3d3d3;
  border: 3px solid #fff;
}

.social-logo {
  width: 80px;
  height: 80px;
  margin-right: 20px;
}

.social-info h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.social-info p {
  font-size: 1rem;
  color: #555;
  margin: 10px 0;
  margin-bottom: 15px;
}

.social-link {
  text-decoration: none;
  background-color: #3498db;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: #0056b3;
}

/* Available and Sold Out styles */
.available {
  color: green;
  font-weight: bold;
}

.sold-out {
  color: red;
  font-weight: bold;
}

.about-us {
  padding: 60px 20px;
  margin-left: 15%;
  margin-right: 15%;
  text-align: center;
}

.about-content h2 {
  font-size: 36px;
  color: #333;
  margin-bottom: 20px;
  font-family: 'Serif', sans-serif;
}

.about-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.dark .about-content p, .dark .about-content h2{
  color: #d3d3d3;
}

.about-images {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.about-images img {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-scroll-wrapper {
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  width: 100%;
  height: 220px;
}
.image-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
}
.image-scroll .image-container {
  position: relative;
  flex-shrink: 0;
  margin: 0 10px;
}
.image-scroll img {
  max-height: 200px;
  border-radius: 5px;
  display: block;
}
.image-scroll .text-overlay {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  padding: 5px;
  text-align: center;
  border-radius: 0 0 5px 5px;
}

/* item page */

.carousel-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  width: 80%;
  max-width: 600px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-images img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.item-section .carousel-container {
  max-width: 80%;
  margin: 20px auto;
  position: relative;
}

.item-section .carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 700px;
}

.item-section .carousel-images img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 10px;
}

.item-section .item-details {
  margin-top: 20px;
  padding: 10px;
  background-color: white;
  max-width: 80%;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark .item-section .item-details{
  background-color: #d3d3d3;
  border: 2px solid #fff;
}

.item-section #item-description {
  font-size: 1rem;
  color: #333;
  text-align: center;
  margin-top: 10px;
}

/* Similar Items Section */
.similar-items-section {
  margin-top: 0px;
  margin-left: 30%;
  margin-right: 30%;
  padding-bottom: 20px;
}

.similar-items-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.item-card {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: calc(50% - 20px); /* Two cards per row, even on mobile */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .item-card{
  background-color: #d3d3d3;
  border: 2px solid #fff;
}

.item-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.item-card h3 {
  font-size: 1.2rem;
  margin: 15px 0;
}

.item-card p {
  font-size: 1rem;
  color: #555;
}

.item-card .price {
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section Styles */
.hero {
  position: relative;
  background-image: url('./abaya/hero/Hero.jpeg'); /* Replace with your hero image */
  background-size: cover;
  background-position: center;
  height: 80vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff; /* White text color for contrast */
  font-family: 'Arial', sans-serif;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay (50% opacity) */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* Ensure text and button are above the overlay */
  color: #f5f5f5; /* Lighter text */
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  font-weight: bold;
  color: #e0e0e0; /* Lighter text for the heading */
}

.hero p {
  font-size: 1.5rem;
  margin: 10px 0;
  color: #d3d3d3; /* Light gray text for the paragraph */
}

.hero-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.2rem;
  color: #fff;
  background-color: transparent; /* White button with black text */
  text-decoration: none;
  border-radius: 30px;
  border: #CCC solid 3px;
  transition: background-color 0.3s, color 0.3s;
}

.hero-button:hover {
  background-color: #f0f0f0; /* Slightly darker white on hover */
  color: #333; /* Darker text color on hover */
}

/* FAQ Section Styles */
.faq {
  padding-top: 50px;
  padding-bottom: 10px;
  padding-left: 10%;
  padding-right: 10%;
  background-color: #E4E9F7;
}

.dark .faq {
  background-color: #18191A;
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.faq-item {
  border: 2px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: #fff;
}

.dark .faq h2{
  color: #d3d3d3;
}

.dark .faq-item {
  border-color: #d3d3d3;
  background-color: #d3d3d3;
}

.faq-question {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.faq-question i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #333;
}

.faq-question p {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.dark .faq-question p{
  color: #000;
}

.dark .faq-item p{
  color: #000;
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.faq-item p strong {
  color: #000;
  font-weight: bold;
}


@keyframes scroll {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-100%);
  }
}



/* Media queries for responsiveness */

/* For medium-sized screens */
@media (max-width: 1024px) {
  .items-container {
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
  }
  .similar-items-section {
    margin-left: 10%;
    margin-right: 10%;
  }
}

@media (max-width: 768px) {
  .controls-container {
    margin-left: 2%;
    margin-right: 2%;
    display: block;
    flex-direction: column;
    align-items:center;
  }

  .social-item {
    flex-direction: column;
    text-align: center;
    margin-left: 2%;
    margin-right: 2%;
  }

  .social-logo {
    width: 80px;
    height: 80px;
    margin-right: 0px;
  }

  .items-container {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
  }

  .hero-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .items-container-index {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    padding-left: 2%;
    padding-right: 2%;
    gap: 10px;
  }

  .item-details-index h2 {
    font-size: 1rem;
    color: #333;
    margin: 15px 0;
  }

  #sort-options,
  #search-input,
  #availability-options {
    width: 100%;
    max-width: none;
  }

  .about-us {
    margin-left: 5%;
    margin-right: 5%;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .about-content p {
    font-size: 16px;
  }

  .about-images img {
    max-width: 120px;
  }
  .item-card {
    width: calc(33.333% - 20px); /* Three cards per row on larger screens */
  }
}

@media (max-width: 480px) {
  .similar-items-section {
    margin-left: 2%;
    margin-right: 2%;
  }

  .hero {
    height: 70vh; /* Full viewport height */
  }

  .item-card {
    width: calc(50% - 10px); /* Adjusted width for slightly larger cards on mobile */
  }

  .about-us {
    margin-left: 0;
    margin-right: 0;
    padding: 40px 10px;
  }

  .site-footer p {
    font-size: 0.8rem;
  }

  .item-section .carousel {
    height: 500px;
  }
  
  .item-section .carousel-images img {
    height: 500px;
  }
  .item-section #item-description {
    font-size: 0.9rem;
  }
  .about-content h2 {
    font-size: 24px;
  }


  .faq h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .h2Sec{
    font-size: 24px;
    margin-bottom: 5px;
  }
  
  .faq-question p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
  }
  
  .faq-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
  }

  .about-content p {
    font-size: 14px;
  }

  .item-details h2 {
    font-size: 1rem;
  }

  /* Ensure images stay side by side on smaller screens */
  .about-images {
    display: flex;
    flex-wrap: wrap; /* Allows images to wrap into multiple rows if needed */
    justify-content: space-between; /* Adds spacing between images */
  }

  .about-images img {
    max-width: 45%; /* Two images per row */
    margin-bottom: 10px;
    height: auto;
  }

  .items-container {
    grid-template-columns: 1fr; /* 1 item per row */
  }

  .item img {
    height: auto; /* Adjust image height for small screens */
  }

  .image-scroll {
    display: flex;
    animation: scroll 15s linear infinite;
  }
  @keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-400%);
    }
  }
}
