:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat",  sans-serif;
  --nav-font: "Raleway",  sans-serif;
}

.user-profile-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.user-profile-header {
  text-align: center;
  padding-bottom: 20px;
}

.user-profile-header h1 {
  font-size: 36px;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.user-info-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 20px;
}

.user-info-section img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.user-info-section .info-text {
  flex: 1;
}

.user-info-section .info-text h2 {
  font-size: 24px;
  margin: 0;
  color: #333;
  font-family: 'Roboto', sans-serif;
}

.user-info-section .info-text p {
  font-size: 16px;
  color: #777;
}

.user-info-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  padding-top: 20px;
}

.user-info-actions a {
  text-decoration: none;
  padding: 10px 20px;
  background-color: #c19f1b;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.user-info-actions a:hover {
  background-color: #ff3131;
}

/* Profile Details Table */
.profile-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.profile-details-table th,
.profile-details-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.profile-details-table th {
  background-color: #f1f1f1;
  font-weight: bold;
}

.profile-details-table tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-info-section {
    flex-direction: column;
    text-align: center;
  }

  .user-info-section img {
    margin-bottom: 15px;
  }

  .user-info-actions {
    flex-direction: column;
    gap: 10px;
  }

  .user-info-actions a {
    width: 100%;
    text-align: center;
  }
}

/* Cart section */
.cart-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.cart-item:hover {
  transform: scale(1.01);
}

/* proceed to checkout button  */
.cart-summary-box {
  background-color: #ffffff;
  /* border: 1px solid #c19f1b; */
  max-width: 400px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.checkout-link {
  text-decoration: none;
  display: inline-block;
  padding: 10px 20px;
  background-color: #c19f1b;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.checkout-link:hover {
  background-color: #ffffff;
  transform: scale(1.01);
}

/*  user header */
.info-text {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

/* hover for continue shopping */
.continue-shopping-link:hover {
  color: #bd9c19da; /* Theme yellow */
  transition: 0.3s ease;
}
/* complete payment */
.btn-submit {
  background-color: #c19f1b;
  color: white;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px;
  transition: 0.3s;
}

.btn-submit:hover {
  background-color: #b38e12;
}
a.back-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: #343a40;
  font-weight: 500;
  text-decoration: none;
}

a.back-link:hover {
  text-decoration: underline;
  color: #b38e12;
}

/* similar items section */
  /* Similar Products Section */
  #similar-products .section-title {
    color: #b38e12;            /* Goldish heading color */
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: var(--heading-font);
  }

  #similar-products .card {
    border-radius: 12px;       /* Rounded cards */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform .2s;
  }
  #similar-products .card:hover {
    transform: translateY(-5px);
  }

  #similar-products .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 200px;
    object-fit: cover;
  }

  #similar-products .card-title {
    color: #c19f1b;            /* Dark slate, for contrast */
    font-weight: 700;

  }
  #similar-products .h3{
    font-weight: 700;
    font-family: var(--heading-font);
  }

  #similar-products .card-text {
    color: #555;               /* Softer text color */
    font-size: 0.9rem;
  }

  #similar-products .btn-custom {
    border-radius: 50px;       /* Pill‑shaped */
    background-color: #b38e12; /* Goldish background */
    color: #fff;
    padding: 0.5rem 1.5rem;
    transition: background-color .2s;
  }
  #similar-products .btn-custom:hover {
    background-color: #9a7d10;
    color: #fff;
  }

  /* cancel image for add products */
  .preview-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.preview-wrapper img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.preview-wrapper:hover img {
    opacity: 0.4;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    display: none;
}

.preview-wrapper:hover .remove-btn {
    display: block;
}
/* table for products in admin */
thead.table-danger th {
    background-color: #ff3131 !important;
    color: white;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-container button {
    margin: 0 5px;
    padding: 10px 18px;
    font-size: 16px;
    border: 1px solid #c19f1b;
    color: #ff3131;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
}

.pagination-container button.active {
    background-color: #ff3131;
    color: white;
}

.pagination-container button:hover {
    background-color: #c19f1b;
    color: white;
}

/* 🔴 Custom red scrollbar styling */
.table-responsive::-webkit-scrollbar {
    width: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #ffe5e5;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #c19f1b;
    border-radius: 10px;
    border: 2px solid #ffe5e5;
}

.table-responsive {
    scrollbar-color: #c19f1b #ffe5e5;
    scrollbar-width: thin;
}