/* Global Styles */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  width: 100%;
}

/* Shared styles for elements that follow the mobile layout */
body.user-layout,
body.user-layout .fixed-bottom,
body.user-layout .offcanvas,
body.user-layout .back-header,
body.user-layout .alert,
body.user-layout .modal {
  max-width: 375px; /* Match the forced mobile width */
  width: 100%; /* Ensure it spans the full width of the mobile layout */
  margin: 0 auto; /* Center the element horizontally */
}

body.user-layout .fixed-bottom {
  z-index: 1030; /* Ensure it stays above other elements */
}

body.user-layout .offcanvas,
body.user-layout .back-heade,
body.user-layout .modal {
  left: 0; /* Align to the left edge */
  right: 0; /* Align to the right edge */
}

body.user-layout .modal {
  margin: 0 auto; /* Center the modal horizontally */
}

body.user-layout .modal-dialog {
  max-width: 350px; /* Match the forced mobile width */
  width: 100%; /* Ensure it spans the full width of the mobile layout */
  margin: 0 auto; /* Center the modal dialog horizontally */
}

/* Admin Dashboard */
.dashboard-stat-card {
  transition: transform 0.2s;
}

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

/* Tables */
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Forms */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Product Images */
.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.fixed-bottom a {
  color: #6c757d;
  font-size: .75rem;
  /* Default color for icons and text */
}

.fixed-bottom a.active {
  color: #2d56cd;
  /* Highlight color for the active tab */
}

.fixed-bottom a:hover {
  color: #6c757d;
  /* Hover color for tabs */
}

.icon-image {
  width: 28px; /* Set the width of the image */
  height: 28px; /* Set the height of the image */
  object-fit: contain; /* Ensures the image fits within the dimensions without distortion */
  margin: 0 auto; /* Centers the image */
}

.bottom-container {
  padding-bottom: 85px;
}

.promote-container {
  padding-bottom: 63px;
}

.bg-header .jumbotron {
  height: 160px;
  box-shadow: none;
  /* border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px; */
  background: url(../images/bg.jpg) center center no-repeat;
  background-size: cover;
  padding: 2rem 1rem;
  border-radius: 0;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}

.banner {
  margin-top: -65px;
  z-index: 2;
  position: relative;
}

.selectors {
  height: 100%;
  width: 100%;
}

.selectors a {
  border: 0;
  border-radius: 0;
  width: 20%;
  margin-left: 0;
}

.button-a {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: .81rem;
  line-height: 1.7;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.selector-holder {
  display: flex;
  flex-direction: column;
}

.home-button .badge {
  width: 45px;
  height: 45px;
  display: block;
  margin: auto;
  margin-bottom: .4rem;
  padding-top: .9rem;
  position: relative;
}

.selector-holder span.text {
  font-size: 0.7rem;
  color: #333;
  font-weight: 500;
}

.selector-holder span i {
  color: #fff;
  font-size: 1.2rem;
}

.divider {
  border-bottom: 10px solid #f5f5f5;
}

.title {
  border-bottom: 1px solid #e6e6e6;
}

.title h3 {
  font-size: 1.3rem;
}

.text-red {
  color: #f06394;
}

.choice .card {
  box-shadow: none;
  border: 1px solid #f2f2f2;
}

.choice .card a h5 {
  color: #333;
  font-size: 1.2rem;
  line-height: 1.4;
}

.choice .card a p.card-text {
  color: #666;
  font-size: .7rem;
}

.choice .card a h4 {
  color: #ff4444;
  font-size: 1.1rem;
}

.choice h2 {
  color: #ff4444;
}

.choice p .badge-outline-red {
  color: #ff4444 !important;
  background-color: #ffebee;
}

.choice p .badge-outline-yellow {
  color: #ff9b00 !important;
  background-color: #ffecb3;
}

.filter a {
  color: rgba(0, 0, 0, 0.88);
}

.filter a.active {
  color: #f06394;
}

.alert {
  position: absolute;
  bottom: 0;
  right: 10px;
  z-index: 9999;
}

.address {
  padding-top: 76px;
}

.bg-profile.bg-height .jumbotron {
  height: 150px;
}

.bg-profile .jumbotron {
  height: 160px;
  box-shadow: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  background: url(../images/bg.jpg) center center no-repeat;
  background-size: cover;
  padding: 2rem 1rem;
}

.bg-profile .jumbotron p {
  font-size: .875rem;
}

.feature a {
  color: #212529;
}

.feature a p {
  font-size: .75rem;
}

.feature .fixed-width {
  width: 80px;
}

.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floating-total-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.floating-total-label {
  color: #666;
  font-size: 0.9rem;
  font-weight: normal;
}

.floating-total-amount {
  color: #f06394;
  font-size: 1.1rem;
  font-weight: 500;
}

.place-order-btn {
  background-color: #4285F4;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-content {
  margin-bottom: 60px;
}

/* Additional Credit Card Form Styles */
#credit_card_form {
  position: relative;
}

.card-type-indicator {
  position: absolute;
  right: 10px;
  top: 30px;
  height: 24px;
}

.cc-field-container {
  position: relative;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 80%;
  color: #dc3545;
}

.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid~.invalid-feedback {
  display: block;
}

.is-valid {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Credit card icons container */
.cc-icons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.cc-icon {
  width: 40px;
  height: 25px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.cc-icon.active {
  opacity: 1;
  border-color: #4285F4;
}

/* Quick Action Gradient Button */
.nav-card-gradient {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.nav-card-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.3);
}

.nav-card-gradient .nav-card-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.nav-card-gradient .nav-card-icon i {
    font-size: 1.8rem;
    color: white;
}

.sm-text {
  font-size: calc(1.275rem + .15vw) !important;
}