/* CSS Variables */
:root {
  --color-bg: #f4f4f7;
  --color-light: #ffffff;
  --color-dark: #1e1e2f;
  --color-primary: #10ab7a;
  --color-primary-hover: #2ed29e;
  --color-border: #e2e2e2;
  --color-text: #222;
  --color-muted: #666;
  --color-warning: #ffc107;
  --color-warning-hover: #e0a800;
  --color-danger: #dc3545;
  --color-danger-hover: #c82333;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --radius: 16px;
  --spinner-border: 5px solid #c8e6c9;
  --spinner-top-color: #66bb6a;
  /*fjjfohf*/
  --gray-light: #dee3e9;
  --gray: #6e98c2;
  --gray-dark: #495057;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 80px;
  --transition-speed: 0.3s;
  :root {
    --primary-color: #2563eb; /* Example blue color */
    --primary-dark: #1d4ed8;
    --success-color: #10b981;
    /* Add any other variables you're already using */
  }
}

/* start Global  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Nunito", sans-serif;
  background: linear-gradient(135deg, #e0f7f4, #f7f7f7);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
a {
  text-decoration: none;
}
/* === Header === */
.header {
  background: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #e0f7f4, #f7f7f7);
}

.header__navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

.header__logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-primary);
}

.header__nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.header__nav-item a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.header__nav-item a:hover {
  color: var(--color-primary);
}
.header__logo a {
  color: var(--color-primary);
}
.header__search-input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 30%;
}

/* === User Section === */
.header__user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header__logout-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header__logout-icon {
  width: 40px;
  height: 40px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.header__logout-btn:hover .header__logout-icon {
  transform: rotate(-10deg);
}

.header__logout-btn:focus {
  outline: none;
}

/* product.html */
/* 🧱 Product Card */
.page--centered {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-bg);
  font-family: "Segoe UI", sans-serif;
  color: var(--color-text);
}
.container {
  width: 100%;
  padding: 0;
  margin: auto;
  background-color: transparent;
}
/* end general */

/* start cart  */
.cart__title {
  text-align: center;
  margin: 5rem 20px;
}
.full__Process {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  height: auto;
  justify-content: space-around;
}
.my__products {
  padding-top: 10px;
  width: 700px;
  border-radius: 10px;
  height: auto;
  background-color: transparent;
}
.complete__process {
  width: 300px;
  border-radius: 10px;
  height: 200px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

  background-color: #ffffff;
}
/* start cart item */
.my__products {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.cart__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
  height: 130px;
  background-color: #ffffff;
  border: 1px solid rgb(245, 230, 230);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.my__products img {
  width: 130px;
  height: 100%;
  border-radius: 6px 0 0 6px;
}
.product__name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.price {
  font-size: 14px;
  color: #706e6e;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity {
  display: flex;
  align-items: center;
}

.quantity button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 5px 10px;
  cursor: pointer;
}

.quantity span {
  margin: 0 10px;
  padding: 5px 10px;
  border: 0.1px solid rgb(146, 146, 146);
  border-radius: 11px;
}

.remove__btn {
  background-color: transparent;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 14px;

  margin: 11px;
}

.remove__btn:hover {
  text-decoration: underline;
}
@media only screen and (max-width: 768px) {
  .full__Process {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 10px;
  }

  .my__products {
    width: 70% !important;
    margin-bottom: 20px;
  }

  .cart__item {
    flex-direction: column;
    height: auto;
    width: 250px;

    text-align: center;
    margin: 1rem auto;
  }

  .my__products img {
    width: 100%;
    height: auto;
    border-radius: 6px 6px 0 0;
  }

  .product__name,
  .price,
  .actions {
    text-align: center;
    padding: 10px;
    width: 100%;
  }

  .quantity {
    margin: 10px 0;
  }
}

/* end cart item */

/* start complete__process */
.complete__process {
  text-align: center;
}
.complete__process {
  padding: 20px;
}
.total__order {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}
.total__order__price {
  color: #706e6e;
}
.complete__process__btn {
  margin-top: 20px;
  background-color: var(--color-primary);
  border-radius: 10px;
  border: none;
  width: 100%;
  cursor: pointer;
  height: 30px;
  color: var(--color-bg);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.cart__is__empty__btn {
  background-color: var(--color-primary);
  border-radius: 10px;
  border: none;
  color: var(--color-bg);
  cursor: pointer;
  width: 140px;
  padding: 10px 10px 10px 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* End complete__process */

/* End cart */
/* start wihslist */

.wishlist__products__container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}
.wishlist__container__title {
  text-align: center;
  margin-top: 5rem;
  font-weight: bold;
  font-size: 2rem;
}

.wishlist__container__paragraph {
  text-align: center;
}
#error__btn {
  margin-top: 30px;
  width: 100%;
  text-align: center;
}

/* end whishlist */
/*  Product Card */
.product-card {
  width: 240px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background-color: var(--color-light);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  height: 375px;
  margin: 10px;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
}

/*  Image Section */
.product-card__image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 14px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/*  Content */
.product-card__content {
  padding: 16px;
  padding-bottom: 0.5px;
}

.product-card__category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: left;
  margin-bottom: 8px;
}

.product-card__name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 8px;
}

.product-card__price {
  font-size: 1rem;
  color: var(--color-primary);
  text-align: left;
  margin-bottom: 8px;
}

/*  Actions */
.product-card__actions {
  display: flex;
  justify-content: space-around;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-light);
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border: 2px solid var(--color-warning);
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: black;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-card__btn:hover {
  background-color: var(--color-warning);
  transform: translateY(-2px);
}

.product-card__btn:active {
  transform: scale(0.98);
}

/* Update */
.product-card__btn--update {
  margin-right: 10px;
}

.product-card__btn--update:hover {
  background-color: var(--color-warning);
}

/*  Delete */
.product-card__btn--delete {
  height: 50px;
  margin-right: 10px;
  border: 2px solid var(--color-danger);
}

.product-card__btn--delete:hover {
  background-color: var(--color-danger-hover);
}

/*  Icons */
.product-card__btn-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* home.html */
/* === Promo Section === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  font-family: sans-serif;
}
/* start slider */
.slider {
  position: relative;
  width: 100%; /* بدل 100vw */
  max-width: 100%;
  height: 70vh;
  overflow: hidden;
  margin-bottom: 15vh;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
}

.slides {
  position: relative;
  height: 100%;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
}
.controls .prev {
  left: 20px;
}
.controls .next {
  right: 20px;
}
.indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.indicators div {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
  cursor: pointer;
}
.indicators .active {
  opacity: 1;
  background: var(--color-primary);
}
.product-count-info {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
  position: absolute;
  top: -50px;
  left: 295px;
  padding: 8px 0;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: right;
}

.product-count-info span {
  font-weight: bold;
  color: var(--color-primary);
}

/* Spinner Style */
.spinner {
  width: 48px;
  height: 48px;
  border: var(--spinner-border);
  border-top-color: var(--spinner-top-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

/* Optional: hide by default */
.spinner--hidden {
  display: none;
}
/* === Products Section === */

/* start main  */

.main {
  display: flex;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.main__filters {
  width: 250px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.main__products {
  flex: 1;
  position: relative;
  display: flex;
  height: auto;

  justify-content: flex-start;
  flex-wrap: wrap;
}
.Heart__icon {
  position: absolute;
  margin: 10px;
  font-size: 22px;
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
}

.Heart__icon:hover {
  color: var(--color-primary);
  transform: scale(1.2) translateY(-2px);
}

.wishlist__badge {
  color: #10ab7a;
}

.main__filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main__filters-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.05rem;
  color: var(--color-dark);
}

.main__filters-clear {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.main__filters-clear:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
/* Filter Groups */
.main__filters-group {
  margin-bottom: 1.5rem;
}

.main__filters-label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.main__filters-group label {
  display: block;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.main__filters-divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.5rem 0;
}
/* Dual Range Inputs */
.main__filters-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.price-input {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.main__filters-range input[type="number"] {
  width: 80px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
}
.price-input .currency {
  position: absolute;
  right: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-dark);
  pointer-events: none;
}

/* === Ads Section === */
/* CSS */
.main__ads {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.main__ads-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #444;
}

.main__ads-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.ad-item {
  flex: 0 0 100%;
  padding: 5px;
}

.ad-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ad-item img:hover {
  transform: scale(1.05);
}

/* TODO: no need to use laib */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
    padding: 0 15px;
  }
  .product-count-info {
    display: none;
  }

  .main__filters {
    width: 100%;
    position: static;
    margin-bottom: 30px;
  }
  .main__products {
    display: flex;
    justify-content: center;
  }
  .promo__content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  width: 100%;
  background: #f5f5f5;
  margin-top: 20px;
}
.pagination__btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-light);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.pagination__btn:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.pagination__btn--active {
  background-color: var(--color-light);
  color: var(--color-primary);
  font-weight: bold;
  border: 2px solid var(--color-primary);
}

/* === Footer === */

/* Footer Container */
.footer {
  background: linear-gradient(135deg, #1f1f1f, var(--color-primary));
  color: var(--color-light-text, #fff);
  margin-top: 2rem;
  border-radius: 0; /* Removed radius for edge-to-edge look */
  font-family: inherit;
  width: 100%; /* Ensure full width */
  max-width: 100vw;
  box-sizing: border-box;
  text-align: center;
  padding: 15px 0;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* Flex Layout */
.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Section: Icons + Contact Us */
.footer__icons {
  flex: 1 1 240px;
  margin-left: 0;
  text-align: center;
}

.footer__contact-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: var(--color-light-text, #fff);
}

.footer__text {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-light, #eee);
}

/* Centered Icons */
.footer__icons-list {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.footer__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer__icon img:hover {
  transform: scale(1.1);
}

/* Bottom Copyright */
.footer__copyright {
  width: 100%;
  text-align: center;
  margin-top: 0.015rem;
  padding-top: 0.5rem;
}

.footer__note {
  font-size: 0.8rem;
  color: var(--color-note, #bbb);
}
@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__language,
  .footer__icons,
  .footer__copyright {
    flex: 1 1 100%;
    padding: 10px 0;
    margin: 0 auto;
  }

  .footer__language {
    text-align: center;
  }

  .footer__select {
    max-width: 100%;
  }

  .footer__icons {
    width: 100%;
    margin-left: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .footer__icons-list {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer__icon {
    width: 40px;
    height: 40px;
  }

  .footer__icon img {
    width: 100%;
    height: 100%;
  }

  .footer__note {
    font-size: 0.75rem;
  }
}
/* // Admin Daschboard  */
/* Add this to the end of your existing style.css file */

/* Dashboard Layout */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.dashboard__sidebar {
  width: var(--sidebar-width);
  background-color: var(--color-bg);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: width var(--transition-speed) ease;
  position: fixed;
  height: 74vh;
  z-index: 100;
}

.dashboard__sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.dashboard__toggle {
  position: absolute;
  right: -15px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  transition: transform var(--transition-speed) ease;
}

.dashboard__toggle:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.dashboard__toggle-arrow {
  transition: transform var(--transition-speed) ease;
}

.dashboard__sidebar.collapsed .dashboard__toggle-arrow {
  transform: rotate(180deg);
}

.dashboard__sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard__sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard__sidebar-logo-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.dashboard__sidebar-logo-text {
  font-weight: 600;
  font-size: 1.1rem;
  transition: opacity var(--transition-speed) ease;
}

.dashboard__sidebar.collapsed .dashboard__sidebar-logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.dashboard__sidebar-menu {
  padding: 15px 0;
}

.dashboard__sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--gray-dark);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.dashboard__sidebar-link:hover {
  background-color: rgba(74, 107, 255, 0.1);
  color: var(--color-primary);
}

.dashboard__sidebar-link--active {
  background-color: rgba(74, 107, 255, 0.1);
  color: var(--color-primary);
}

.dashboard__sidebar-link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--color-primary);
}

.dashboard__sidebar-icon {
  font-size: 1.1rem;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard__sidebar-text {
  margin-left: 10px;
  transition: opacity var(--transition-speed) ease;
}

.dashboard__sidebar.collapsed .dashboard__sidebar-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.dashboard__content {
  flex: 1;
  padding: 20px;
  background-color: #f5f7fa;
  margin-left: 300px;
  transition: margin-left var(--transition-speed) ease;
}

/* Dashboard Sections */
.dashboard__section {
  background-color: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

.dashboard__section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard__section-title i {
  color: var(--color-primary);
}

.dashboard__section-subtitle {
  font-size: 1.2rem;
  margin: 20px 0 15px;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard__section-subtitle i {
  color: var(--color-muted);
}

.dashboard__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Stats Cards */
.dashboard__stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard__stat-card {
  background-color: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.dashboard__stat-card:hover {
  transform: translateY(-5px);
}

.dashboard__stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(74, 107, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.dashboard__stat-info h3 {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 5px;
  font-weight: 500;
}

.dashboard__stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* Tables */
.dashboard__table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.dashboard__table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.dashboard__table th {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
}

.dashboard__table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}

.dashboard__table tr:last-child td {
  border-bottom: none;
}

.dashboard__table tr:hover {
  background-color: rgba(74, 107, 255, 0.05);
}

/* Status Badges */
.dashboard__status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.dashboard__status-badge--success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.dashboard__status-badge--warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--color-warning);
}

.dashboard__status-badge--danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--color-danger);
}

.dashboard__status-badge--info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
}

.dashboard__status-badge--primary {
  background-color: rgba(74, 107, 255, 0.1);
  color: var(--color-primary);
}

/* Action Buttons */
.dashboard__action-btn {
  padding: 8px 15px;
  border-radius: 5px;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.dashboard__action-btn i {
  font-size: 0.8rem;
}

.dashboard__action-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.dashboard__action-btn--primary:hover {
  background-color: var(--color-primary-hover);
}

.dashboard__action-btn--secondary {
  background-color: var(--gray-light);
  color: var(--gray-dark);
}

.dashboard__action-btn--secondary:hover {
  background-color: var(--gray);
  color: var(--color-bg);
}

.dashboard__action-btn--danger {
  background-color: var(--color-danger);
  color: var(--color-bg);
}

.dashboard__action-btn--danger:hover {
  background-color: #c82333;
}

.dashboard__action-btn--success {
  background-color: var(--success-color);
  color: var(--color-bg);
}

.dashboard__action-btn--success:hover {
  background-color: #218838;
}

/* Filters */
.dashboard__filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.dashboard__filters-left,
.dashboard__filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard__filters-search {
  padding: 8px 15px;
  border: 1px solid var(--gray-light);
  border-radius: 5px;
  min-width: 200px;
  transition: all 0.3s ease;
}

.dashboard__filters-search:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.dashboard__filter {
  padding: 8px 15px;
  border: 1px solid var(--gray-light);
  border-radius: 5px;
  background-color: var(--color-bg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard__filter:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.dashboard__filter-btn {
  padding: 8px 15px;
  border-radius: 5px;
  border: none;
  background-color: var(--gray-light);
  color: var(--gray-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.dashboard__filter-btn:hover {
  background-color: var(--gray);
  color: var(--color-bg);
}

/* Loading States */
.dashboard__loading-state {
  text-align: center;
  padding: 30px;
}

.dashboard__loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(74, 107, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard__empty-state {
  text-align: center;
  padding: 30px;
  color: var(--gray);
}

/* Modals */
.dashboard__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dashboard__modal--large .dashboard__modal-content {
  max-width: 900px;
}

.dashboard__modal.active {
  opacity: 1;
  visibility: visible;
}

.dashboard__modal-content {
  background-color: var(--color-bg);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.dashboard__modal.active .dashboard__modal-content {
  transform: translateY(0);
}

.dashboard__modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard__modal-header h3 {
  font-size: 1.3rem;
  color: var(--color-dark);
}

.dashboard__modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.3s ease;
}

.dashboard__modal-close:hover {
  color: var(--color-danger);
}

.dashboard__modal-form {
  padding: 20px;
}

.dashboard__form-group {
  margin-bottom: 15px;
}

.dashboard__form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--gray-dark);
}

.dashboard__form-group input,
.dashboard__form-group textarea,
.dashboard__form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--gray-light);
  border-radius: 5px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.dashboard__form-group input:focus,
.dashboard__form-group textarea:focus,
.dashboard__form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.dashboard__form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.dashboard__form-error {
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.dashboard__form-row {
  display: flex;
  gap: 15px;
}

.dashboard__form-row .dashboard__form-group {
  flex: 1;
}

.dashboard__image-preview {
  margin-top: 10px;
  width: 100px;
  height: 100px;
  border: 1px dashed var(--gray-light);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dashboard__image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.dashboard__modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard__btn {
  padding: 8px 15px;
  border-radius: 5px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard__btn--primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.dashboard__btn--primary:hover {
  background-color: var(--color-primary-hover);
}

.dashboard__btn--secondary {
  background-color: var(--gray-light);
  color: var(--gray-dark);
}

.dashboard__btn--secondary:hover {
  background-color: var(--gray);
  color: var(--color-bg);
}

/* Order Details */
.dashboard__order-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard__order-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.dashboard__order-customer,
.dashboard__order-shipping,
.dashboard__order-payment {
  background-color: var(--color-light);
  padding: 15px;
  border-radius: 5px;
}

.dashboard__order-customer h4,
.dashboard__order-shipping h4,
.dashboard__order-payment h4 {
  margin-bottom: 10px;
  color: var(--color-dark);
}

.dashboard__order-items {
  background-color: var(--color-light);
  padding: 15px;
  border-radius: 5px;
}

.dashboard__order-actions {
  background-color: var(--color-light);
  padding: 15px;
  border-radius: 5px;
}

.dashboard__order-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.dashboard__order-status label {
  font-weight: 500;
}

.dashboard__order-status select {
  flex: 1;
  max-width: 200px;
}

.dashboard__order-notes label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.dashboard__order-notes textarea {
  width: 100%;
  min-height: 80px;
  margin-bottom: 10px;
}

/* Customer Details */
/* Customer Details Section */
.dashboard__customer-details {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
}

/* Customer Info Section */
.dashboard__customer-info {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard__customer-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard__customer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard__customer-data {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard__customer-data h4 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-dark);
}

.dashboard__customer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.dashboard__customer-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.dashboard__customer-meta-item i {
  color: var(--color-primary);
  width: 20px;
  text-align: center;
}

/* Customer Stats Section */
.dashboard__customer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard__customer-stats .dashboard__stat-card {
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard__customer-stats .dashboard__stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard__customer-stats .dashboard__stat-card h5 {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.dashboard__customer-stats .dashboard__stat-card p {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

/* Addresses Section */
.dashboard__customer-addresses {
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard__customer-addresses h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard__customer-addresses h4 i {
  color: var(--color-primary);
}

.dashboard__address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dashboard__address-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard__address-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard__address-item p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.dashboard__address-item p:first-child {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* Notes Section */
.dashboard__customer-notes {
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard__customer-notes h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard__customer-notes h4 i {
  color: var(--color-primary);
}

.dashboard__customer-notes textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.dashboard__customer-notes textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 171, 122, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dashboard__customer-info {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dashboard__customer-avatar {
    margin: 0 auto;
  }

  .dashboard__customer-meta {
    grid-template-columns: 1fr;
  }

  .dashboard__customer-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard__customer-stats {
    grid-template-columns: 1fr;
  }

  .dashboard__address-list {
    grid-template-columns: 1fr;
  }
}

.dashboard__address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.dashboard__address-item {
  background-color: var(--color-light);
  padding: 15px;
  border-radius: 5px;
}

.dashboard__address-item p {
  margin-bottom: 5px;
}

.dashboard__address-item p:first-child {
  font-weight: 500;
  margin-bottom: 8px;
}

.dashboard__customer-notes h4 {
  margin-bottom: 10px;
}

.dashboard__customer-notes textarea {
  width: 100%;
  min-height: 100px;
  margin-bottom: 10px;
}

/* ==================== */
/* RESPONSIVE MEDIA QUERIES */
/* ==================== */

/* Variables for breakpoints */
:root {
  --screen-xs: 480px;
  --screen-sm: 768px;
  --screen-md: 992px;
  --screen-lg: 1200px;
}

/* Mobile First Approach (default styles are for mobile) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .dashboard__stats-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .dashboard__content {
    padding: 30px;
  }

  .dashboard__section {
    padding: 25px;
  }

  .dashboard__stats-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .dashboard__filters {
    flex-direction: row;
  }

  .dashboard__filters-left,
  .dashboard__filters-right {
    flex-wrap: nowrap;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .dashboard__content {
    padding: 40px;
  }

  .dashboard__stats-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .dashboard__content {
    padding: 50px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .dashboard {
    flex-direction: column;
  }

  .dashboard__sidebar {
    width: 100%;
    position: fixed;
    bottom: 0;
    top: auto;
    height: var(--sidebar-mobile-height);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .dashboard__sidebar.collapsed {
    width: 100%;
  }

  .dashboard__sidebar-header {
    display: none;
  }

  .dashboard__sidebar-menu {
    display: flex;
    padding: 0;
    justify-content: space-around;
  }

  .dashboard__sidebar-link {
    flex-direction: column;
    padding: 10px 5px;
    font-size: 0.7rem;
    text-align: center;
  }

  .dashboard__sidebar-link--active::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 100%;
  }

  .dashboard__sidebar-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

  .dashboard__sidebar-text {
    margin-left: 0;
    font-size: 0.7rem;
  }

  .dashboard__toggle {
    display: none;
  }

  .dashboard__content {
    margin-bottom: var(--sidebar-mobile-height);
    padding: 15px;
  }

  .dashboard__section {
    padding: 15px;
  }

  .dashboard__section-title {
    font-size: 1.2rem;
  }

  .dashboard__stats-container {
    grid-template-columns: 1fr;
  }

  .dashboard__stat-card {
    padding: 15px;
  }

  .dashboard__filters {
    flex-direction: column;
  }

  .dashboard__filters-left,
  .dashboard__filters-right {
    width: 100%;
  }

  .dashboard__filters-search {
    width: 100%;
    min-width: auto;
  }

  .dashboard__form-row {
    flex-direction: column;
    gap: 10px;
  }

  .dashboard__modal-content {
    width: 95%;
  }

  .dashboard__order-info {
    grid-template-columns: 1fr;
  }

  .dashboard__customer-info {
    flex-direction: column;
    text-align: center;
  }
}

/*landing Page */
.hero-slider {
  position: relative;
  height: 300px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}

.slide {
  display: none;
  padding: 50px;
}

.slide.active {
  display: block;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.slider-buttons button {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
}

.team {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.team h2 {
  margin-bottom: 20px;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.team-card {
  background: #f0f0f0;
  border-radius: 8px;
  width: 200px;
  padding: 20px;
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}
.reg_login_btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #e0f7f4, #f7f7f7);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid var(--spinner-top-color);
  font-size: 1rem;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}
.reg_login_btn_link {
  color: var(--color-primary);
}
.reg_login_btn:hover {
  color: white;
  transform: scale(1.04);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 15px 30px;
  color: #fff;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-buttons .btn {
  background: #fff;
  color: #111;
  padding: 8px 15px;
  border-radius: 5px;
  margin-left: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.nav-buttons .btn:hover {
  background: #ffc107;
  color: #000;
}

/* Wireframe Section */
.wireframe {
  text-align: center;
  margin: 50px auto;
}

.wireframe-slider {
  position: relative;
  width: 900px;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

.wireframe-img {
  width: 100%;
  height: auto;
  display: block;
}

.wireframe-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.wireframe-slider .prev {
  left: 0;
}

.wireframe-slider .next {
  right: 0;
}
/* Registeration */
/* .form-container {
  background: linear-gradient(135deg, #f5f5f5, #f9d56e);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin:70px auto;
  width: 70%;
  display: flex; 

}
.form-container h2 {
  text-align: center;
}

.container-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.container-row label {
  width: 30%;
}

.container-row input {
  width: 70%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"] {
  width: 70%;
  padding: 8px;
  margin: 8px 0;
  box-sizing: border-box; 
   display: inline-block;
}
form label{
  display: inline-block;
}

.form-container{
    padding: 2rem;
    

}
.form-container button,
.popup button {
  width: 50%;

  padding: 10px;
  display: block;
  background-color: #28a745;
  background: linear-gradient(135deg, #1f1f1f, var(--color-primary));
  color: white;
  font-size: larger;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.form-container button:hover,
.popup button:hover {

  background: linear-gradient(
    45deg,
    var(--color-primary-hover),
    var(--color-primary)
  );
  text-decoration: underline;

}

.login-link {
  margin-top: 10px;
  text-align: center;
}

.login-link a {
  color: blue;
  cursor: pointer;
  text-decoration: underline;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
 .popup {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  background: linear-gradient(135deg, #f5f5f5, #f9d56e);
  border: 1px solid #ccc;
  padding: 20px;
  width: 300px;
  z-index: 1000;
  border-radius: 10px;
}

.popup input {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
}

.popup button {
      margin-top: 10px;
    } 

@media (max-width: 480px) {
      .form-container {
        padding: 1.5rem;
      }

      .form-container h2 {
        font-size: 1.5rem;
      }

      .form-container input,
      .form-container button {
        font-size: 0.95rem;
      }
    } */
.login_reg {
  text-align: center;
  align-items: center;
  margin: auto;
  width: 100%;
  margin-top: 50px;
  max-width: 700px;
}
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.form-container {
  background: linear-gradient(135deg, #ffffff, #fce38a);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: auto;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container input[type="password"],
.form-container input[type="date"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #1f1f1f, var(--color-primary));
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-container button:hover {
  background: linear-gradient(
    45deg,
    var(--color-primary-hover),
    var(--color-primary)
  );
  text-decoration: underline;
}

.login-link {
  text-align: center;
  margin-top: 15px;
}

.login-link a {
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}
/* Responsive */
@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem;
  }

  .form-container h2 {
    font-size: 1.5rem;
  }

  .form-container input,
  .form-container button {
    font-size: 0.95rem;
  }
}
.popup {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  background: linear-gradient(135deg, #f5f5f5, #f9d56e);
  border: 1px solid #ccc;
  padding: 20px;
  width: 300px;
  z-index: 1000;
  border-radius: 10px;
}

/* Cart Container */
.cart-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Cart Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-title {
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-title .fa-shopping-cart {
  color: var(--primary-color);
}

.item-count {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.continue-shopping {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.continue-shopping:hover {
  color: var(--primary-dark);
}

/* Cart Grid Layout */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

/* Cart Items Section */
.cart-items {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.cart-items-header {
  display: none; /* Only show on larger screens */
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

@media (min-width: 992px) {
  .cart-items-header {
    display: grid;
  }
}

.empty-cart-message {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-cart-message .fa-cart-arrow-down {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1rem;
}

.empty-cart-message p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Order Summary */
.order-summary {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.summary-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.summary-row.total {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.5rem 0;
}

.summary-divider {
  height: 1px;
  background: #eee;
  margin: 1rem 0;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.checkout-btn:hover {
  background: var(--primary-dark);
}

.payment-options {
  margin: 1.5rem 0;
}

.payment-options img {
  max-width: 100%;
  height: auto;
  opacity: 0.8;
}

.secure-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.secure-checkout .fa-lock {
  color: var(--success-color);
}

/* Customer Support */
.customer-support {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.customer-support h3 {
  margin-bottom: 0.5rem;
}

.customer-support p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.customer-support a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Recently Viewed */
.recently-viewed {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.recently-viewed h2 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.admin-input-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-input {
  width: 70px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: right;
}

.admin-input-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-input {
  width: 70px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: right;
}

.summary-row span:first-child {
  flex: 1;
}

/* messages */
.message {
  padding: 10px;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
}

.message.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}


/* ---------- Admin: order list ---------- */
.order-item-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.order-item-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.order-item-list img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.order-item-details p {
  margin: 6px 0;
}

.order-item-details .dashboard__action-btn {
  margin-top: 10px;
}

.order-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #fef3c7;
  color: #92400e;
}

.order-status--approved {
  background: #d1fae5;
  color: #065f46;
}

.order-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* ---------- Product card: disabled add-to-cart ---------- */
.product-card__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Header: text links (Log in, Orders, Add product) ---------- */
.header__nav-item > a:not([aria-label]) {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.header__nav-item > a:not([aria-label]):hover {
  color: #10b981;
}

.header__logout-btn[hidden] {
  display: none;
}

.cart-item hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.cart-item:last-child hr {
  display: none;
}
