


html,
body {
  background-color: #f7f7f7;
  height: 100%;
  margin: 0;

}

.search {
  background-color: #e5e5e500 !important;
  border-color: #ffffff !important;
  width: 500px;
  align-items: right;
}

.search {
  align-items: right;
  position: relative;
  

}

.hr--large {
  border: none;
  height: 1.5px;
  background-color: #5e5e5e;
  margin: 20px auto;
  width: 5%;
}

@media (max-width: 768px) {
  .hr--large {
    width: 10%;
    /* Wider on tablets */
  }
}

@media (max-width: 480px) {
  .hr--large {
    width: 15%;
    /* Even wider on mobile */
  }
}



/* ------------------ Header -------------- */

.header-icon {
  width: auto;
  margin: 0;
}

.header-icon img {
  width: clamp(20px, 4vw, 26px);
  height: auto;
}

.position-relative {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: 0;
  background-color: #af0000;
  color: white;
  padding: 1px 5px;
  border-radius: 50%;
  font-size: 0.65rem;
  min-width: 15px;
  height: 15px;
  line-height: 14px;
  text-align: center;
  box-sizing: border-box;
}

.navbar .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.navbar-brand {
  margin-right: 30px;
}

.navbar-toggler {
  margin-left: auto;
  border: none;
  padding: 0.5rem;
}

.navbar-toggler .navbar-toggler-icon {
  transition: opacity 0.3s ease;
}

.navbar-toggler .navbar-toggler-close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: white;
  transition: opacity 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-close {
  display: block;
  opacity: 1;
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-close {
  opacity: 0;
}

/* Offcanvas Adjustments */
.offcanvas-end {
  width: 100% !important;
  max-width: 320px;
  background-color: rgb(26, 26, 26);
  overflow-y: auto;
}

.offcanvas-body {
  padding: 0;
}

.offcanvas-body .navbar-nav {
  flex-direction: column;
  width: 100%;
}

.offcanvas-body .navbar-nav .nav-item {
  width: 100%;
}

.offcanvas-body .navbar-nav .nav-link {
  padding: 12px 20px;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.offcanvas-body .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas-body .navbar-nav .nav-item.position-relative .cart-badge {
  right: -15px;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.offcanvas-title {
  color: #fff;
  font-size: 1.25rem;
}

.hr--large {
  border-color: rgba(255, 255, 255, 0.2);
}

.search-form {
  padding: 15px;
  display: flex;
  justify-content: center;
}

.search-form .d-flex {
  width: 100%;
  max-width: 280px;
  /* Restrict width to prevent overflow */
  flex-direction: column;
  align-items: center;
}

.search-form .form-control {
  background-color: #343a40;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 100%;
  margin-bottom: 10px;
}

.search-form .btn-secondary {
  
  border: none;
  width: 100%;
}

.search-form .btn-secondary:hover {
  background-color: #5c636a;
}

/* Large Screen Adjustments */
@media (min-width: 992px) {
  .header-icon {
    flex-direction: row !important;
    justify-content: end !important;
  }

  .header-icon .btn-sm {
    margin: 0 6px;
  }

  .navbar-collapse.d-lg-flex {
    width: 100%;
    justify-content: space-between;
  }

  .header-icon.d-flex {
    justify-content: end;
  }

  .header-icon .btn-sm {
    margin: 0 6px;
  }
}

/* Small Screen Adjustments */
@media (max-width: 991px) {
  .header-icon {
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

  .header-icon .btn-sm {
    justify-content: center;
    width: 100%;
    padding: 8px;
  }

  .navbar-nav {
    padding-bottom: 10px;
  }

  .navbar-nav.header-icon .nav-link {
    justify-content: flex-start;
    padding: 8px 15px;
    color: #fff;
  }

  .navbar-nav.header-icon .nav-item {
    width: 100%;
  }
}

/* Ensure no horizontal scrolling */
html,
body {
  overflow-x: hidden;
}
/* ------------------ Home ---------------- */

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Full height of the viewport */
  overflow: hidden;
}

.hero-img {
  position: absolute;
  /* Positioning to allow centering */
  top: 50%;
  /* Center vertically */
  left: 50%;
  /* Center horizontally */
  width: auto;
  /* Maintain aspect ratio */
  height: auto;
  /* Maintain aspect ratio */
  min-width: 100%;
  /* Ensures the image covers the width */
  min-height: 100%;
  /* Ensures the image covers the height */
  transform: translate(-50%, -50%);
  /* Center the image */
  object-fit: cover;
  /* Cover the container while maintaining aspect ratio */
  object-position: center;
  /* Focus on the center of the image */

}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  text-align: center;
  /* Center text within the container */
}

.hero-text {
  color: white;
  /* Text color */
  font-size: 4em;
  /* Large text size */
  margin-bottom: 15px;
  /* Spacing below text */


}

@media (max-width: 768px) {
  .hero-text {
    font-size: 2rem;
    /* Adjust text size for mobile */
  }
}

/* Slideshow styles */
.slideshow-container {
  max-width: 100vw;
  margin: auto;
  height: 100vh;
}


.mySlides {
  animation: fade 6s infinite;
}


@keyframes fade {

  0%,
  100% {
    opacity: 0;
  }

  25%,
  75% {
    opacity: 1;
  }
}

/* --------------------- Paints --------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  background-color: #f7f7f7;
  /* make sure it's the same as the rest of the card */
  
  
  
  
}

.product-card .product-title {
  min-height: 2rem;
  /* or however much needed for 2 lines */
  
  
}

.product-card .product-price {
  margin-top: auto;
  /* pushes price to the bottom */
}

.paints-header h1 {
  font-size: 60px;
}


.container {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 200px;
}


.card {
  display: flex;
  flex-direction: column;
}


.card-body {
  background-color: #f7f7f7;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}


.card-text,
.card-price {
  text-align: center;

  /* Add margin to the top of title, description, and price */
}



.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
  justify-items: center;
  align-items: center;
  max-width: 1200px;
  /* Set a maximum width for the card container */
  margin: 0 auto;
  /* Center the grid horizontally */
}


.pagination {
  text-align: center;
  position: center;
  justify-content: center;  
  margin-top: 30px;
  z-index: 1000;
  /* Set a high z-index to ensure it's above other elements */
}

.row {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 0px;
}


/* ----------------- Paint Details -------------------- */


/* ----------- Container ----------- */
.details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 5%;
}

.paint-img-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.paint-img {
  width: 100%;
  max-width: 700px;
  position: relative;
}

#mainMediaContainer {
  position: relative;
  width: 100%;
  height: 500px;
  /* Fixed height, adjustable */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.main-media {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease-in-out;
  position: inherit;
  
  opacity: 1;
}

.main-media.show {
  opacity: 1;
}
.media-thumbnails {
  gap: 10px;
  margin-top: 10px;
}
.media-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.media-thumb:hover {
  border-color: orange;
}

/* Navigation arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #484848;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.nav-arrow:hover {
  
  
  font-size: 2rem;
  color: #9d9d9d;
  
  
  
  
  
}

.nav-arrow.left {
  left: -2.0rem;
}

.nav-arrow.right {
  right: -2.0rem;
}

/* ----------- Details Section ----------- */
.details {
  display: flex;
  flex-direction: column;
  
}

.title {
  font-size: 2rem;
  font-weight: 600;
  text-align: left;
}

.price {
  font-size: 1.5rem;
}

#discounted-price {
  color: green;
  font-weight: bold;
}

#original-price {
  color: #999;
  
  
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: #f1f1f1;
  color: #555;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 0.3rem;
}

.description {
  text-align: justify;
  font-size: 1rem;
}

.width,
.height,
.quantity {
  font-size: 1rem;
  font-weight: 500;
}

.width span,
.height span {
  font-weight: 400;
  margin-left: 0.4rem;
}

/* ----------- Dropdowns & Quantity ----------- */
.dropbtn,
.qdropbtn,
.vdropbtn {
  background-color: #f7f7f7;
  border: 1px solid #c2c2c2;
  padding: 8px 15px;
  color: #767676;
  cursor: pointer;
}

.dropbtn:hover,
.qdropbtn:hover,
.vdropbtn:hover {
  background-color: #f7f7f7;
  border-color: #c2c2c2;
  color: #767676;
}

.qdropbtn {
  width: auto;
  height: 40px;
}

.vdropbtn {
  width: 250px;
  height: 40px;
}

.quantitys {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* ----------- Button ----------- */
.btn-warning {
  width: 100%;
}


/* ----------- Responsive for Mobile ----------- */
@media (max-width: 767px) {
  .details-container {
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .title {
    text-align: center;
    font-size: 1.75rem;
  }

  .price {
    text-align: center;
    font-size: 1.3rem;
  }

  .tags {
    justify-content: center;
  }

  .width,
  .height,
  .description,
  .personalize {
    font-size: 0.95rem;
    text-align: center;
  }

  .quantitys {
    justify-content: left;
  }

  .btn-warning {
    margin: 1rem auto 0;
  }

  .vdropbtn,
  .qdropbtn {
    max-width: 100%;
  }

  .vdropbtn {
    width: 100%;
    height: 40px;
  }

  .nav-arrow {
    font-size: 1.5rem;
    padding: 0.3rem;
  }
}
/* ----------- Tablet (iPad) Fix: Align content vertically ----------- */
@media (max-width: 1392px) {
  .details-container {
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem;
    gap: 2rem;
    align-items: inherit;
  }

  .details {
    align-items: left;
    text-align: left;
    justify-content: left;
  }
  .vdropbtn {
    width: 100%;
    height: 40px;
  }
  .title {
    font-size: 2rem;
    text-align: left;
  }

  .price,
  .width,
  .height,
  .description {
    text-align: left;
  }

  .btn-warning {
    margin: 1rem auto;
  }

  .tags {
    justify-content: left;
  }
}

/* ---------------- Signup ------------- */
.signupform {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-control {
  border: 1px solid #c8c8c8;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}


.signupcard-body {
  background-color: #f7f7f7;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  width: 320px;
}

.text-sm-danger {
  display: flex;
  align-items: center;
  font-size: 13px;
  text-align: left;
  /* add this property */
}

.text-secondary-emphasis p {
  text-decoration: none
}

/* ---------------------------- Cart ----------------------------- */


/* Cart Layout: Mobile-first */

/* Base: Stack everything and center */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* add this to ensure centering */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Let these shrink to content width and center */
.cartlist,
.checkout-box {
  width: 100%;
  max-width: 800px;
  margin-bottom: 2rem;
}

.cart-img img {
  width: 90%;
  aspect-ratio: 1 / 1;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  
  /* Make all images square */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.list {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.cart-details-responsive {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cart-title {
  font-size: 1.4rem;
}

.cart-price {
  font-size: 1.2rem;
}

.small-quantity {
  font-weight: 300;
  font-size: 15px;
}

.cart-details-container {
  margin-top: 40px;
}

/* Mobile & Tablet: stacked and centered */
@media (max-width: 1149px) {
  .main-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cartlist,
  .checkout-box {
    max-width: 800px;
    width: 100%;
  }

  .list {
    flex-direction: column;
  }

  .cart-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 15px 0;
  }
}

/* Desktop layout: side-by-side */
@media (min-width: 1150px) {
  .main-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1140px;
    margin: 0 auto;
  }

  .cartlist {
    flex: 0 0 65%;
    max-width: 65%;
    margin-bottom: 0;
  }

  .checkout-box {
    flex: 0 0 30%;
    max-width: 30%;
    margin-bottom: 0;
  }

  .list {
    flex-direction: row;
    align-items: flex-start;
  }

  .cart-img img {
    margin-right: 25px;
  }
}

/* --------------------- Order ----------------------- */

.order-form {
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 0%;
  padding: 20px;
  width: auto;

  
  border: solid;
  border-color: #dbdbdb;
  border-width: 1.5px;
}

.check {
  background-color: #f7f7f7;
  display: flex;
  position: relative;
  left: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  width: 450px;
  border: solid;
  border-color: #dbdbdb;
  border-width: 1.5px;
}

/* ------------------------------------ Admin ---------------------------------- */
/* styles.css */

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}


/* Ensure the icons and text align properly */
.sidebar {
  height: 100%;
  width: 250px;
  position: absolute;
  /* Change from absolute to fixed */
  border-right: 1px solid #dee2e6;
  left: 0;
  background-color: #f7f7f7;
  padding-top: 20px;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
}
/* Default styles for .sidebar-header */
.sidebar-header {
  padding: 15px;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #0a0a0a;
  transition: 0.3s;
}

/* Screen sizes from 992px to 1399px */
@media (min-width: 992px) and (max-width: 1399px) {
  .sidebar-header {
    display: block;
  }
}

/* Screen sizes 1400px and above */


.sidebar-item {
  padding: 15px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  color: #0a0a0a;
  display: block;
  transition: 0.3s;
}

.sidebar-item i {
  margin-right: 10px;
}

.sidebar-item:hover {
  background-color: #e4e4e4;
  width: 100%;
}

.search_admin {
  background-color: #e5e5e5 !important;
  border-color: #e5e5e5 !important;
  border: 1px solid #c8c8c8;
  width: 500px;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

.main-content {
  margin-left: 270px;
  /* Leave space for the sidebar */
  padding: 20px;
  /* Add padding for spacing */
}

.main-content form {
  width: 100%;
  /* Ensure the form takes full width */
}

.listing_container {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 200px;
}
.desktop-search-wrapper {
  position: absolute;
  right: 140px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.35s ease, opacity 0.25s ease;
  z-index: 1000;
  /* حتى يكون فوق كل شيء */
}

.desktop-search-wrapper.active {
  width: auto;
  opacity: 1;
}

.desktop-search-input {
  
  border: 1px solid #c8c8c8 !important;
  height: 38px;
  width: 250px;
  padding: 0 10px;
}
/* ---------------- Categories Dropdown ---------------- */

.categories-dropdown {
  background-color: rgb(26, 26, 26);
  border: none;
  width: 300px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.categories-dropdown .dropdown-item {
  color: #fff;
  padding: 6px 10px;
  font-size: 0.95rem;
}

.categories-dropdown .dropdown-item:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Open dropdown on hover */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}/* Prevent jump on click */
.navbar .dropdown-toggle::after {
  vertical-align: middle;
}