
/* for cart item card */
.cart-item-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.2rem 2rem;
    min-height: 120px;
    border: 1px solid #e6e6e6;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1.5rem;
    background: #f7f7f7;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1 1 auto;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #222;
}

.cart-item-vendor {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.cart-item-compare {
    font-size: 0.95rem;
    color: #1e9ff2;
    text-decoration: underline;
    cursor: pointer;
}

.cart-item-right {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.7rem;
}

.cart-item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
}

.cart-item-qty-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-trash {
    color: #f74b50;
    font-size: 1.3rem;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 0.5rem;
    transition: color 0.2s;
}
.cart-item-trash:hover {
    color: #d32f2f;
}


/* for report card */
.report-card-content {
    min-height: 350px !important;
    max-height: 400px !important;
    overflow-y: auto;
}

/* for pricing card */
.pricing-card {
    border-radius: 20px !important;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
    transition: box-shadow 0.2s, transform 0.2s;
    background-color: #fff;
    min-height: 70vh;
    border-left: 4px solid #467C9E !important;
}

.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
    transform: translateY(-2px);
}

.pricing-card .card-title {
    font-weight: 600;
    color: #2C303B;
    font-size: xx-large;
}

.pricing-card ul {
    margin-bottom: 0.5rem;
}

.pricing-card .btn-block {
    font-size: 0.8rem;
    background: #467C9E;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 8px 32px;
}

.back-link {
      text-align: center;
      margin-top: 2rem;
      display: block;
      color: #467C9E;
      text-decoration: none;
      font-weight: bold;
    }

.back-link:hover {
    text-decoration: underline;
}

.col-md-4 {
    flex: 0 0 33%;
    max-width: 33%;
}



/* for product card */
.product-card {
    background-color: #fff;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10) !important;
    transition: box-shadow 0.2s;
    overflow: hidden;
    /* margin-bottom: 24px; */
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.18) !important;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* .product-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 12px 12px 12px;
    height: 200px;
} */

.product-card-body {
    height: 200px;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    overflow: hidden;
}


/* .product-card-body > div:first-child {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.product-card-body > div:last-child {
    flex-shrink: 0;
} */

.product-card-body .top-content {
    flex-grow: 1;
    overflow: hidden;
}

.product-card-body .bottom-content {
    margin-top: auto;
}


.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-body .text-primary {
    font-size: 1.1rem;
    font-weight: 700;
    color: #E73846 !important;
}

.product-card-body .text-muted {
    font-size: 0.9rem;
    color: #888 !important;
}

.product-card-body .small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* for product update card */
.product-update-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 32px 40px;
    max-width: 1000px;
    margin: 40px auto;
    width: 100%;
}

.product-update-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.product-image-preview {
    width: 300px;
    height: 250px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 20px;
}
.product-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.upload-image {
    margin-top: 12px;
    text-align: center;
}

.product-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 32px;
    width: 100%;
}
.product-fields-grid > div {
    display: flex;
    flex-direction: column;
}
.stocked-out-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.product-description {
    height: 150px !important;
}

label.custom-control-label:checked  {
    background: #E73846 !important;
}



.custom-control-label {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    position: absolute;
    left: -9999px;
}

.custom-switch .custom-control-label::after {
    background: #E73846 !important;
}

.custom-switch .custom-control-input:checked + .custom-control-label::after {
    background: #E73846 !important;
}

.custom-control-input:checked~.custom-control-label::before {
    background: #ff8090 !important;
    border-color: #ff8090 !important;
}


.form-row {
    display: flex;
    gap: 24px;
}

.form-group {
    flex: 1;
    margin-bottom: 18px;
}

/* .custom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin-left: 12px;
}
.custom-switch input { display: none; } */

.custom-control-label {
    position: absolute;
    top: 0; left: 0;
    width: 48px; height: 24px;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s;
}
.custom-control-input:checked {
    left: 28px;
}

.btn-success {
    background: #2ecc71;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 8px 24px;
    margin-bottom: 12px;
}

.btn-primary {
    background: #3b82f6;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 8px 32px;
}

.btn-outline-secondary {
    border: 1px solid #bdbdbd;
    color: #757575;
    background: #fff;
    border-radius: 4px;
    padding: 8px 24px;
}

hr.my-4 {
    margin: 32px 0;
    border-top: 1px solid #e0e0e0;
}

.product-update-card  div > input {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 8px 16px;
    margin-bottom: 5px;
}

.product-update-card  div > textarea {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 8px 16px;
    margin-bottom: 5px;
}

.promotion-section .form-group,
.promotion-section label,
.promotion-section input,
.promotion-section textarea {
    width: 100%;
}

.promotion-section input,
.promotion-section textarea {
    min-height: 40px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    padding: 8px 16px;
}


.promotion-description textarea {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 300px;
    resize: vertical;
}



div.card-body > canvas {
  max-height: 300px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.card.h-100 {
  max-height: 420px;
  overflow-y: auto;
}

.product-card-carousel {
    min-width: 220px;
    max-width: 220px;
    /* You can adjust width as needed */
}

.product-card-carousel img {
    height: 100px; /* smaller image */
}

.product-card-carousel .product-card-body {
    height: 140px; /* smaller body */
    padding: 10px 8px;
}

.product-card-carousel .card-title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
}

.product-card-carousel .product-card-body .small,
.product-card-carousel .product-card-body .text-muted {
    font-size: 0.85rem;
}

.promotions {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
  /* padding: 2rem 1.5rem; */
  margin-bottom: 2rem;
}

.promotions h2 {
  background-color: #50ffb1;
  color: #2c303b;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-card {
  background: #f2f9ff;
  border-left: 4px solid #467c9e;
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 0.8rem;
  text-align: left;
  box-shadow: 0 1px 4px rgba(80, 255, 177, 0.08);
}

.promo-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c303b;
  margin-bottom: 0.3rem;
}

.promo-product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #00c48c;
  margin-bottom: 0.5rem;
}

.promo-card p {
  margin-bottom: 0.3rem;
  color: #2c303b;
}

.promo-card small {
  color: #888;
}

.promo-card a {
  color: #00c48c;
  font-weight: 600;
  text-decoration: underline;
  float: right;
}

