/* Standardized Cart Layout - Works for All Product Types */

/* Cart items container */
.cart-items-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cart header */
.cart-header {
  display: grid !important;
  grid-template-columns: 50px 100px 1fr 120px 120px 120px !important;
  gap: 20px !important;
  align-items: center !important;
  background: #f8f9fa !important;
  padding: 20px 25px !important;
  border-bottom: 2px solid #dee2e6 !important;
  font-weight: 600 !important;
  color: #495057 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  min-height: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cart-header .header-remove,
.cart-header .header-thumbnail {
  text-align: center;
}

.cart-header .header-name {
  font-weight: 700;
}

.cart-header .header-price,
.cart-header .header-quantity,
.cart-header .header-subtotal {
  text-align: center;
}

/* Individual cart item cards - Standardized for all products */
.cart-item-card {
  background: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #e9ecef !important;
  padding: 20px 25px !important;
  position: relative !important;
  transition: background-color 0.3s ease;
  display: grid !important;
  grid-template-columns: 50px 100px 1fr 120px 120px 120px !important;
  gap: 20px !important;
  align-items: flex-start !important;
  min-height: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cart-item-card:last-child {
  border-bottom: none;
}

/* Standardized product remove button */
.cart-item-card .product-remove {
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  margin-top: 0 !important;
}

/* Product thumbnail */
.cart-item-card .product-thumbnail {
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Product name */
.cart-item-card .product-name {
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #495057 !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Standardized product name display for all products */
.cart-item-card .product-name {
  font-weight: 600 !important;
  font-size: 18px !important;
  color: #495057 !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: flex-start !important;
  flex: 1 !important;
  min-width: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.cart-item-card .product-name a {
  color: #495057 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 10px !important;
}

/* For products without prescription, ensure the name is prominent */
.cart-item-card:not(:has(.cart-prescription-data)) .product-name {
  align-items: center !important;
}

.cart-item-card:not(:has(.cart-prescription-display)) .product-name a:hover {
  color: #007bff !important;
  text-decoration: underline !important;
}

/* Meta data styling */
.cart-item-card .product-name .variation {
  width: 100%;
}

.cart-item-card .product-name .variation dt {
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-card .product-name .variation dd {
  margin-bottom: 8px;
  font-weight: 400;
}

/* Backorder notification */
.cart-item-card .product-name .backorder_notification {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 8px;
}

.cart-item-card .product-name .cart-prescription-data .eye-data-box {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  font-size: 12px;
}

.cart-item-card .product-name .cart-prescription-data h3 {
  font-size: 14px;
}
.cart-item-card .product-name .cart-prescription-data .eye-data-box h5 {
  font-size: 13px;
}

.box {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
}

.box h5 {
  font-size: 13px;
}

.box p {
  margin: 0;
}

/* Total section */
.cart-item-card .product-name .prescription-total-section {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.cart-item-card .product-name .total-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background: #e3f2fd;
  border-radius: 6px;
  border: 1px solid #bbdefb;
}

.cart-item-card .product-name .total-price {
  font-weight: 700;
  color: #1976d2;
  font-size: 18px;
}

/* Cart summary grid */
.cart-item-card .product-name .cart-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.cart-item-card .product-name .cart-summary-item {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.cart-item-card .product-name .cart-summary-label {
  font-weight: 500;
  color: #6c757d;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cart-item-card .product-name .cart-summary-value {
  font-weight: 600;
  color: #495057;
  font-size: 16px;
}

.cart-item-card .product-name .cart-summary-item.total {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
}

/* Prescription actions - Edit button */
.cart-item-card .product-name .prescription-actions {
  padding-top: 15px !important;
  display: block !important;
  width: 100% !important;
}

.cart-item-card .product-name .edit-prescription-link {
  display: inline-block !important;
  background: #006c90 !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-size: 12px !important;
  transition: all 0.3s ease !important;
  border: 1px solid #006c90 !important;
  margin: 0 auto !important;
}

.cart-item-card .product-name .edit-prescription-link :hover {
  color: #ffffff !important;
}

/* .prescription-cart-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 0 0;
}

.prescription-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0;
  border-bottom: 1px solid #f1f3f4;
}

.prescription-item:last-child {
  border-bottom: none !important;
}

/* Garantir que o último prescription-item não tenha borda */
.prescription-details .prescription-item:last-child {
  border-bottom: none !important;
}

.prescription-item.subtotal {
  background: #e3f2fd;
  padding: 12px 15px;
  border-radius: 6px;
  margin-top: 10px;
  font-weight: 600;
  border: 1px solid #bbdefb;
} */
